From ff418d9b680472c8a73a91a0c693fb7df061749c Mon Sep 17 00:00:00 2001 From: "Adam H. Sparks" Date: Thu, 26 May 2016 10:17:43 +1000 Subject: [PATCH] Prepare for new submission to CRAN --- DESCRIPTION | 37 ++++++++++++++++--------------------- NEWS.md | 7 +++++++ README.md | 2 +- cran-comments.md | 10 +++++----- revdep/README.md | 4 ++-- revdep/checks.rds | Bin 406 -> 406 bytes revdep/problems.md | 4 ++-- 7 files changed, 33 insertions(+), 31 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 97c74e77..06d4914e 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,7 @@ Package: GSODR Type: Package Title: Download, Clean and Generate New Variables from GSOD Data Version: 0.1.6 -Date: 2016-05-22 +Date: 2016-05-26 Authors@R: c(person("Adam", "Sparks", role = c("aut", "cre"), email = "adamhsparks@gmail.com"), person("Tomislav", "Hengl", role = "ctb", @@ -28,27 +28,22 @@ Description: Download, clean, reformat and create new variables from the omitted. Also omitted are stations with a latitude of < -90 or > 90 or longitude of < - 180 or > 180. Output is returned as a comma-separated values (CSV) file written to disk in a location selected by the user, which - summarises each year by station and includes new variables: actual and - saturation vapor pressure and relative humidity calculated from the original - GSOD data. The resulting files can be as large as 500mb depending on the - user's stringency for missing data and geographic area of interest. Be sure - to have sufficient RAM and disk space as well as a reasonably fast internet - connection to use this package to perform this operation. However, for much - smaller and more manageable data sets, an individual country of interest may - be selected as well as only stations falling between -60/60 degrees latitude - for agroclimatology work. The resulting files include station data (e.g., - station name, country, latitude, longitude, elevation) for use in a - geographic information system (GIS). The function was largely based on - T. Hengl's 'getGSOD.R' script, available from + summarises each year by station and includes new variables: actual vapor + pressure, saturation vapor pressure and relative humidity are calculated + from the original GSOD data. The resulting files can be as large as 500mb + depending on the user's stringency for missing data and geographic area of + interest. Be sure to have sufficient RAM and disk space as well as a + reasonably fast internet connection to use this package to perform this + operation. However, for much smaller and more manageable data sets, an + individual country of interest may be selected as well as only stations + falling between -60/60 degrees latitude for agroclimatology work or + individual stations if the station ID is known. The resulting files include + station data (e.g., station name, country, latitude, longitude, elevation) + for use in a geographic information system (GIS). The function was largely + based on T. Hengl's 'getGSOD.R' script, available from with enhancements - to be more cross-platform, faster and more flexible. Currently flags are - maintained for all of the columns except for MIN/MAX. In the original - MIN/MAX columns of the GSOD data, "blank indicates max temp was taken from - the explicit max temp report and not from the 'hourly' data. * indicates max - temp was derived from the hourly data (i.e., highest hourly or - synoptic-reported temperature).", GSOD readme.txt - . For CSV files - resulting from GSODR the flags are stripped. + to be more cross-platform, faster and more flexible. See the GSOD readme.txt + . Depends: R (>= 3.0.0) License: GPL (>= 3) diff --git a/NEWS.md b/NEWS.md index 7d3d9343..001633a1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,10 @@ +GSODR v0.1.6 (Release date: 2016-05-16) +============== +Changes + * Fix issue when reading .op files into R where temperature was incorrectly read causing negative values where T >= 100F, this issue caused RH values of >100% and incorrect TEMP values + * Spelling corrections + * Include MIN/MAX flag column + * Station data is now included in package rather than downloading from NCDC every time get_GSOD() is run, this data has some corrections where stations with missing LAT/LON values or elevation are omitted, this is **not** the original complete station list provided by NCDC GSODR v0.1.5 (Release date: 2016-05-16) ============== diff --git a/README.md b/README.md index d50251c6..9f32858e 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Use `install_github("author/package")` to install this package. See `?get_GSOD()` for the help file. ## Function description -This package consists of a single function, get_GSOD(), which generates a +This package consists of a single function, `get_GSOD()`, which generates a .csv file in the respective year directory containing the following variables: **STNID** - Station number (WMO/DATSAV3 number) for the location; **WBAN** - number where applicable--this is the historical "Weather Bureau Air diff --git a/cran-comments.md b/cran-comments.md index 431f7949..8304fef8 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -9,11 +9,11 @@ There were no ERRORs or WARNINGs. ## New minor release This is a new minor release. In this version I have: - * Set values where MIN > MAX to NA - * Set more MIN/MAX/DEWP values to NA. GSOD README indicates that 999 indicates missing values in these columns, this does not appear to always be true. There are instances where 99 is the value recorded for missing data. While 99F is possible, the vast majority of these recorded values are missing data, thus the function now converts them to NA - * Fixed bug where YDAY not correctly calculated and reported in CSV file - * CSV files for station only queries now are names with the Station Identifier. Previously named same as Global data - * Likesise, CSV files for agroclimatology now are names with the Station Identifier. Previously named same as Global data +Changes + * Fixed an issue when reading .op files into R where temperature was incorrectly read causing negative values where T >= 100F, this issue caused RH values of >100% and incorrect TEMP values + * Made spelling corrections + * Included MIN/MAX flag columns + * Included station data in package rather than downloading from NCDC every time get_GSOD() is run ## Reverse dependencies diff --git a/revdep/README.md b/revdep/README.md index 104a84b6..314527d8 100644 --- a/revdep/README.md +++ b/revdep/README.md @@ -10,13 +10,13 @@ |language |(EN) | |collate |en_AU.UTF-8 | |tz |Australia/Brisbane | -|date |2016-05-16 | +|date |2016-05-26 | ## Packages |package |* |version |date |source | |:-------|:--|:-------|:----------|:-------------------------| -|GSODR |* |0.1.5 |2016-05-16 |local (adamhsparks/GSODR) | +|GSODR |* |0.1.6 |2016-05-26 |local (adamhsparks/GSODR) | # Check results 0 packages diff --git a/revdep/checks.rds b/revdep/checks.rds index be72dfa19613fb4ea5fce06602d7f9d4846607db..672b9b58137f0813f8afc085078fbdbf842f0d69 100644 GIT binary patch delta 385 zcmV-{0e=3L1C|4j9)HHy0!NG=H%&kiZ=`Mo8%DRZ8>lD$a5vkN=W)i9^SQIZBEvK<%p`>@yd^ejc^?tf9Y9bq~djN$nCzTVRl z4pN>l6cW_9VT8XTiZw(kqcH@`FqG*A+gqNhTB=!Vo1&HIh#?Pmo!)!hVQ2*ZQo+B7PdN#e~pl^lK-U2DBbVPq#zOSh&(rE^I>Y zKQ8t>7h&Y1(0X=IfEI5&Mr_U-+d8$p_rgX7SZd%H`SacUqW+)!<>MZlIq0%fXJd0*!IW>-ygNy|3Tv zYYhOP0bS>(o?p-SQRcD&K+o?LE+Bs+NAqdHmd}6!t>In9^rG;qlX$Mw5U{Lx#W9dpo+0cRA z|G3!mT!gWQLVD9eK8oI1g6N#JHgy_B@1?Z}Fyz1q^5)z5dHp~6E5?^x#u@cgGO9FQ zLb-{0&fPaZ*8D4gnyjq-5>-@Y1yN!$UI)P`<#`I~HcuNU&4a?XXDiFbDPH(EVRFH8 f9YR0mK1_T}ya2Op2+P7WZ+!Iw=rF{OTLS<96iK~6 diff --git a/revdep/problems.md b/revdep/problems.md index 417c8c51..e5c00624 100644 --- a/revdep/problems.md +++ b/revdep/problems.md @@ -10,13 +10,13 @@ |language |(EN) | |collate |en_AU.UTF-8 | |tz |Australia/Brisbane | -|date |2016-05-16 | +|date |2016-05-26 | ## Packages |package |* |version |date |source | |:-------|:--|:-------|:----------|:-------------------------| -|GSODR |* |0.1.5 |2016-05-16 |local (adamhsparks/GSODR) | +|GSODR |* |0.1.6 |2016-05-26 |local (adamhsparks/GSODR) | # Check results 0 packages with problems