VAMDC VALD query with SME processing
Created: 2012-02-24 08:10:28
Last updated: 2012-09-12 12:56:49
Queries a particular observation file extracting the needed wavelength range and call SME. The output will be a PS image plot along with txt report.
VALD: 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)
Processors (18)
Name |
Type |
Description |
SME_Extract_Wavelength_Range-simple |
vamdc__taverna__suite |
|
ObsFileURL_value |
stringconstant |
Valuehttp://dl.dropbox.com/u/15950785/twin.asc |
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 |
|
Logg_value |
stringconstant |
Value4.4 |
Teff_value |
stringconstant |
Value5700.0 |
EchoAndSleep |
localworker |
ScriptThread.sleep(8000);
outputstring = inputstring; |
Outputs (3)
Name |
Description |
XSAMS2SMEOut |
|
reporttxt |
|
reportps |
|
Datalinks (22)
Source |
Sink |
ObsFileURL_value:value |
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 |
Logg_value:value |
SME_App-simple:Logg |
ObsFileURL_value:value |
SME_App-simple:ObsFileURL |
Teff_value:value |
SME_App-simple:Teff |
EchoAndSleep:outputstring |
SME_App-simple:SMEURL |
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 2)
Credits (0)
(People/Groups)
None
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