Associate Active Regions and Filaments to the 100 fastest CME
Created: 2012-09-03 13:32:23
This workflow is querying the HEC for the fastest 100 CME of a given list (input parameter); it calculates the latitude from the postion angle; last step is to query the HFC for Active Regions and Filaments for the given time where the bounding box of the feature contains the longitude (feature must be on the correct side of the Sun.)
Inputs: HEC list name (must contain fields: v, time_start, pa_width, pa)
Outputs: v, time_start, pa_width, pa of the 100 fastest CME, VOTables for associated Active Regions and Filaments, counts for associated features
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Associate Active Regions and Filaments to the 100 fastest CME |
Descriptions (1)
This workflow is querying the HEC for the fastest 100 CME of a given list (input parameter); it calculates the latitude from the postion angle; last step is to query the HFC for Active Regions and Filaments for the given time where the bounding box of the feature contains the longitude (feature must be on the correct side of the Sun.)
Inputs: HEC list name (must contain fields: v, time_start, pa_width, pa)
Outputs: v, time_start, pa_width, pa of the 100 fastest CME, VOTables for associated Active Regions and Filaments, counts for associated features |
Dependencies (0)
Inputs (1)
Name |
Description |
HEC_CME_list_name |
List name in the HEC
soho_lasco_cme
seeds_all
cactus_all
|
Processors (20)
Name |
Type |
Description |
HEC_CME |
wsdl |
Wsdlhttp://msslkz.mssl.ucl.ac.uk/helio_hec/HelioTavernaService?wsdlWsdl OperationSQLSelect |
SQLSelect_sql_select |
xmlsplitter |
|
ORDER_BY_value |
stringconstant |
Valuev desc |
LIMIT_value |
stringconstant |
Value100 |
WHAT_value |
stringconstant |
Valuetime_start,pa,pa_width,v |
Split_VOTable_into_its_values |
workflow |
|
turn_around |
beanshell |
Scripttime_start = new ArrayList();
pa = new ArrayList();
pa_width = new ArrayList();
v = new ArrayList();
for(int i=0;i |
createRoI |
beanshell |
Scriptfloat pa_f=Float.parseFloat(pa);
if(pa_f<=180){
hg_lat=90-pa_f;
x=-1;
} else {
hg_lat=pa_f-270;
x=+1;
}
|
HFC_AR |
wsdl |
Wsdlhttp://voparis-helio.obspm.fr/hfc-hqi/HelioTavernaService?wsdlWsdl OperationSQLSelect |
HFC_AR_sql_select |
xmlsplitter |
|
FROM_value_1 |
stringconstant |
ValueVIEW_AR_HQI |
HFC_where |
beanshell |
Scriptimport java.text.SimpleDateFormat;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
long date = sdf.parse(time).getTime();
long offset = 65*6*60*1000;
where = "DATE_OBS>='"+sdf.format(new Date(date-offset))+ "' and DATE_OBS<='"+sdf.format(new Date(date+offset))+ "' and ";
int x_i = Integer.parseInt(x);
where = where +"((BR_HG_LAT0_DEG<="+hg_lat+" or BR_HG_LAT0_DEG is null) or (BR_HG_LAT2_DEG<="+hg_lat+
" or BR_HG_LAT2_DEG is null)) and ((BR_HG_LAT1_DEG>="+hg_lat+" or BR_HG_LAT1_DEG is null) or (BR_HG_LAT3_DEG>="+hg_lat+
" or BR_HG_LAT3_DEG is null)) and ";
if(x_i<0){
where=where+"BR_X0_ARCSEC<0";
} else {
where=where+"BR_X2_ARCSEC>0";
} |
CountAR |
beanshell |
ScriptString[] parts= VOTable.split("");
count = parts.length-1;
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();
|
seperator_value |
stringconstant |
Value, |
HFC_Filament |
wsdl |
Wsdlhttp://voparis-helio.obspm.fr/hfc-hqi/HelioTavernaService?wsdlWsdl OperationSQLSelect |
HFC_Filament_sql_select |
xmlsplitter |
|
FROM_value_2 |
stringconstant |
ValueVIEW_FIL_HQI |
CountFil |
beanshell |
ScriptString[] parts= VOTable.split("");
count = parts.length-1;
Merge_String_List_to_a_String_2 |
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 (6)
Name |
Description |
Inputs |
Outputs |
turn_around |
|
values
|
time_start
pa
pa_width
v
|
createRoI |
|
pa
|
hg_lat
x
|
HFC_where |
|
hg_lat
x
time
|
where
|
CountAR |
|
VOTable
|
count
|
CountFil |
|
VOTable
|
count
|
createLists |
|
votable
|
name
ucd
utype
values
|
Outputs (10)
Name |
Description |
time_start |
|
v |
|
pa_width |
|
pa |
|
HFC_AR_response |
|
AR_count |
|
csv_ar |
|
HFC_Filament_response |
|
Fil_count |
|
csv_fil |
|
Datalinks (33)
Source |
Sink |
SQLSelect_sql_select:output |
HEC_CME:sql_select |
ORDER_BY_value:value |
SQLSelect_sql_select:ORDER_BY |
LIMIT_value:value |
SQLSelect_sql_select:LIMIT |
WHAT_value:value |
SQLSelect_sql_select:WHAT |
HEC_CME_list_name |
SQLSelect_sql_select:FROM |
HEC_CME:response |
Split_VOTable_into_its_values:votable |
Split_VOTable_into_its_values:values |
turn_around:values |
turn_around:pa |
createRoI:pa |
HFC_AR_sql_select:output |
HFC_AR:sql_select |
FROM_value_1:value |
HFC_AR_sql_select:FROM |
HFC_where:where |
HFC_AR_sql_select:WHERE |
createRoI:x |
HFC_where:x |
createRoI:hg_lat |
HFC_where:hg_lat |
turn_around:time_start |
HFC_where:time |
HFC_AR:response |
CountAR:VOTable |
CountAR:count |
Merge_String_List_to_a_String:stringlist |
seperator_value:value |
Merge_String_List_to_a_String:seperator |
HFC_Filament_sql_select:output |
HFC_Filament:sql_select |
FROM_value_2:value |
HFC_Filament_sql_select:FROM |
HFC_where:where |
HFC_Filament_sql_select:WHERE |
HFC_Filament:response |
CountFil:VOTable |
CountFil:count |
Merge_String_List_to_a_String_2:stringlist |
seperator_value:value |
Merge_String_List_to_a_String_2:seperator |
turn_around:time_start |
time_start |
turn_around:v |
v |
turn_around:pa_width |
pa_width |
turn_around:pa |
pa |
HFC_AR:response |
HFC_AR_response |
CountAR:count |
AR_count |
Merge_String_List_to_a_String:concatenated |
csv_ar |
HFC_Filament:response |
HFC_Filament_response |
CountFil:count |
Fil_count |
Merge_String_List_to_a_String_2:concatenated |
csv_fil |
Uploader
License
All versions of this Workflow are
licensed under:
BSD License
Version 1
(of 1)
Credits (1)
(People/Groups)
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
(21)
Only the first 2 workflows that use similar services are shown. View all workflows that use these services.
Comments (0)
No comments yet
Log in to make a comment