Extract SDSS field information and PSF
Created: 2012-07-26 17:59:02
Last updated: 2012-09-07 10:21:26
This workflow download from SDSS the information about the field of the image. It receives as a input a table. Each row of this table has information of one image, specifically it contains run, rerun, camcol and field, needed to query SDSS and get the saturation, gain, Extinction coefficient, Zero-point.
The workflow also get the band of the image from its header and build a new table with all this data, needed for applications like Sextractor.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (1)
Inputs (1)
Name |
Description |
input_table |
|
Processors (19)
Name |
Type |
Description |
extract_info |
beanshell |
ScriptRA_COLUMN = 0;
DEC_COLUMN = 1;
RUN_COLUMN = 2;
RERUN_COLUMN = 3;
CAMCOL_COLUMN = 4;
FIELD_COLUMN = 5;
FILE_COLUMN = 6;
BARRED_COLUMN = 7;
PSFIELD_COLUMN = 8;
PSF_COLUMN = 9;
DECs = new ArrayList();
RAs = new ArrayList();
RUNs = new ArrayList();
RERUNs = new ArrayList();
CAMCOLs = new ArrayList();
FIELDs = new ArrayList();
FILEs = new ArrayList();
BARREDs = new ArrayList();
PSFIELDs = new ArrayList();
PSFs = new ArrayList();
for (line : lines.split("\n")) {
split = line.split("\\s");
DECs.add(split[RA_COLUMN]);
RAs.add(split[DEC_COLUMN]);
RUNs.add(split[RUN_COLUMN]);
RERUNs.add(split[RERUN_COLUMN]);
CAMCOLs.add(split[CAMCOL_COLUMN]);
FIELDs.add(split[FIELD_COLUMN]);
FILEs.add(split[FILE_COLUMN]);
BARREDs.add(split[BARRED_COLUMN]);
PSFIELDs.add(split[PSFIELD_COLUMN]);
PSFs.add(split[PSF_COLUMN]);
} |
SDSS_DR7 |
rest |
|
SR_value |
stringconstant |
Value1 |
extract_header_band |
externaltool |
|
header_value |
stringconstant |
ValueFILTER |
extract_filters_for_rows |
externaltool |
|
extract_filters_for_columns |
externaltool |
|
Select_Rows |
tpipe |
|
Select_columns |
tpipe |
|
download_psf |
externaltool |
|
read_psfield |
externaltool |
|
Tool |
externaltool |
|
Format_conversion |
tpipe |
|
formatTableIn_value |
stringconstant |
Valuevotable |
formatTableOut_value |
stringconstant |
Valueascii |
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 |
Valuedrfield.txt |
Merge_String_List_to_a_String |
localworker |
ScriptString seperatorString = "\n";
if (seperator != void) {
seperatorString = seperator;
}
StringBuffer sb = new StringBuffer();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
sb.append(item);
if (i.hasNext()) {
sb.append(seperatorString);
}
}
concatenated = sb.toString();
|
Beanshells (1)
Name |
Description |
Inputs |
Outputs |
extract_info |
|
lines
|
DECs
RAs
RERUNs
RUNs
CAMCOLs
FIELDs
FILEs
BARREDs
PSFIELDs
PSFs
|
Outputs (4)
Name |
Description |
field_votable |
|
path_psf |
|
path_psf_fits |
|
lines |
|
Datalinks (46)
Source |
Sink |
input_table |
extract_info:lines |
extract_info:RAs |
SDSS_DR7:RA |
extract_info:DECs |
SDSS_DR7:DEC |
SR_value:value |
SDSS_DR7:SR |
extract_info:FILEs |
extract_header_band:path |
header_value:value |
extract_header_band:header |
extract_info:CAMCOLs |
extract_filters_for_rows:camcol |
extract_info:FIELDs |
extract_filters_for_rows:field |
extract_info:RERUNs |
extract_filters_for_rows:rerun |
extract_info:RUNs |
extract_filters_for_rows:run |
extract_header_band:STDOUT |
extract_filters_for_columns:band |
SDSS_DR7:responseBody |
Select_Rows:voTable |
extract_filters_for_rows:STDOUT |
Select_Rows:filter |
Select_Rows:outputTable |
Select_columns:voTable |
extract_filters_for_columns:STDOUT |
Select_columns:filter |
extract_info:CAMCOLs |
download_psf:camcol |
extract_info:FIELDs |
download_psf:field |
extract_info:PSFIELDs |
download_psf:path_psfield |
extract_info:RERUNs |
download_psf:rerun |
extract_info:RUNs |
download_psf:run |
extract_header_band:STDOUT |
read_psfield:band |
extract_info:PSFs |
read_psfield:path_psf_fits |
download_psf:STDOUT |
read_psfield:path_psf |
Write_Text_File:outputFile |
Tool:drfield_file |
extract_info:BARREDs |
Tool:barred |
extract_info:CAMCOLs |
Tool:camcol |
extract_info:DECs |
Tool:dec |
extract_info:FIELDs |
Tool:field |
extract_info:FILEs |
Tool:path_image |
extract_info:PSFIELDs |
Tool:path_psfield |
extract_info:PSFs |
Tool:path_psf |
extract_info:RAs |
Tool:ra |
extract_info:RERUNs |
Tool:rerun |
extract_info:RUNs |
Tool:run |
extract_header_band:STDOUT |
Tool:band |
Select_columns:outputTable |
Format_conversion:voTable |
formatTableIn_value:value |
Format_conversion:formatTableIn |
formatTableOut_value:value |
Format_conversion:formatTableOut |
encoding_value:value |
Write_Text_File:encoding |
Format_conversion:outputTable |
Write_Text_File:filecontents |
outputFile_value:value |
Write_Text_File:outputFile |
Tool:STDOUT |
Merge_String_List_to_a_String:stringlist |
Select_columns:outputTable |
field_votable |
download_psf:STDOUT |
path_psf |
extract_info:PSFs |
path_psf_fits |
Merge_String_List_to_a_String:concatenated |
lines |
Uploader
License
All versions of this Workflow are
licensed under:
Version 1 (earliest)
(of 5)
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 (0)
No comments yet
Log in to make a comment