Get SecchiRH composites images
Created: 2012-09-06 07:45:26
Last updated: 2012-09-06 07:48:04
Preview
Run
Run this Workflow in the Taverna Workbench...
Workflow Components
Authors (0)
Titles (0)
Descriptions (0)
Dependencies (0)
Inputs (2)
Name |
Description |
DateYMD |
|
PlotType |
|
Processors (6)
Name |
Type |
Description |
SecchiRH |
rest |
|
Get_image_URLs_from_HTTP_document |
localworker |
ScriptString lowerCaseContent = document.toLowerCase();
int index = 0;
List imagelinks = new ArrayList();
while ((index = lowerCaseContent.indexOf("#");
String strLink = st.nextToken();
imagelinks.add(strLink);
}
|
REGEXP_for_images |
stringconstant |
Value.*(surweb).* |
Get_Image_From_URL |
localworker |
Scriptif ((url == void) || (url == null)) {
throw new RuntimeException("The url must be specified");
}
URL inputURL = null;
if (base != void) {
inputURL = new URL(new URL(base), url);
} else {
inputURL = new URL(url);
}
int bytesRead = 0;
int totalBytesRead = 0;
InputStream is = inputURL.openStream();
ByteArrayOutputStream os = new ByteArrayOutputStream();
byte[] buffer = new byte[2048];
while (true) {
bytesRead = is.read(buffer);
if (bytesRead == -1) {
break;
}
os.write(buffer, 0, bytesRead);
}
image = os.toByteArray();
is.close();
os.close();
|
Base_URL_for_images |
stringconstant |
Valuehttp://secchirh.obspm.fr/ |
Filter_List_of_Strings_by_regex |
localworker |
Scriptfilteredlist = new ArrayList();
for (Iterator i = stringlist.iterator(); i.hasNext();) {
String item = (String) i.next();
if (item.matches(regex)) {
filteredlist.add(item);
}
}
|
Datalinks (8)
Source |
Sink |
DateYMD |
SecchiRH:plotType |
PlotType |
SecchiRH:dateYMD |
SecchiRH:responseBody |
Get_image_URLs_from_HTTP_document:document |
Base_URL_for_images:value |
Get_Image_From_URL:base |
Filter_List_of_Strings_by_regex:filteredlist |
Get_Image_From_URL:url |
REGEXP_for_images:value |
Filter_List_of_Strings_by_regex:regex |
Get_image_URLs_from_HTTP_document:imagelinks |
Filter_List_of_Strings_by_regex:stringlist |
Get_Image_From_URL:image |
image |
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 (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