Querying SDSS DR8 to get magnitude properties
Created: 2012-09-26 17:24:51
Last updated: 2013-03-08 12:08:17
This workflow gets a VOTable with the RA and DEC among others values of a list of galaxies. The workflow queries the SDSS DR8 VO conesearch service, to extract the objID, specObjID, ra, dec, u, g, r, i, z.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Querying SDSS DR8 to get magnitude properties. |
Descriptions (1)
This workflow gets a VOTable with the RA and DEC among others values of a list of galaxies. The workflow queries the SDSS DR8 VO conesearch service, to extract the objID, specObjID, ra, dec, u, g, r, i, z.
|
Dependencies (2)
Processors (11)
Name |
Type |
Description |
SDSS_DR8 |
rest |
|
RA_list |
voutils |
|
column_RA |
stringconstant |
Valuera |
DEC_list |
voutils |
|
column_DEC |
stringconstant |
Valuedec |
SR_value |
stringconstant |
Value0.001 |
Select_columns |
tpipe |
|
filter_value |
stringconstant |
ValueobjID specObjID ra dec u g r i z |
select_row_with_min_r |
beanshell |
Scriptimport uk.ac.starlink.ttools.Stilts;
File filein = File.createTempFile("votablesdssIN", null);
File fileout = File.createTempFile("votablesdssOUT", null);
FileWriter writer = new FileWriter(filein);
writer.write(votable_init);
writer.close();
String [] parameters;
parameters = new String[6];
parameters[0] = "tpipe";
parameters[1] = "ifmt=votable";
parameters[2] = "in="+filein;
parameters[3] = "ofmt=votable";
parameters[4] = "out="+fileout;
parameters[5] = "cmd=sorthead 1 r";
/*System.out.println("Runnning stilts");*/
Stilts.main(parameters);
byte[] buffer = new byte[(int) fileout.length()];
BufferedInputStream f = null;
try {
f = new BufferedInputStream(new FileInputStream(fileout));
f.read(buffer);
} finally {
if (f != null) try { f.close(); } catch (IOException ignored) { }
}
votable_out= new String(buffer);
|
Cat_n-tables |
tcat |
|
tjoin |
tjoin |
|
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
select_row_with_min_r |
|
votable_init
|
votable_out
|
Outputs (1)
Name |
Description |
min_r_votable |
|
Datalinks (12)
Source |
Sink |
RA_list:list |
SDSS_DR8:RA |
DEC_list:list |
SDSS_DR8:DEC |
SR_value:value |
SDSS_DR8:SR |
votable |
RA_list:voTable |
column_RA:value |
RA_list:ColumnName |
votable |
DEC_list:voTable |
column_DEC:value |
DEC_list:ColumnName |
filter_value:value |
Select_columns:filter |
SDSS_DR8:responseBody |
Select_columns:voTable |
Select_columns:outputTable |
select_row_with_min_r:votable_init |
select_row_with_min_r:votable_out |
Cat_n-tables:votableList |
Cat_n-tables:outputFileOut |
min_r_votable |
Uploader
License
All versions of this Workflow are
licensed under:
Version 2 (latest)
(of 2)
Credits (1)
(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 (1)
Log in to make a comment
There is a join box that is not used (in version 2).