Using HEK information to get DPAS data
Created: 2010-06-10 16:35:17
Last updated: 2010-06-10 16:35:18
Query HEK for all kinds of events and query DPAS for given instrument for data from event times.
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (1)
Titles (1)
Using HEK information to get DPAS data |
Descriptions (1)
Query HEK for all kinds of events and query DPAS for given instrument for data from event times. |
Dependencies (0)
Inputs (3)
Name |
Description |
start_date |
start time for query
yyyy-mm-ddThh:MM:ss
|
end_date |
end time for query
yyyy-mm-ddThh:MM:ss
|
instrument |
instrument as accepted by DPAS
|
Processors (10)
Name |
Type |
Description |
BaseURL |
stringconstant |
Valuehttp://www.lmsal.com/hek/her? |
Output_type |
stringconstant |
Valuecosec=1& |
cmd |
stringconstant |
Valuecmd=search&type=column&event_type=**& |
coordinate_system |
stringconstant |
Valueevent_coordsys=helioprojective&x1=-1200&x2=1200&y1=-1200&y2=1200 |
constructURL |
beanshell |
ScriptrequestURL=new String();
requestURL=requestURL.concat(base.trim());
requestURL=requestURL.concat(Output_type.trim());
requestURL=requestURL.concat(cmd.trim());
requestURL=requestURL.concat("event_starttime="+start_date.trim()+"&");
requestURL=requestURL.concat("event_endtime="+stop_date.trim()+"&");
requestURL=requestURL.concat(coordinate_system.trim()); |
Get_Web_Page_from_URL |
localworker |
ScriptURL inputURL = null;
if (base != void) {
inputURL = new URL(new URL(base), url);
}
else {
inputURL = new URL(url);
}
URLConnection con = inputURL.openConnection();
InputStream in = con.getInputStream();
InputStreamReader isr = new InputStreamReader(in);
Reader inReader = new BufferedReader(isr);
StringBuffer buf = new StringBuffer();
int ch;
while ((ch = inReader.read()) > -1) {
buf.append((char)ch);
}
inReader.close();
contents = buf.toString();
//String NEWLINE = System.getProperty("line.separator");
//
//URL inputURL = null;
//if (base != void) {
// inputURL = new URL(new URL(base), url);
//} else {
// inputURL = new URL(url);
//}
//StringBuffer result = new StringBuffer();
//BufferedReader reader = new BufferedReader(new InputStreamReader(inputURL.openStream()));
//String line = null;
//while ((line = reader.readLine()) != null) {
// result.append(line);
// result.append(NEWLINE);
//}
//
//contents = result.toString();
|
ExtractStartStopDates |
beanshell |
Scriptimport java.text.SimpleDateFormat;
String pattern="yyyy-MM-dd'T'HH:mm:ss";
SimpleDateFormat sdf = new SimpleDateFormat(pattern);
startdates= new ArrayList();
stopdates= new ArrayList();
String[] parts_start=hek_html.split("");
String[] parts_end=hek_html.split("");
for(int i=1; i |
Query |
wsdl |
Wsdlhttp://msslxw.mssl.ucl.ac.uk:8080/helio-dpas/HelioTavernaService?wsdlWsdl OperationQuery |
Query_query |
xmlsplitter |
|
createListOfCorrectLength |
beanshell |
Scripttextlist = new ArrayList();
for(int i=0; i |
Beanshells (3)
Name |
Description |
Inputs |
Outputs |
constructURL |
|
start_date
stop_date
Output_type
cmd
coordinate_system
base
|
requestURL
|
ExtractStartStopDates |
|
hek_html
|
startdates
stopdates
|
createListOfCorrectLength |
|
list
text
|
textlist
|
Outputs (2)
Name |
Description |
HEK_html |
|
DPASdata |
|
Datalinks (16)
Source |
Sink |
start_date |
constructURL:start_date |
end_date |
constructURL:stop_date |
coordinate_system:value |
constructURL:coordinate_system |
Output_type:value |
constructURL:Output_type |
cmd:value |
constructURL:cmd |
BaseURL:value |
constructURL:base |
constructURL:requestURL |
Get_Web_Page_from_URL:url |
Get_Web_Page_from_URL:contents |
ExtractStartStopDates:hek_html |
Query_query:output |
Query:query |
ExtractStartStopDates:startdates |
Query_query:STARTTIME |
ExtractStartStopDates:stopdates |
Query_query:ENDTIME |
createListOfCorrectLength:textlist |
Query_query:FROM |
ExtractStartStopDates:startdates |
createListOfCorrectLength:list |
instrument |
createListOfCorrectLength:text |
Get_Web_Page_from_URL:contents |
HEK_html |
Query:response |
DPASdata |
Uploader
License
All versions of this Workflow are
licensed under:
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
(1)
Comments (0)
No comments yet
Log in to make a comment