Fetch the daily BOM 0900 or 1500 weather bulletins and return a data frame for a specified state or territory.

get_weather_bulletin(state = "qld", morning = TRUE)

Arguments

state

Australian state or territory as full name or postal code. Fuzzy string matching via agrep is done.

morning

If TRUE, return the 9am bulletin for the nominated state; otherwise return the 3pm bulletin.

Value

Data frame as a data.table object of Australian 9am or 3pm weather observations for a state. For full details of fields and units returned see Appendix 4, "Appendix 4 - Output from get_weather_bulletin()" in the bomrang vignette, use
vignette("bomrang", package = "bomrang") to view.

Details

Allowed state and territory postal codes:

ACT

Australian Capital Territory (will return NSW)

NSW

New South Wales

NT

Northern Territory

QLD

Queensland

SA

South Australia

TAS

Tasmania

VIC

Victoria

WA

Western Australia

It is not possible to return weather bulletins for the entire country in a single call. Rainfall figures for the 9am bulletin are generally for the preceding 24 hours, while those for the 3pm bulletin are for the preceding 6 hours since 9am. Note that values are manually entered into the bulletins and sometimes contain typographical errors which may lead to warnings about "NAs introduced by coercion".

References

Daily observation data come from Australian Bureau of Meteorology (BOM) website. The 3pm bulletin for Queensland is, for example,
http://www.bom.gov.au/qld/observations/3pm_bulletin.shtml

Author

Mark Padgham, [email protected]

Examples

# \donttest{ qld_weather <- get_weather_bulletin(state = "QLD", morning = FALSE) qld_weather
#> stations cld8ths wind_dir wind_speed_kmh temp_c_dry temp_c_dew #> 1: Coconut Is NA <NA> NA NA NA #> 2: Coen Ap NA ENE 24 32 18 #> 3: Horn Is 1 ESE 32 31 22 #> 4: Lockhart River 8 ESE 28 30 23 #> 5: Palmerville NA E 15 36 15 #> --- #> 128: Hobart NA SE 22 19 11 #> 129: Adelaide NA WSW 9 30 10 #> 130: Perth Ap NA SW 22 25 11 #> 131: Darwin 5 N 22 31 23 #> 132: Alice Springs 1 N 13 38 5 #> temp_c_max temp_c_min temp_c_gr barhpa rain_mm weather seastate #> 1: NA NA NA NA NA <NA> <NA> #> 2: 35 NA NA 1008 NA <NA> <NA> #> 3: 33 NA NA 1007 NA <NA> <NA> #> 4: 33 NA NA 1009 NA <NA> <NA> #> 5: 36 NA NA 1008 NA <NA> <NA> #> --- #> 128: NA NA NA 1019 NA <NA> <NA> #> 129: NA NA NA 1011 NA <NA> <NA> #> 130: NA NA NA 1017 NA <NA> <NA> #> 131: 36 NA NA 1007 NA Distant precip. <NA> #> 132: 39 NA NA 1008 NA <NA> <NA>
# }