Calculating the internal extinction with data from leda
Created: 2012-05-23 19:12:49
Last updated: 2015-03-25 11:15:25
No description has been set
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (1)
Name |
Description |
list_cig_name |
|
Processors (18)
Name |
Type |
Description |
XPath_From_Text |
localworker |
Scriptimport org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
SAXReader reader = new SAXReader(false);
reader.setIncludeInternalDTDDeclarations(false);
reader.setIncludeExternalDTDDeclarations(false);
Document document = reader.read(new StringReader(xmltext));
List nodelist = document.selectNodes(xpath);
// Process the elements in the nodelist
ArrayList outputList = new ArrayList();
ArrayList outputXmlList = new ArrayList();
String val = null;
String xmlVal = null;
for (Iterator iter = nodelist.iterator(); iter.hasNext();) {
Node element = (Node) iter.next();
xmlVal = element.asXML();
val = element.getStringValue();
if (val != null && !val.equals("")) {
outputList.add(val);
outputXmlList.add(xmlVal);
}
}
List nodelist=outputList;
List nodelistAsXML=outputXmlList; |
SesameXML |
wsdl |
Wsdlhttp://cdsws.u-strasbg.fr/axis/services/Sesame?wsdlWsdl OperationSesameXML |
xpath_for_RA |
stringconstant |
Value//jradeg |
XPath_From_Text_2 |
localworker |
Scriptimport org.dom4j.Document;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;
SAXReader reader = new SAXReader(false);
reader.setIncludeInternalDTDDeclarations(false);
reader.setIncludeExternalDTDDeclarations(false);
Document document = reader.read(new StringReader(xmltext));
List nodelist = document.selectNodes(xpath);
// Process the elements in the nodelist
ArrayList outputList = new ArrayList();
ArrayList outputXmlList = new ArrayList();
String val = null;
String xmlVal = null;
for (Iterator iter = nodelist.iterator(); iter.hasNext();) {
Node element = (Node) iter.next();
xmlVal = element.asXML();
val = element.getStringValue();
if (val != null && !val.equals("")) {
outputList.add(val);
outputXmlList.add(xmlVal);
}
}
List nodelist=outputList;
List nodelistAsXML=outputXmlList; |
xpath_for_DEC |
stringconstant |
Value//jdedeg |
Flatten_List |
localworker |
Scriptflatten(inputs, outputs, depth) {
for (i = inputs.iterator(); i.hasNext();) {
element = i.next();
if (element instanceof Collection && depth > 0) {
flatten(element, outputs, depth - 1);
} else {
outputs.add(element);
}
}
}
outputlist = new ArrayList();
flatten(inputlist, outputlist, 1); |
Flatten_List_2 |
localworker |
Scriptflatten(inputs, outputs, depth) {
for (i = inputs.iterator(); i.hasNext();) {
element = i.next();
if (element instanceof Collection && depth > 0) {
flatten(element, outputs, depth - 1);
} else {
outputs.add(element);
}
}
}
outputlist = new ArrayList();
flatten(inputlist, outputlist, 1); |
VII_237 |
rest |
|
SR_value |
stringconstant |
Value0.001 |
filter_value |
stringconstant |
ValuelogR25 Mtype |
Tool |
externaltool |
|
Write_Text_File |
localworker |
Script
BufferedWriter out;
if (encoding == void) {
out = new BufferedWriter(new FileWriter(outputFile));
}
else {
out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outputFile), encoding));
}
out.write(filecontents);
out.flush();
out.close();
outputFile = filecontents;
|
encoding_value |
stringconstant |
Valueutf-8 |
outputFile_value |
stringconstant |
Valueleda_file.txt |
Select_columns |
tpipe |
|
Format_conversion |
tpipe |
|
formatTableIn_value |
stringconstant |
Valuevotable |
formatTableOut_value |
stringconstant |
Valueascii |
Outputs (6)
Name |
Description |
sesame |
|
ra |
|
dec |
|
leda_output |
|
logr25 |
|
python |
|
Datalinks (27)
Source |
Sink |
SesameXML:return |
XPath_From_Text:xml-text |
xpath_for_RA:value |
XPath_From_Text:xpath |
list_cig_name |
SesameXML:name |
xpath_for_DEC:value |
XPath_From_Text_2:xpath |
SesameXML:return |
XPath_From_Text_2:xml-text |
XPath_From_Text:nodelist |
Flatten_List:inputlist |
XPath_From_Text_2:nodelist |
Flatten_List_2:inputlist |
Flatten_List:outputlist |
VII_237:RA |
Flatten_List_2:outputlist |
VII_237:DEC |
SR_value:value |
VII_237:SR |
Flatten_List_2:outputlist |
Tool:dec |
Flatten_List:outputlist |
Tool:ra |
Write_Text_File:outputFile |
Tool:leda_file |
encoding_value:value |
Write_Text_File:encoding |
outputFile_value:value |
Write_Text_File:outputFile |
Format_conversion:outputTable |
Write_Text_File:filecontents |
filter_value:value |
Select_columns:filter |
VII_237:responseBody |
Select_columns:voTable |
formatTableIn_value:value |
Format_conversion:formatTableIn |
formatTableOut_value:value |
Format_conversion:formatTableOut |
Select_columns:outputTable |
Format_conversion:voTable |
SesameXML:return |
sesame |
Flatten_List:outputlist |
ra |
Flatten_List_2:outputlist |
dec |
VII_237:responseBody |
leda_output |
Format_conversion:outputTable |
logr25 |
Tool:STDOUT |
python |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1 (earliest)
(of 3)
Credits (0)
(People/Groups)
None
Attributions (0)
(Workflows/Files)
None
Shared with Groups (1)
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