Skip to content

So Spicy

Compare
Choose a tag to compare
@adamhsparks adamhsparks released this 14 Oct 03:56

NEW FEATURES

  • Multiple stations can be specified for download rather than just downloading
    a single station or all stations
  • A new function, nearest_stations() is now included to find stations within
    a user specified radius (in kilometres) of a point given as latitude and
    longitude in decimal degrees
  • A vignette is now included
  • Output files now include fields for State (US only) and Call (International
    Civil Aviation Organization (ICAO) Airport Code)
  • Use FIPS codes in place of ISO3c for file name and in output files because
    some stations do not have an ISO country code
  • Spatial file output is now in GeoPackage format (GPKG). This results in a
    single file output unlike shapefile and allows for long field names
  • Users can specify file name of output
  • Users can ask for the most recent list of GSOD stations from the NCDC
    FTP server to use in place of the list provided with GSODR
  • All files are written to same output folder, specified by user in the dsn
    parameter. For multiple year queries, the year is appended to the file name
    that is specified by the user
  • R >= 3.2.0 now required
  • Field names in output files use "_" in place of "."
  • Long field names now used in file outputs
  • Country is specified using FIPS codes in file name and output file contents
    due to stations occurring in some locales that lack ISO 3166 3 letter country
    codes
  • The get_GSOD() function will retrieve the latest station data from NCDC and
    automatically merge it with the CGIAR-CSI SRTM elevation values provided by
    this package. Previously, the package provided it's own list of station information,
    which was difficult to keep up-to-date

MINOR IMPROVEMENTS

  • get_GSOD function optimised for speed as best possible after FTPing files
    from NCDC server
  • Reduced package dependencies
  • The get_GSOD() function now checks stations to see if the years being
    queried are provided and returns a message alerting user if the station and
    years requested are not available
  • When stations are specified for retrieval using the station = ""
    parameter, the get_GSOD() function now checks to see if the file exists on
    the server, if it does not, a message is returned and all other stations that
    have files are processed and returned in output
  • Documentation has been improved throughout package

BUG FIXES

  • Fixed: Remove redundant code in get_GSOD() function
  • Fixed: The stations data frame distributed with the package now includes stations
    that are located above 60 latitude and below -60 latitude
  • Fixed: get_GSOD() function would not operate on computer systems with two cores

DEPRECATED AND DEFUNCT

  • The path parameter is now instead called dsn to be more inline with
    other tools like readOGR() and writeOGR
  • Shapefile file out is no longer supported. Use GeoPackage (GPKG) instead