Elevation plot v.2
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. !!
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/2470/download?version=1
[ More Info ]
Workflow Components
Workflow Type
Version 1 (earliest) (of 2)
Log in to add Tags
Shared with Groups (1)
Log in to add to one of your Packs
Statistics
Reviews (0)
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