Skip to content

Commit

Permalink
Release 4.1.2 (#127)
Browse files Browse the repository at this point in the history
* Use {withr} to avoid complications with changing working directory. See <#124>

* Update internal database of stations

* Update NEWS with bug fixes

* Update codemeta.json

* Add GitHub links to DESCRIPTION

* Fix missing "[" and rebuild README

* Polish for new release, add cran-comments.md

* Increment version number to 4.1.2

* Update WORDLIST and codemeta.json

* Update codemeta.json

* update internal stations' data
  • Loading branch information
adamhsparks committed Sep 12, 2024
1 parent 0a80608 commit 36c7c68
Show file tree
Hide file tree
Showing 11 changed files with 37 additions and 41 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: GSODR
Title: Global Surface Summary of the Day ('GSOD') Weather Data Client
Version: 4.1.1.9000
Version: 4.1.2
Authors@R: c(
person("Adam H.", "Sparks", , "adamhsparks@gmail.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-0061-8359")),
Expand Down Expand Up @@ -43,7 +43,7 @@ Description: Provides automated downloading, parsing, cleaning, unit
please see the 'GSOD' 'readme.txt' file available from,
<https://www1.ncdc.noaa.gov/pub/data/gsod/readme.txt>.
License: MIT + file LICENSE
URL: https://docs.ropensci.org/GSODR/
URL: https://docs.ropensci.org/GSODR/, https://github.com/ropensci/GSODR
BugReports: https://github.com/ropensci/GSODR/issues
Depends:
R (>= 3.5.0)
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# GSODR 4.1.1.9000
# GSODR 4.1.2

## Bug fixes

Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ There is a wealth of data available, with historic weather data accessible from

[{weathercan}](https://CRAN.R-project.org/package=weathercan) from [rOpenSci](https://github.com/ropensci/weathercan) makes it easier to search for and download multiple months/years of historical weather data from Environment and Climate Change Canada (ECCC) website.

{weatherOz}](https://CRAN.R-project.org/package=weatherOz) aims to facilitate access and download weather and climate data for Australia from Australian data sources.
[{weatherOz}](https://CRAN.R-project.org/package=weatherOz) aims to facilitate access and download weather and climate data for Australia from Australian data sources.
Data are sourced from from the Western Australian Department of Primary Industries and Regional Development (DPIRD) and the Scientific Information for Land Owners (SILO) API endpoints and the Australian Government Bureau of Meteorology’s (BOM) FTP server.

[{worldmet}](https://CRAN.R-project.org/package=worldmet) provides an easy way to access data from the NOAA Integrated Surface Database (ISD) (the same database {GSODR} provides access to.
Expand Down
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,17 +120,17 @@ tbar
#> 362: 955510-99999 TOOWOOMBA AIRPORT AS AUSTRALIA AU AUS
#> LATITUDE LONGITUDE ELEVATION BEGIN END YEARMODA YEAR MONTH
#> <num> <num> <num> <int> <int> <Date> <int> <int>
#> 1: -27.55 151.917 642 19980301 20240718 2021-01-01 2021 1
#> 2: -27.55 151.917 642 19980301 20240718 2021-01-02 2021 1
#> 3: -27.55 151.917 642 19980301 20240718 2021-01-03 2021 1
#> 4: -27.55 151.917 642 19980301 20240718 2021-01-04 2021 1
#> 5: -27.55 151.917 642 19980301 20240718 2021-01-05 2021 1
#> 1: -27.55 151.917 642 19980301 20240908 2021-01-01 2021 1
#> 2: -27.55 151.917 642 19980301 20240908 2021-01-02 2021 1
#> 3: -27.55 151.917 642 19980301 20240908 2021-01-03 2021 1
#> 4: -27.55 151.917 642 19980301 20240908 2021-01-04 2021 1
#> 5: -27.55 151.917 642 19980301 20240908 2021-01-05 2021 1
#> ---
#> 358: -27.55 151.917 642 19980301 20240718 2021-12-27 2021 12
#> 359: -27.55 151.917 642 19980301 20240718 2021-12-28 2021 12
#> 360: -27.55 151.917 642 19980301 20240718 2021-12-29 2021 12
#> 361: -27.55 151.917 642 19980301 20240718 2021-12-30 2021 12
#> 362: -27.55 151.917 642 19980301 20240718 2021-12-31 2021 12
#> 358: -27.55 151.917 642 19980301 20240908 2021-12-27 2021 12
#> 359: -27.55 151.917 642 19980301 20240908 2021-12-28 2021 12
#> 360: -27.55 151.917 642 19980301 20240908 2021-12-29 2021 12
#> 361: -27.55 151.917 642 19980301 20240908 2021-12-30 2021 12
#> 362: -27.55 151.917 642 19980301 20240908 2021-12-31 2021 12
#> DAY YDAY TEMP TEMP_ATTRIBUTES DEWP DEWP_ATTRIBUTES SLP
#> <int> <int> <num> <int> <num> <int> <num>
#> 1: 1 1 20.9 16 18.1 15 1011.5
Expand Down Expand Up @@ -251,7 +251,7 @@ weather data accessible from nearly 30,000 stations.
search for and download multiple months/years of historical weather data
from Environment and Climate Change Canada (ECCC) website.

[{weatherOz}\](<https://CRAN.R-project.org/package=weatherOz>) aims to
[{weatherOz}](https://CRAN.R-project.org/package=weatherOz) aims to
facilitate access and download weather and climate data for Australia
from Australian data sources. Data are sourced from from the Western
Australian Department of Primary Industries and Regional Development
Expand Down
8 changes: 4 additions & 4 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
"identifier": "GSODR",
"description": "Provides automated downloading, parsing, cleaning, unit conversion and formatting of Global Surface Summary of the Day ('GSOD') weather data from the from the USA National Centers for Environmental Information ('NCEI'). Units are converted from from United States Customary System ('USCS') units to International System of Units ('SI'). Stations may be individually checked for number of missing days defined by the user, where stations with too many missing observations are omitted. Only stations with valid reported latitude and longitude values are permitted in the final data. Additional useful elements, saturation vapour pressure ('es'), actual vapour pressure ('ea') and relative humidity ('RH') are calculated from the original data using the improved August-Roche-Magnus approximation (Alduchov & Eskridge 1996) and included in the final data set. The resulting metadata include station identification information, country, state, latitude, longitude, elevation, weather observations and associated flags. For information on the 'GSOD' data from 'NCEI', please see the 'GSOD' 'readme.txt' file available from, <https://www1.ncdc.noaa.gov/pub/data/gsod/readme.txt>.",
"name": "GSODR: Global Surface Summary of the Day ('GSOD') Weather Data Client",
"relatedLink": ["https://docs.ropensci.org/GSODR/", "https://CRAN.R-project.org/package=GSODR"],
"codeRepository": "https://github.com/ropensci/GSODR",
"issueTracker": "https://github.com/ropensci/GSODR/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "4.1.1.9000",
"version": "4.1.2",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -334,7 +335,7 @@
"applicationCategory": "Tools",
"isPartOf": "https://ropensci.org",
"keywords": ["US-NCEI", "meteorological-data", "global-weather", "weather", "weather-data", "meteorology", "station-data", "surface-weather", "data-access", "US-NCDC", "r", "gsod", "ncdc", "weather-stations", "global-data", "ncei", "weather-information", "historical-weather", "historical-data", "daily-data", "daily-weather", "rstats", "r-package"],
"fileSize": "4347.54KB",
"fileSize": "4347.656KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand All @@ -358,7 +359,7 @@
"name": "{GSODR}: Global Summary Daily Weather Data in R",
"identifier": "10.5281/zenodo.1040727",
"url": "https://CRAN.R-project.org/package=nasapower",
"description": "R package version 4.1.1.9000",
"description": "R package version 4.1.2",
"@id": "https://doi.org/10.5281/zenodo.1040727",
"sameAs": "https://doi.org/10.5281/zenodo.1040727"
},
Expand Down Expand Up @@ -389,7 +390,6 @@
}
}
],
"relatedLink": ["https://docs.ropensci.org/GSODR/", "https://CRAN.R-project.org/package=GSODR"],
"releaseNotes": "https://github.com/ropensci/GSODR/blob/master/NEWS.md",
"readme": "https://github.com/ropensci/GSODR/blob/main/README.md",
"contIntegration": ["https://github.com/ropensci/GSODR/actions/workflows/R-CMD-check.yaml", "https://app.codecov.io/gh/ropensci/GSODR"],
Expand Down
17 changes: 3 additions & 14 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
# GSODR v4.1.0
## R CMD check results

## Test environments
0 errors | 0 warnings | 1 note

- local macOS, Platform: aarch64-apple-darwin20 (64-bit), R 4.4.1
- win-builder, R Under development (unstable)
- win-builder, Platform: x86_64-w64-mingw32, R 4.3.3

This is a new minor release with a bug fix to deal with missing values in the data that were misreported.

## revdepcheck results

We checked 1 reverse dependencies, comparing R CMD check results across CRAN and dev versions of this package.

* We saw 0 new problems
* We failed to check 0 packages
* This is a new patch release with bug fixes.
12 changes: 6 additions & 6 deletions data-raw/fetch_isd-history.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Fetch and Clean ‘isd_history.csv’ File
================
Adam H. Sparks
2024-09-11
2024-09-12

<STYLE type='text/css' scoped>
PRE.fansi SPAN {padding-top: .25em; padding-bottom: .25em};
Expand Down Expand Up @@ -125,7 +125,7 @@ install.packages("GSODR", repos = "https://cloud.r-project.org/")

##
## The downloaded binary packages are in
## /var/folders/r4/wwsd3hsn48j5gck6qv6npkpc0000gr/T//RtmpNkmWel/downloaded_packages
## /var/folders/r4/wwsd3hsn48j5gck6qv6npkpc0000gr/T//RtmpFv4b2D/downloaded_packages

``` r
load(system.file("extdata", "isd_history.rda", package = "GSODR"))
Expand Down Expand Up @@ -157,9 +157,9 @@ new_isd_history <- new_isd_history[, ..x]
## LON ELEV(M) CTRY STATE BEGIN END COUNTRY_NAME ISO2C
## &lt;num&gt; &lt;num&gt; &lt;char&gt; &lt;char&gt; &lt;int&gt; &lt;int&gt; &lt;char&gt; &lt;char&gt;
## 1: 65.567 1156.7 AF 20100519 20120323 AFGHANISTAN AF
## <span style='color: #BBBB00;'>&lt;</span> 2: -8.667 9.0 NO 19310101 <span style='color: #BBBB00;'>20240908</span> NORWAY NO
## <span style='color: #BBBB00;'>&lt;</span> 2: -8.667 9.0 NO 19310101 <span style='color: #BBBB00;'>20240909</span> NORWAY NO
## <span style='color: #0000BB;'>&gt;</span> 2: -8.667 9.0 NO 19310101 <span style='color: #0000BB;'>20240718</span> NORWAY NO
## <span style='color: #BBBB00;'>&lt;</span> 3: 5.341 48.8 NO 19861120 <span style='color: #BBBB00;'>20240908</span> NORWAY NO
## <span style='color: #BBBB00;'>&lt;</span> 3: 5.341 48.8 NO 19861120 <span style='color: #BBBB00;'>20240909</span> NORWAY NO
## <span style='color: #0000BB;'>&gt;</span> 3: 5.341 48.8 NO 19861120 <span style='color: #0000BB;'>20240718</span> NORWAY NO
## 4: 5.867 327.0 NO 19870117 19971231 NORWAY NO
## 5: 11.233 14.0 NO 19870116 19910806 NORWAY NO
Expand Down Expand Up @@ -211,7 +211,7 @@ str(isd_history)
## $ CTRY : chr "AF" "NO" "NO" "NO" ...
## $ STATE : chr "" "" "" "" ...
## $ BEGIN : int 20100519 19310101 19861120 19870117 19870116 19880320 19861109 19850601 19730101 19310103 ...
## $ END : int 20120323 20240908 20240908 19971231 19910806 19971226 20240908 20240908 19970801 20041030 ...
## $ END : int 20120323 20240909 20240909 19971231 19910806 19971226 20240909 20240909 19970801 20041030 ...
## $ COUNTRY_NAME: chr "AFGHANISTAN" "NORWAY" "NORWAY" "NORWAY" ...
## $ ISO2C : chr "AF" "NO" "NO" "NO" ...
## $ ISO3C : chr "AFG" "NOR" "NOR" "NOR" ...
Expand Down Expand Up @@ -259,7 +259,7 @@ website](https://www.ncei.noaa.gov/access/metadata/landing-page/bin/iso?id=gov.n
## collate en_US.UTF-8
## ctype en_US.UTF-8
## tz Australia/Perth
## date 2024-09-11
## date 2024-09-12
## pandoc 3.3 @ /opt/homebrew/bin/ (via rmarkdown)
##
## <span style='color: #00BBBB; font-weight: bold;'>─ Packages ───────────────────────────────────────────────────────────────────</span>
Expand Down
10 changes: 8 additions & 2 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ AIMFAOS
ASOS
Agroclimatology
Alduchov
BOM
Bigouette
CCI
CGIAR
Expand All @@ -17,6 +18,7 @@ Curtin
DATSAV
DEWP
DOI
DPIRD
Detsch
ECCC
ESA's
Expand All @@ -32,10 +34,10 @@ GSODR's
GSODRdata
GSODTools
GSODdata
GSOD’
GeoPackage
ICAO
IMFAOS
ISD
Iannone
JOSS
MODCF
Expand Down Expand Up @@ -86,7 +88,6 @@ countries’
csv
dplyr
et
github
gsod
gz
https
Expand All @@ -103,10 +104,13 @@ md
metres
millimetres
mistyped
modelling
nasapower
ncdc
ncei
noaa
onLoad
openair
optimised
plyr
png
Expand Down Expand Up @@ -136,7 +140,9 @@ untarred
untarring
vapour
visualisation
weatherOz
weathercan
windspeed
worldmet
www
zzz
Binary file modified inst/extdata/isd_diff.rda
Binary file not shown.
Binary file modified inst/extdata/isd_history.rda
Binary file not shown.
1 change: 1 addition & 0 deletions man/GSODR-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 36c7c68

Please sign in to comment.