GSODR Versions Save

API Client for Global Surface Summary of the Day ('GSOD') Weather Data Client in R

v4.0.0

2 months ago

Major changes

  • Breaking change nearest_stations() now returns a data.table of all station metadata and a value with the distance in kilometres from the user-provided coordinates. This function previous returned a single character vector. To replicate the previous functionality, you can use the following method by calling the STNID column name.
nearest_stations(LAT = 14.16742, LON = 121.255669, distance = 50)$STNID

Minor changes

  • Update internal isd history database.

v3.1.10

3 months ago

Minor changes

  • Use {roxyglobals} for handling global values.

  • Update internal isd history database.

  • Tidy up Appendix 2 in vignette, map of GSOD station locations. Add a caption and remove text from .png image itself.

Bug fixes

  • Fix codecov badge in README

v3.1.9

9 months ago

Bug fixes

  • Fix duplicated elevation columns.

Minor changes

  • Remove {httr} as an Import. Use base functionality to check existence first and then {curl} will properly error if a download fails, we will use that functionality.

  • Fix codecov badge to point at proper branch.

  • Ensure function titles are all proper title case.

  • Enhanced handling of data requests for incompatible station-year combinations. A warning() is issued for each bad combo, but if a vector() of stations is requested, any valid stations will still be downloaded with the bad combos omitted after the warning is emitted.

v3.1.7

1 year ago
  • Fix bug where the isd_history.Rda data object was not updated using the data_raw/fetch_isd-history.Rmd.
  • Fix bug where stations were not available in the internal isd_history file, this caused NA values to appear for some stations when run using format_GSOD() or to not be available for download with get_GSOD(). This adds 1,334 new stations that are now available through GSODR. These were always available through GSOD but this bug prevented them from being accessed through this package.
  • Fix minor bug where get_inventory() returned garbage in the header of the object.

v3.1.5

1 year ago
  • Redoc package to correct HTML issues.

  • Update internal isd-history database.

  • Update changed URLs.

3.1.5

2 years ago

GSODR 3.1.5

Minor changes

  • Update internal isd-history database.

  • Use return(invisible(NULL)) for functions that check user inputs without any returns.

  • Replace class(years) == "character") with inherits(years, what = "character") in an internal function, .validate_years().

  • Updates invalid URLs.

v3.1.4

2 years ago

Minor changes

  • Skip ANY and ALL tests on CRAN. This fixes the "problems" with GSODR failing on a Solaris instance when the server failed to respond.

  • Update internal isd-history database.

  • Use \CRANpkg{} in place of \pkg{} in documentation.

Full Changelog: https://github.com/ropensci/GSODR/compare/v3.1.2...v3.1.4

v3.1.2

2 years ago

GSODR 3.1.2

Bug fixes

  • Fix (more) bugs related to NA value replacements.

Minor changes and improvements

  • Simplify NA value replacement in "PRCP" column.

  • The PRCP column values are rounded to two decimal places as in original GSOD data, not one.

  • The TEMP_ATTRIBUTES, DEWP_ATTRIBUTES, SLP_ATTRIBUTES, STP_ATTRIBUTES, VISIB_ATTRIBUTES and WDSP_ATTRIBUTES columns are formatted as an integer not character.

  • Better tests for the generated weather data data.table output checking values and formats.

  • Tests are updated for updated data availability in the GSOD data due to continuous improvements to the data set.

  • Standardise handling of author/contributor comments. None have a full stop now in the comment.

  • Use on.exit() to reset the working directory to the original user-space value after changing the working directory to untar files located in tempdir().

v3.1.1

2 years ago

GSODR 3.1.1

Bug fixes

  • Fixes bug reported in #84 in the FRSHTT columns where the values were all reported as NA even if there were observed values.

  • Fixes bug where NA values reported as 99.99, 999.9 or 9999.9 were not replaced with NA.

Minor changes

  • Examples are no longer wrapped in \donttest{} but use @examplesIf interactive() instead.

v3.1.0

3 years ago

New features

  • Include columns for COUNTRY_NAME (country name in English), ISO2C and ISO3C in the final output from get_GSOD() and reformat_GSOD().

  • Diffs in the isd_history are now recorded in the /data-raw/fetch_isd-history.md file and shipped with GSODR as isd_history.rda, which can be viewed by using load(system.file("extdata", "isd_diff.rda", package = "GSODR")).

  • Update and improve documentation to reflect country name and ISO code columns.

Minor improvements

  • Update NCEI data usage statement.