Elevation plot v.2

Created: 2011-10-06 03:54:30      Last updated: 2011-10-06 16:32:18

Functionally identical to the original. I tried to upload a version with annotation, but somehow the notes didn't make it to myExperiment.

From the prior verion:

This workflow accepts city and country names as user-supplied input. These value are supplied to the GetWeather webservice (http://www.webservicex.net/globalweather.asmx?WSDL), which returns an XML record of location and weather info for each recognized city. (See the uploaded photo "weather example")

The XML returned from GetWeather is then searched using regular expressions for the geogrpahic coordinates. Because the  coordinates are returned in a different format (with a hyphen) than is required for the next web service (with a period), a lot string-wrangling needs to happen in order to format the coordinates as is needed while not loosing values along the way. All of this happens in the two additional workflows embedded in the main workflow, and which have been uploaded with the titles "latitudewithbeans" and longitudewithbeans". The names reference the fact that in each workflow netbeans scripts had to be edited in order to produce the required output.

From the two nested workflows, the output is two lists - one of latitude coordinates, one of longitude coordinates, both ordered to reflect the order in which the cities were originally entered. These lists are then supplied as inputs for a REST Service that I've configured to use the STRM webservice from geonames.org to fetch an elevation for supplied latitude and longitude coordinates (http://www.geonames.org/export/web-services.html#srtm3).

Because I've designed this workflow to pass blank values when cities are not recognized, another customized regular expression matching beanshell must follow the REST Service to catch any errors thrown from blank input values. Now, errors default to an elevation of -450, lower than any actual city on earth.

Finally, elevations are output onto a bar chart which is labelled with the appropriate city names. Negative elevations print as an elevation equal to zero.

!! Rserve is required for this workflow. !!

Information Preview

Information Run

Run this Workflow in the Taverna Workbench...

Option 1:

Copy and paste this link into File > 'Open workflow location...'
https://myexperiment.org/workflows/2470/download?version=2
[ More InfoExpand ]


Information Workflow Components

Information Authors (0)
Information Titles (0)
Information Descriptions (0)
Information Dependencies (0)
Inputs (2)
Processors (10)
Beanshells (0)
Outputs (1)
Datalinks (14)
Coordinations (0)

Information Workflow Type

Taverna 2

Information Uploader

Information License

All versions of this Workflow are licensed under:

Information Version 2 (latest) (of 2)

View version:

Information Credits (1)

(People/Groups)

Information Attributions (0)

(Workflows/Files)

None

[ edit ]

Information Tags (21)

Log in to add Tags

Information Shared with Groups (1)

Information Featured In Packs (1)

Log in to add to one of your Packs

Information Attributed By (0)

(Workflows/Files)

None

Information Favourited By (1)

Information Statistics

 

Citations (0)
Version History

In chronological order:



Reviews Reviews (0)

No reviews yet

Be the first to review!



Comments Comments (0)

No comments yet

Log in to make a comment




Workflow Other workflows that use similar services (0)

There are no workflows in myExperiment that use similar services to this Workflow.