Pack: Find elevation given city and country names

Created: 2011-10-06 03:06:32      Last updated: 2011-10-06 04:15:33
Information Live view

Title: Find elevation given city and country names


Information Description

This pack contains the workflows and supplemental files that I created for a project in IST600 - eScience and eResearch Workflows.

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 the 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. !!

Subscribe to RSS feed for items in this pack feed Download Information Items (7)

  • Internal item

    File: "Elevation plot..." example output (Chrisser)

    Added by Chrisser ... more than 1 year ago (2011-10-06 04:12:10)

    moreExpand

  • Internal item

    File: "Elevation plot..." workflow, expanded view (Chrisser)

    Added by Chrisser ... more than 1 year ago (2011-10-06 04:12:22)

    moreExpand

  • Internal item

    Workflow: Elevation plot v.2 (Chrisser)

    Added by Chrisser ... more than 1 year ago (2011-10-06 04:10:03)

    moreExpand

  • Internal item

    Workflow: Latitude with beanshell (Chrisser)

    Added by Chrisser ... more than 1 year ago (2011-10-06 04:09:37)

    moreExpand

  • Internal item

    Workflow: Longitude with beanshell (Chrisser)

    Added by Chrisser ... more than 1 year ago (2011-10-06 04:11:47)

    moreExpand

  • Internal item

    File: Weather Example (Chrisser)

    Added by Chrisser ... more than 1 year ago (2011-10-06 04:13:07)

    moreExpand

  • Internal item

    File: Workflow compact (Chrisser)

    Added by Chrisser ... more than 1 year ago (2011-10-06 04:12:45)

    moreExpand



Information Relationships (8)

  1. Weather Example is an input to Workflow compact.
  2. Weather Example is an input to "Elevation plot..." workflow, expanded view.
  3. Weather Example is an input to Elevation plot v.2.
  4. Weather Example is an input to Longitude with beanshell.
  5. Weather Example is an input to Latitude with beanshell.
  6. "Elevation plot..." example output is an output from Workflow compact.
  7. "Elevation plot..." example output is an output from "Elevation plot..." workflow, expanded view.
  8. "Elevation plot..." example output is an output from Elevation plot v.2.


Information Download


Information Creator

7 items in this pack

Information License

All versions of this Pack are not licensed.

Information Tags (20)

Log in to add Tags

Information Shared with Groups (1)

Information Featured In Packs (0)

None

Log in to add to one of your Packs

Information Favourited By (0)

No one

Information Statistics

1724 viewings

558 downloads

[ see breakdown ]

 



Comments Comments (0)

No comments yet

Log in to make a comment


What is this?

Linked Data

Non-Information Resource URI: http://www.myexperiment.org/packs/219


Alternative Formats

HTML
RDF
XML