Releases: ropensci/GSODR
GSODR v4.0.0
Major changes
- Breaking change
nearest_stations()
now returns adata.table
of all station metadata and a value with the distance in kilometres from the user-provided coordinates.
This function previous returned a singlecharacter
vector.
To replicate the previous functionality, you can use the following method by calling theSTNID
column name.
nearest_stations(LAT = 14.16742, LON = 121.255669, distance = 50)$STNID
Minor changes
- Update internal isd history database.
GSODR 3.1.10
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
GSODR 3.1.9
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 avector()
of stations is requested, any valid stations will still be downloaded with the bad combos omitted after the warning is emitted.
v3.1.7
- 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.
3.1.5
-
Redoc package to correct HTML issues.
-
Update internal
isd-history
database. -
Update changed URLs.
3.1.5
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")
withinherits(years, what = "character")
in an internal function,.validate_years()
. -
Updates invalid URLs.
GSODR 3.1.4
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: v3.1.2...v3.1.4
v3.1.2
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 intempdir()
.
v3.1.1
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.
GSODR 3.1.0
New features
-
Include columns for COUNTRY_NAME (country name in English), ISO2C and ISO3C in the final output from
get_GSOD()
andreformat_GSOD()
. -
Diffs in the isd_history are now recorded in the
/data-raw/fetch_isd-history.md
file and shipped with GSODR asisd_history.rda
, which can be viewed by usingload(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.