Releases: ropensci/GSODR
v4.1.2
v4.1.1
Bug fixes
- This is a continuation of the bug in the GSOD CSV file format data from the previous release.
The missing values should be 9999.9 as 999.9 is a valid "STP" value.
However, this does not appear to be the value that's actually used for missing data in this field.
So, I've elected to set the STP field toNA
when "STP_ATTRIBUTES" are equal to "0" or no observations used in reporting "STP" to see if this overcomes the issue.
v4.1.0
Minor changes
-
Added citation information for the data themselves to README.
-
Adds new function,
get_updates()
, which gets the changelog for the GSOD data and returns it sorted with most recent changes first.
Bug fixes
-
This is really a bug in the GSOD data, not {GSODR}, but we do our best to please.
As reported by @geospacedman in #117, STP values above 1000 were not properly reported.
Upon further inspection, it was found that the GSOD data in the CSV files is incorrect and the leading "1" is truncated and the values are reported as "034" for e.g. "1034".
Further, {data.table} drops the leading zeros by default on import withfread()
unlesskeepLeadingZeros = TRUE
is set, so that is now set and the "1" is appended when the values are >1000 and all should be well with the world again. -
Fixes title that ended with a full stop.
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