This SPSS Modeler Extension accepts a vector of airport/weather station IDs and returns various weather data points for each location.
R
Switch branches/tags
Nothing to show
Clone or download
gfilla fixed extension based on issue #17 on weatherData
added use of curl package and use https over http.  Realized functions
in this extension are from weatherData but taken out of package.
1
Latest commit 5eb901b Apr 7, 2016

README.md

Weather Underground Import

Description:

This extension imports weather data for a vector of valid 4 digit ICAO Airport codes or a valid Weather Station ID (examples: "KBUF", "KORD", "VABB" for Mumbai). The extension will return a record of weather information for a given date at each location.

Note: Visit Weather Underground to find the correct Airport code or Station ID if needed. Wikipedia maintains a list of ICAO Airport codes here.


User Interface:

This extension reads in a column of location from data in SPSS Modeler and accepts a date to import weather observations for. You have the option to return the last record on file for the date or select the record that is the minimum or maximum for each of the weather features. For example you can return the records for a date that contain the minimum temperature for the date at each location.

Dialog

Output:

The following fields will be returned when the node is executed:

  • Time
  • Temperature
  • Dew.Point
  • Humidity
  • Sea Level Pressure
  • Visibility
  • Wind Direction
  • Wind Speed
  • Gust Speed
  • Precipitation
  • Events
  • Conditions
  • Wind Dir Degrees
  • DateUTC
  • DateTime

Output

Stream

Requirements

  • IBM SPSS Modeler v16 or later
  • ‘R Essentials for SPSS Modeler’ plugin: Download here
  • R 2.15.x or R 3.1 (Use this link to find the correct version)

Installation instructions

  1. Download the extension: Download
  2. Close IBM SPSS Modeler. Save the .cfe file in the CDB directory, located by default on Windows in "C:\ProgramData\IBM\SPSS\Modeler\version\CDB" or under your IBM SPSS Modeler installation directory. Note: this is a hidden directory, so you need to type it in manually or copy/paste the file path.
  3. Restart IBM SPSS Modeler, the node will now appear in the Model palette.

R Packages used

The R packages will be installed the first time the node is used as long as an Internet connection is available.


Documentation and samples

  • Find a PDF with the documentation of this extension in the Documentation directory
  • There is a sample available in the Example directory

License

Apache 2.0

Contributors