VAMDC VALD query with SME processing
Created: 2012-03-07 18:03:01
Last updated: 2012-11-29 11:56:21
This workflow will query VALD and call the SME application. This workflow will ask for temperature, logg, and observation file location (url). See http://vamdc.mssl.ucl.ac.uk/taverna/vamdc/ for more plugin information and zip file that contains default values for inputs.
ValD information: The Vienna Atomic Line Database (VALD) is a collection of atomic line parameters of astronomical interest and provides tools for selecting subsets of lines for typical astrophysical applications: line identification, chemical composition and radial velocity measurements, model atmosphere calculations etc. The VALD database is maintained at three sites: Uppsala Universitet; Universitaet Wien; Institute for Astronomy RAS, Moscow.
SME: Spectroscopy Made Easy (SME) is a software package that calculates syn- thetic spectra of stars and fits observed spectra.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (3)
Name |
Description |
Logg |
|
Teff |
|
ObservationFileURL |
|
Processors (15)
Name |
Type |
Description |
SME_Extract_Wavelength_Range-simple |
vamdc__taverna__suite |
|
GetWavelengthRangeResult |
localworker |
Scriptif ((url == void) || (url == null)) {
throw new RuntimeException("The url must be specified");
}
URL inputURL = null;
if (base != void) {
inputURL = new URL(new URL(base), url);
}
else {
inputURL = new URL(url);
}
URLConnection con = inputURL.openConnection();
InputStream in = con.getInputStream();
StringBuffer result = new StringBuffer();
BufferedReader reader;
String encoding = con.getContentEncoding();
if (encoding == null) {
reader = new BufferedReader(new InputStreamReader(in));
} else {
reader = new BufferedReader(new InputStreamReader(in, encoding));
}
String line = null;
String NEWLINE = System.getProperty("line.separator");
while ((line = reader.readLine()) != null) {
result.append(line);
result.append(NEWLINE);
}
reader.close();
contents = result.toString();
|
GetWavelengthBegin |
localworker |
Scriptif (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
split = result[1].trim();
}
|
regex_value |
stringconstant |
Value |
GetWavlengthEnd |
localworker |
Scriptif (!string.equals("")) {
String regexString = ",";
if (regex != void) {
regexString = regex;
}
String[] result = string.split(regexString);
split = result[2].trim();
}
|
regex_value_1 |
stringconstant |
Value |
Vald_Moscow |
vamdc__taverna__suite |
|
Reference_value |
stringconstant |
Valuetrue |
Format_value |
stringconstant |
ValueXSAMS |
Lang_value |
stringconstant |
ValueVSS2 |
CreateQuery |
localworker |
Scriptoutput = "select * where (RadTransWavelength >= " + string1 + " AND RadTransWavelength <= " + string2 + " AND lower.StateEnergy >= 0.0 AND lower.StateEnergy <= 80655.4429 ) AND ((IonCharge >= 0 AND IonCharge <= 1))"; |
TAP URL or Registry Ivorn_value |
stringconstant |
Valuehttp://vald.inasan.ru/vald-node/tap/sync |
Xsams2SME |
vamdc__taverna__suite |
|
SME_App-simple |
vamdc__taverna__suite |
|
EchoAndSleep |
localworker |
ScriptThread.sleep(8000);
outputstring = inputstring; |
Outputs (3)
Name |
Description |
XSAMS2SMEOut |
|
reporttxt |
|
reportps |
|
Datalinks (22)
Source |
Sink |
ObservationFileURL |
SME_Extract_Wavelength_Range-simple:ObsFileURL |
SME_Extract_Wavelength_Range-simple:wave.txt |
GetWavelengthRangeResult:url |
GetWavelengthRangeResult:contents |
GetWavelengthBegin:string |
regex_value:value |
GetWavelengthBegin:regex |
GetWavelengthRangeResult:contents |
GetWavlengthEnd:string |
regex_value_1:value |
GetWavlengthEnd:regex |
Reference_value:value |
Vald_Moscow:Reference |
Format_value:value |
Vald_Moscow:Format |
Lang_value:value |
Vald_Moscow:Lang |
CreateQuery:output |
Vald_Moscow:Query |
TAP URL or Registry Ivorn_value:value |
Vald_Moscow:TAP URL or Registry Ivorn |
GetWavelengthBegin:split |
CreateQuery:string1 |
GetWavlengthEnd:split |
CreateQuery:string2 |
Vald_Moscow:XSamsResult |
Xsams2SME:XSAMS URL |
EchoAndSleep:outputstring |
SME_App-simple:SMEURL |
ObservationFileURL |
SME_App-simple:ObsFileURL |
Logg |
SME_App-simple:Logg |
Teff |
SME_App-simple:Teff |
Xsams2SME:Results |
EchoAndSleep:inputstring |
Xsams2SME:Results |
XSAMS2SMEOut |
SME_App-simple:report.txt |
reporttxt |
SME_App-simple:report.ps |
reportps |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1 (earliest)
(of 4)
Credits (2)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (0)
No comments yet
Log in to make a comment