API Client for Global Surface Summary of the Day ('GSOD') Weather Data Client in R
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
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.
Redoc package to correct HTML issues.
Update internal isd-history
database.
Update changed URLs.
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
NA
value replacements.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()
.
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
.
\donttest{}
but use @examplesIf interactive()
instead.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.