Find common events in HEC tables which use the heliographic coordinate system
Use only tables which provide lat_hg and long_hg. Inputs: table names of two HEC tables; time interval in which the search is being conducted; delta for time and location to enlarge the search space. Output: VOTable which combines the resultset of the HEC by the common event.
Preview
Run
Run this Workflow in the Taverna Workbench...
Option 1:
Copy and paste this link into File > 'Open workflow location...'
http://www.myexperiment.org/workflows/2283/download?version=5
[ More Info
]
Taverna is available from http://taverna.sourceforge.net/
If you are having problems downloading it in Taverna, you may need to provide your username and password in the URL so that Taverna can access the Workflow:
Replace http:// in the link above with http://yourusername:yourpassword@
Workflow Components
Authors (1)
| Anja Le Blanc |
Titles (1)
| Find common events in HEC tables which use the heliographic coordinate system |
Descriptions (1)
| Use only tables which provide lat_hg and long_hg. Inputs: table names of two HEC tables; time interval in which the search is being conducted; delta for time and location to enlarge the search space. Output: VOTable which combines the resultset of the HEC by the common event. |
Dependencies (0)
None
| Name | Description |
|---|---|
| catalogue1 | |
| catalogue2 | |
| time_start | time period - start Format: yyyy-mm-ddThh:MM:ss |
| time_end | time period - end Format: yyyy-mm-ddThh:MM:ss |
| time_delta | time delta by which the time interval gets enlarged delta in minutes (integer) |
| location_delta | Search radius around which an event is thought to come from the same location (float) |
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| HEC_1 | wsdl |
Wsdlhttp://festung1.oats.inaf.it:8080/helio-hec/HelioTavernaService?wsdlWsdl OperationQuery |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HEC_1_query | xmlsplitter | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HEC_2 | wsdl |
Wsdlhttp://festung1.oats.inaf.it:8080/helio-hec/HelioTavernaService?wsdlWsdl OperationQuery |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| HEC_2_query | xmlsplitter | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WHERE_value | stringconstant |
Valuelat_hg,!null;long_hg,!null |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Extract_content_of_columns_from_VOTables | workflow | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Extract_content_of_columns_from_VOTables_2 | workflow | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| time_start | stringconstant |
Valuetime_start |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| time_end | stringconstant |
Valuetime_end |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lat_hg | stringconstant |
Valuelat_hg |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| long_hg | stringconstant |
Valuelong_hg |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| time_overlap | beanshell |
Scriptimport java.text.SimpleDateFormat;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
overlap= new ArrayList();
long timedelta=Integer.parseInt(time_delta)*60*1000; // time in minutes
ArrayList starttime1 = new ArrayList();
ArrayList starttime2 = new ArrayList();
ArrayList endtime1 = new ArrayList();
ArrayList endtime2 = new ArrayList();
for(int i = 0; i< start_time1.size(); i ++) {
starttime1.add(sdf.parse(start_time1.get(i)).getTime());
endtime1.add(sdf.parse(end_time1.get(i)).getTime());
}
for(int i = 0; i< start_time2.size(); i ++) {
starttime2.add(sdf.parse(start_time2.get(i)).getTime());
endtime2.add(sdf.parse(end_time2.get(i)).getTime());
}
for(int i = 0; i < starttime1.size(); i ++) {
for(int j = 0; j < starttime2.size(); j++) {
if((starttime1.get(i)-timedelta)<=endtime2.get(j) &&
(endtime1.get(i)+timedelta)>=starttime2.get(j)) {
int[] found = new int[2];
found[0]=i;
found[1]=j;
overlap.add(found);
}
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extractList_time_start | beanshell |
Scriptfor(int i=0; i< column_names.size(); i ++)
{
if(column_names.get(i).compareTo(column_name)==0){
list=lists.get(i);
return;
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extractList_time_end | beanshell |
Scriptfor(int i=0; i< column_names.size(); i ++)
{
if(column_names.get(i).compareTo(column_name)==0){
list=lists.get(i);
return;
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extractList_time_start_2 | beanshell |
Scriptfor(int i=0; i< column_names.size(); i ++)
{
if(column_names.get(i).compareTo(column_name)==0){
list=lists.get(i);
return;
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extractList_time_end_2 | beanshell |
Scriptfor(int i=0; i< column_names.size(); i ++)
{
if(column_names.get(i).compareTo(column_name)==0){
list=lists.get(i);
return;
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extractList_lat | beanshell |
Scriptfor(int i=0; i< column_names.size(); i ++)
{
if(column_names.get(i).compareTo(column_name)==0){
list=lists.get(i);
return;
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extractList_lat_2 | beanshell |
Scriptfor(int i=0; i< column_names.size(); i ++)
{
if(column_names.get(i).compareTo(column_name)==0){
list=lists.get(i);
return;
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extractList_long | beanshell |
Scriptfor(int i=0; i< column_names.size(); i ++)
{
if(column_names.get(i).compareTo(column_name)==0){
list=lists.get(i);
return;
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| extractList_long_2 | beanshell |
Scriptfor(int i=0; i< column_names.size(); i ++)
{
if(column_names.get(i).compareTo(column_name)==0){
list=lists.get(i);
return;
}
} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pos_overlap | beanshell |
Scriptoverlap_out = new ArrayList(); float delta = Float.parseFloat(location_delta); for(int i=0; i |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Create_VOTable | beanshell |
Scriptint findLastNode(String VOTable, String node) {
int pos = VOTable.lastIndexOf("<"+node);
int pos2 = VOTable.indexOf(">",pos);
if(VOTable.charAt(pos2-1)=='/'){
return pos2+1;
}
return (VOTable.lastIndexOf(new String(""+node+">"))+node.length()+3);
}
void addInfo() {
String infoField = "\n
Beanshells (14)
Outputs (1)
Datalinks (77)
Coordinations (0)
None
Log in to add Tags
Version History
In chronological order:
|
Download Workflow

No comments yet
Log in to make a comment