From 08ebea3377818e2c26228215f1d36a630cdabb11 Mon Sep 17 00:00:00 2001 From: "Adam H. Sparks" Date: Tue, 19 Sep 2017 19:52:24 +1000 Subject: [PATCH] Add Mark's information to DESCRIPTION and CITATION --- .gitattributes | 0 DESCRIPTION | 3 +- docs/articles/bomrang.html | 204 ++++++++++++++++++------------------ docs/articles/use_case.html | 52 ++++----- docs/authors.html | 7 +- docs/index.html | 9 +- inst/CITATION | 3 +- 7 files changed, 141 insertions(+), 137 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..e69de29b diff --git a/DESCRIPTION b/DESCRIPTION index 9a0b7439..ea20bd5f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,7 +12,8 @@ Authors@R: c(person("Adam", "Sparks", role = c("aut", "cre"), email = "keith.pembleton@usq.edu.au", comment = "https://orcid.org/0000-0002-1896-4516"), person("Mark", "Padgham", role = "aut", - email = "mark.padgham@email.com")) + email = "mark.padgham@email.com", + comment = "https://orcid.org/0000-0003-2172-5265")) Description: Provides functions to interface with Australian Government Bureau of Meteorology (BoM) data, fetching data and returning a tidy data frame of précis forecasts, current weather data from stations, agriculture diff --git a/docs/articles/bomrang.html b/docs/articles/bomrang.html index 09bcee63..c6e0626a 100644 --- a/docs/articles/bomrang.html +++ b/docs/articles/bomrang.html @@ -126,47 +126,47 @@

## 5 4 95936 Melbourne (Olympic Park) IDV60801 ## 6 5 95936 Melbourne (Olympic Park) IDV60801 ## local_date_time local_date_time_full aifstime_utc lat -## 1 29/07:00pm 2017-08-29 19:00:00 2017-08-29 09:00:00 -37.8255 -## 2 29/06:30pm 2017-08-29 18:30:00 2017-08-29 08:30:00 -37.8255 -## 3 29/06:00pm 2017-08-29 18:00:00 2017-08-29 08:00:00 -37.8255 -## 4 29/05:30pm 2017-08-29 17:30:00 2017-08-29 07:30:00 -37.8255 -## 5 29/05:00pm 2017-08-29 17:00:00 2017-08-29 07:00:00 -37.8255 -## 6 29/04:30pm 2017-08-29 16:30:00 2017-08-29 06:30:00 -37.8255 +## 1 19/07:30pm 2017-09-19 19:30:00 2017-09-19 09:30:00 -37.8255 +## 2 19/07:00pm 2017-09-19 19:00:00 2017-09-19 09:00:00 -37.8255 +## 3 19/06:30pm 2017-09-19 18:30:00 2017-09-19 08:30:00 -37.8255 +## 4 19/06:00pm 2017-09-19 18:00:00 2017-09-19 08:00:00 -37.8255 +## 5 19/05:30pm 2017-09-19 17:30:00 2017-09-19 07:30:00 -37.8255 +## 6 19/05:00pm 2017-09-19 17:00:00 2017-09-19 07:00:00 -37.8255 ## lon apparent_t cloud cloud_base_m cloud_oktas cloud_type -## 1 144.9816 9.3 - NA NA - -## 2 144.9816 9.4 - NA NA - -## 3 144.9816 10.4 - NA NA - -## 4 144.9816 10.8 - NA NA - -## 5 144.9816 11.0 - NA NA - -## 6 144.9816 10.2 - NA NA - +## 1 144.9816 9.8 - NA NA - +## 2 144.9816 9.2 - NA NA - +## 3 144.9816 9.0 - NA NA - +## 4 144.9816 9.2 - NA NA - +## 5 144.9816 8.8 - NA NA - +## 6 144.9816 9.7 - NA NA - ## cloud_type_id delta_t gust_kmh gust_kt air_temp dewpt press press_msl -## 1 NA 3.9 13 7 12.1 3.1 1022.8 1022.8 -## 2 NA 3.3 13 7 11.9 4.6 1022.6 1022.6 -## 3 NA 3.4 0 0 11.7 4.2 1022.4 1022.4 -## 4 NA 3.7 0 0 12.1 3.9 1022.1 1022.1 -## 5 NA 3.6 0 0 12.3 4.3 1022.0 1022.0 -## 6 NA 3.5 7 4 12.2 4.4 1021.9 1021.9 +## 1 NA 2.4 7 4 11.1 5.8 1022.3 1022.3 +## 2 NA 2.9 11 6 11.4 5.1 1022.0 1022.0 +## 3 NA 3.0 13 7 11.5 4.9 1021.8 1021.8 +## 4 NA 3.2 9 5 11.7 4.7 1021.4 1021.4 +## 5 NA 3.1 20 11 11.7 4.9 1021.2 1021.2 +## 6 NA 3.6 13 7 12.3 4.3 1020.9 1020.9 ## press_qnh press_tend rain_trace rel_hum sea_state swell_dir_worded -## 1 1022.8 - 0 54 - - -## 2 1022.6 - 0 61 - - -## 3 1022.4 - 0 60 - - -## 4 1022.1 - 0 57 - - -## 5 1022.0 - 0 58 - - -## 6 1021.9 - 0 59 - - +## 1 1022.3 - 0 70 - - +## 2 1022.0 - 0 65 - - +## 3 1021.8 - 0 64 - - +## 4 1021.4 - 0 62 - - +## 5 1021.2 - 0 63 - - +## 6 1020.9 - 0 58 - - ## swell_height swell_period vis_km weather wind_dir wind_spd_kmh -## 1 NA NA 10 - W 7 -## 2 NA NA 10 - WNW 7 -## 3 NA NA 10 - CALM 0 -## 4 NA NA 10 - CALM 0 -## 5 NA NA 10 - CALM 0 -## 6 NA NA 10 - S 4 +## 1 NA NA 10 - S 2 +## 2 NA NA 10 - SSW 6 +## 3 NA NA 10 - S 7 +## 4 NA NA 10 - SSE 7 +## 5 NA NA 10 - S 9 +## 6 NA NA 10 - S 7 ## wind_spd_kt -## 1 4 -## 2 4 -## 3 0 -## 4 0 -## 5 0 -## 6 2 +## 1 1 +## 2 3 +## 3 4 +## 4 4 +## 5 5 +## 6 4
@@ -206,33 +206,33 @@

## 5 4 IDQ11295 QLD Brisbane QLD_PT001 -27.4808 153.0389 8.1 ## 6 5 IDQ11295 QLD Brisbane QLD_PT001 -27.4808 153.0389 8.1 ## start_time_local end_time_local UTC_offset start_time_utc -## 1 2017-08-29 17:00:00 2017-08-30 10:00 2017-08-29 07:00:00 -## 2 2017-08-30 00:00:00 2017-08-31 10:00 2017-08-29 14:00:00 -## 3 2017-08-31 00:00:00 2017-09-01 10:00 2017-08-30 14:00:00 -## 4 2017-09-01 00:00:00 2017-09-02 10:00 2017-08-31 14:00:00 -## 5 2017-09-02 00:00:00 2017-09-03 10:00 2017-09-01 14:00:00 -## 6 2017-09-03 00:00:00 2017-09-04 10:00 2017-09-02 14:00:00 +## 1 2017-09-19 17:00:00 2017-09-20 10:00 2017-09-19 07:00:00 +## 2 2017-09-20 00:00:00 2017-09-21 10:00 2017-09-19 14:00:00 +## 3 2017-09-21 00:00:00 2017-09-22 10:00 2017-09-20 14:00:00 +## 4 2017-09-22 00:00:00 2017-09-23 10:00 2017-09-21 14:00:00 +## 5 2017-09-23 00:00:00 2017-09-24 10:00 2017-09-22 14:00:00 +## 6 2017-09-24 00:00:00 2017-09-25 10:00 2017-09-23 14:00:00 ## end_time_utc minimum_temperature maximum_temperature -## 1 2017-08-29 14:00:00 NA NA -## 2 2017-08-30 14:00:00 10 25 -## 3 2017-08-31 14:00:00 11 22 -## 4 2017-09-01 14:00:00 10 24 -## 5 2017-09-02 14:00:00 10 25 -## 6 2017-09-03 14:00:00 12 27 -## lower_precipitation_limit upper_precipitation_limit precis -## 1 NA NA Mostly clear. -## 2 0 0.0 Sunny. -## 3 0 0.4 Possible shower. -## 4 0 0.0 Sunny. -## 5 0 0.0 Sunny. -## 6 0 0.0 Mostly sunny. -## probability_of_precipitation -## 1 0 -## 2 10 -## 3 30 -## 4 10 -## 5 5 -## 6 5 +## 1 2017-09-19 14:00:00 NA NA +## 2 2017-09-20 14:00:00 15 26 +## 3 2017-09-21 14:00:00 14 25 +## 4 2017-09-22 14:00:00 16 28 +## 5 2017-09-23 14:00:00 16 31 +## 6 2017-09-24 14:00:00 20 33 +## lower_precipitation_limit upper_precipitation_limit +## 1 NA NA +## 2 0 0 +## 3 0 0 +## 4 0 1 +## 5 0 0 +## 6 0 0 +## precis probability_of_precipitation +## 1 Mostly clear. 5 +## 2 Mostly sunny. 0 +## 3 Partly cloudy. 10 +## 4 Possible shower or storm. 40 +## 5 Mostly sunny. 0 +## 6 Mostly sunny. 5

@@ -263,34 +263,34 @@

QLD_bulletin <- get_ag_bulletin(state = "QLD") head(QLD_bulletin)

-
##   product_id state dist   wmo  site          station
-## 1   IDQ60604   QLD   38 95482 38026       Birdsville
-## 2   IDQ60604   QLD   40 94578 40842 Brisbane Airport
-## 3   IDQ60604   QLD   39 94387 39128        Bundaberg
-## 4   IDQ60604   QLD   31 94287 31011           Cairns
-## 5   IDQ60604   QLD   44 94510 44021      Charleville
-## 6   IDQ60604   QLD   33 94360 33013     Collinsville
-##                  full_name      obs_time_local        obs_time_utc
-## 1       BIRDSVILLE AIRPORT 2017-08-29 09:00:00 2017-08-28 23:00:00
-## 2            BRISBANE AERO 2017-08-29 09:00:00 2017-08-28 23:00:00
-## 3           BUNDABERG AERO 2017-08-29 09:00:00 2017-08-28 23:00:00
-## 4              CAIRNS AERO 2017-08-29 09:00:00 2017-08-28 23:00:00
-## 5         CHARLEVILLE AERO 2017-08-29 09:00:00 2017-08-28 23:00:00
-## 6 COLLINSVILLE POST OFFICE 2017-08-29 09:00:00 2017-08-28 23:00:00
-##   time_zone      lat      lon  elev bar_ht start  end r   tn   tx twd ev
-## 1       EST -25.8975 139.3472  46.6   47.0  2000 2017 0  4.2 21.3 6.3 NA
-## 2       EST -27.3917 153.1292   4.5    9.5  1992 2017 0  7.6 23.3 7.0  8
-## 3       EST -24.9069 152.3230  30.8   31.5  1942 2017 0  9.7 25.8 6.1 NA
-## 4       EST -16.8736 145.7458   2.2    8.3  1941 2017 0 17.2 28.7 5.5 NA
-## 5       EST -26.4139 146.2558 301.6  303.3  1942 2017 0 -0.4 19.8 8.3 NA
-## 6       EST -20.5533 147.8464 196.0     NA  1939 2017 0 12.0 29.8 2.4  4
-##    tg sn   t5  t10  t20  t50  t1m  wr
-## 1  NA NA   NA   NA   NA   NA   NA  NA
-## 2 3.5 11 16.0 16.0 17.0 19.0 19.0 232
-## 3  NA NA 18.1 18.8 20.2 19.7 21.7 170
-## 4  NA NA   NA   NA   NA   NA   NA  NA
-## 5  NA NA   NA   NA   NA   NA   NA  NA
-## 6  NA NA   NA   NA   NA   NA   NA  NA
+
##   product_id state dist   wmo  site          station          full_name
+## 1   IDQ60604   QLD   38 95482 38026       Birdsville BIRDSVILLE AIRPORT
+## 2   IDQ60604   QLD   40 94578 40842 Brisbane Airport      BRISBANE AERO
+## 3   IDQ60604   QLD   39 94387 39128        Bundaberg     BUNDABERG AERO
+## 4   IDQ60604   QLD   31 94287 31011           Cairns        CAIRNS AERO
+## 5   IDQ60604   QLD   44 94510 44021      Charleville   CHARLEVILLE AERO
+## 6   IDQ60604   QLD   41 94542 41522            Dalby      DALBY AIRPORT
+##        obs_time_local        obs_time_utc time_zone      lat      lon
+## 1 2017-09-19 09:00:00 2017-09-18 23:00:00       EST -25.8975 139.3472
+## 2 2017-09-19 09:00:00 2017-09-18 23:00:00       EST -27.3917 153.1292
+## 3 2017-09-19 09:00:00 2017-09-18 23:00:00       EST -24.9069 152.3230
+## 4 2017-09-19 09:00:00 2017-09-18 23:00:00       EST -16.8736 145.7458
+## 5 2017-09-19 09:00:00 2017-09-18 23:00:00       EST -26.4139 146.2558
+## 6 2017-09-19 09:00:00 2017-09-18 23:00:00       EST -27.1605 151.2634
+##    elev bar_ht start  end    r   tn   tx twd  ev  tg   sn   t5  t10  t20
+## 1  46.6   47.0  2000 2017  0.0 16.6 33.6 6.8  NA  NA   NA   NA   NA   NA
+## 2   4.5    9.5  1992 2017  0.0 11.4 23.8 5.5 6.6 7.3 10.1 20.7 19.6 20.2
+## 3  30.8   31.5  1942 2017  0.0 10.8 26.1 5.5  NA  NA   NA 21.0 21.4 22.5
+## 4   2.2    8.3  1941 2017 46.4 21.5 27.9 0.8  NA  NA   NA   NA   NA   NA
+## 5 301.6  303.3  1942 2017  0.0 16.3 31.0 9.0  NA  NA   NA   NA   NA   NA
+## 6 343.9  344.4  1992 2017  0.0 10.8 27.3 5.9  NA  NA   NA 18.9   NA 18.5
+##    t50  t1m  wr
+## 1   NA   NA  NA
+## 2 21.4 20.9 199
+## 3 22.2 23.1  NA
+## 4   NA   NA  NA
+## 5   NA   NA  NA
+## 6   NA 18.5  NA
@@ -320,19 +320,19 @@

qld_weather <- get_weather_bulletin(state = "QLD")
 head(qld_weather)
##         stations cld8ths wind_dir wind_speed_kmh temp_c_dry temp_c_dew
-## 1     Coconut Is      NA       SE              4         27         NA
-## 2        Coen Ap      NA      ENE             17         25         16
-## 3        Horn Is      NA       SE             28         26         19
-## 4 Lockhart River       4      ESE             17         25         18
-## 5    Palmerville      NA      ENE              9         25         15
-## 6       Scherger      NA      ESE             13         24         17
+## 1     Coconut Is      NA       SE              7         27         NA
+## 2        Coen Ap      NA       SE             15         24         21
+## 3        Horn Is       3      ESE             32         27         23
+## 4 Lockhart River       8       SE             28         25         23
+## 5    Palmerville      NA        N              2         24         21
+## 6       Scherger      NA       SE             17         27         21
 ##   temp_c_max temp_c_min temp_c_gr barhpa rain_mm weather seastate
-## 1         31         25        NA   1013      NA                 
-## 2         30         13        NA   1015      NA                 
-## 3         31         24        NA   1014      NA                 
-## 4         29         14        NA   1015      NA                 
-## 5         33         14        NA   1016      NA                 
-## 6         33         17        NA   1014      NA
+## 1 29 25 NA 1013 NA +## 2 30 22 NA 1016 NA +## 3 31 25 NA 1013 0.6 +## 4 26 24 NA 1016 3.0 +## 5 31 22 NA 1018 0.4 +## 6 30 24 NA 1015 NA

diff --git a/docs/articles/use_case.html b/docs/articles/use_case.html index 7849e6dc..1d82bb67 100644 --- a/docs/articles/use_case.html +++ b/docs/articles/use_case.html @@ -130,33 +130,33 @@

## 5 4 IDQ11295 QLD Brisbane QLD_PT001 -27.4808 153.0389 8.1 ## 6 5 IDQ11295 QLD Brisbane QLD_PT001 -27.4808 153.0389 8.1 ## start_time_local end_time_local UTC_offset start_time_utc -## 1 2017-08-29 17:00:00 2017-08-30 10:00 2017-08-29 07:00:00 -## 2 2017-08-30 00:00:00 2017-08-31 10:00 2017-08-29 14:00:00 -## 3 2017-08-31 00:00:00 2017-09-01 10:00 2017-08-30 14:00:00 -## 4 2017-09-01 00:00:00 2017-09-02 10:00 2017-08-31 14:00:00 -## 5 2017-09-02 00:00:00 2017-09-03 10:00 2017-09-01 14:00:00 -## 6 2017-09-03 00:00:00 2017-09-04 10:00 2017-09-02 14:00:00 +## 1 2017-09-19 17:00:00 2017-09-20 10:00 2017-09-19 07:00:00 +## 2 2017-09-20 00:00:00 2017-09-21 10:00 2017-09-19 14:00:00 +## 3 2017-09-21 00:00:00 2017-09-22 10:00 2017-09-20 14:00:00 +## 4 2017-09-22 00:00:00 2017-09-23 10:00 2017-09-21 14:00:00 +## 5 2017-09-23 00:00:00 2017-09-24 10:00 2017-09-22 14:00:00 +## 6 2017-09-24 00:00:00 2017-09-25 10:00 2017-09-23 14:00:00 ## end_time_utc minimum_temperature maximum_temperature -## 1 2017-08-29 14:00:00 NA NA -## 2 2017-08-30 14:00:00 10 25 -## 3 2017-08-31 14:00:00 11 22 -## 4 2017-09-01 14:00:00 10 24 -## 5 2017-09-02 14:00:00 10 25 -## 6 2017-09-03 14:00:00 12 27 -## lower_precipitation_limit upper_precipitation_limit precis -## 1 NA NA Mostly clear. -## 2 0 0.0 Sunny. -## 3 0 0.4 Possible shower. -## 4 0 0.0 Sunny. -## 5 0 0.0 Sunny. -## 6 0 0.0 Mostly sunny. -## probability_of_precipitation -## 1 0 -## 2 10 -## 3 30 -## 4 10 -## 5 5 -## 6 5 +## 1 2017-09-19 14:00:00 NA NA +## 2 2017-09-20 14:00:00 15 26 +## 3 2017-09-21 14:00:00 14 25 +## 4 2017-09-22 14:00:00 16 28 +## 5 2017-09-23 14:00:00 16 31 +## 6 2017-09-24 14:00:00 20 33 +## lower_precipitation_limit upper_precipitation_limit +## 1 NA NA +## 2 0 0 +## 3 0 0 +## 4 0 1 +## 5 0 0 +## 6 0 0 +## precis probability_of_precipitation +## 1 Mostly clear. 5 +## 2 Mostly sunny. 0 +## 3 Partly cloudy. 10 +## 4 Possible shower or storm. 40 +## 5 Mostly sunny. 0 +## 6 Mostly sunny. 5

Now we use a for() loop that searches through the Queensland précis forecast data frame and subsets it based on location each subscriber has nominated and the temperature threshold we have set. As part of the for() loop there is an if() statement that uses the mailR package to send an email to the subscribers if the forecast maximum temperatures are greater than or equal to the threshold. This email informs the recipient of the dates that high temperatures are expected.

QLD_hotdates <-
   QLD_forecast %>%
diff --git a/docs/authors.html b/docs/authors.html
index 5cb0ea29..6f7034cd 100644
--- a/docs/authors.html
+++ b/docs/authors.html
@@ -102,13 +102,14 @@
       

Citation

-

Sparks A, Parsonage H and Pembleton K (????). +

Sparks A, Padgham M, Parsonage H and Pembleton K (2017). bomrang: Fetch Australian Government Bureau of Meteorology Weather Data. doi: 10.5281/zenodo.598301, https://github.com/ropensci/bomrang.

@Manual{,
   title = {{bomrang}: Fetch Australian Government Bureau of Meteorology Weather Data},
-  author = {Adam Sparks and Hugh Parsonage and Keith Pembleton},
+  author = {Adam Sparks and Mark Padgham and Hugh Parsonage and Keith Pembleton},
+  year = {2017},
   url = {https://github.com/ropensci/bomrang},
   doi = {10.5281/zenodo.598301},
 }
@@ -131,7 +132,7 @@

Authors

  • Mark Padgham. Author. -

    +
    https://orcid.org/0000-0003-2172-5265

  • diff --git a/docs/index.html b/docs/index.html index 83882092..24ca60f8 100644 --- a/docs/index.html +++ b/docs/index.html @@ -544,11 +544,11 @@

    or the BibTeX entry:

    @Manual{R-pkg-bomrang,
     author       = {Adam Sparks and Hugh Parsonage and Keith Pembleton and Mark Padgham},
    -title        = {bomrang: Fetch Australian Government Bureau of Meteorology
    -Weather Data},
    +title        = {bomrang: Fetch Australian Government Bureau of Meteorology Weather Data},
     year         = {2017},
     doi          = {10.5281/zenodo.598301},
    -url          = {https://github.com/ropensci/bomrang}
    +url = {https://github.com/ropensci/bomrang}, +}

  • Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

  • @@ -587,7 +587,8 @@

    Developers

  • Keith Pembleton
    Author
    (https://orcid.org/0000-0002-1896-4516)
  • -
  • Mark Padgham
    Author
  • +
  • Mark Padgham
    Author
    (https://orcid.org/0000-0003-2172-5265) +
  • Dev status