Fetch the BOM daily précis forecast and return a data frame of the seven-day town forecasts for a specified state or territory.

get_precis_forecast(state = "AUS")

Arguments

state

Australian state or territory as full name or postal code. Fuzzy string matching via agrep is done. Defaults to “AUS” returning all state bulletins, see Details for more.

Value

A data.table of an Australia BOM précis seven day forecasts for BOM selected towns. For full details of fields and units returned see Appendix 2 in the bomrang vignette, use
vignette("bomrang", package = "bomrang") to view.

Details

Allowed state and territory postal codes, only one state per request or all using AUS.

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

AUS

Australia, returns forecast for all states, NT and ACT

References

Forecast data come from Australian Bureau of Meteorology (BOM) Weather Data Services
http://www.bom.gov.au/catalogue/data-feeds.shtml

Location data and other metadata for towns come from the BOM anonymous FTP server with spatial data
ftp://ftp.bom.gov.au/anon/home/adfd/spatial/, specifically the DBF file portion of a shapefile,
ftp://ftp.bom.gov.au/anon/home/adfd/spatial/IDM00013.dbf

See also

Author

Adam H. Sparks, [email protected] and Keith Pembleton, [email protected] and Paul Melloy, [email protected]

Examples

# \donttest{ # get the short forecast for Queensland BOM_forecast <- get_precis_forecast(state = "QLD") BOM_forecast
#> index product_id state town aac lat lon elev #> 1: 0 IDQ11295 QLD Brisbane QLD_PT001 -27.48080 153.0389 8.1 #> 2: 1 IDQ11295 QLD Brisbane QLD_PT001 -27.48080 153.0389 8.1 #> 3: 2 IDQ11295 QLD Brisbane QLD_PT001 -27.48080 153.0389 8.1 #> 4: 3 IDQ11295 QLD Brisbane QLD_PT001 -27.48080 153.0389 8.1 #> 5: 4 IDQ11295 QLD Brisbane QLD_PT001 -27.48080 153.0389 8.1 #> --- #> 787: 2 IDQ11295 QLD Port Douglas QLD_PT254 -16.48681 145.4635 70.4 #> 788: 3 IDQ11295 QLD Port Douglas QLD_PT254 -16.48681 145.4635 70.4 #> 789: 4 IDQ11295 QLD Port Douglas QLD_PT254 -16.48681 145.4635 70.4 #> 790: 5 IDQ11295 QLD Port Douglas QLD_PT254 -16.48681 145.4635 70.4 #> 791: 6 IDQ11295 QLD Port Douglas QLD_PT254 -16.48681 145.4635 70.4 #> start_time_local end_time_local utc_offset start_time_utc #> 1: 2020-11-22 05:00:00 2020-11-23 10:00 2020-11-21 19:00:00 #> 2: 2020-11-23 00:00:00 2020-11-24 10:00 2020-11-22 14:00:00 #> 3: 2020-11-24 00:00:00 2020-11-25 10:00 2020-11-23 14:00:00 #> 4: 2020-11-25 00:00:00 2020-11-26 10:00 2020-11-24 14:00:00 #> 5: 2020-11-26 00:00:00 2020-11-27 10:00 2020-11-25 14:00:00 #> --- #> 787: 2020-11-24 00:00:00 2020-11-25 10:00 2020-11-23 14:00:00 #> 788: 2020-11-25 00:00:00 2020-11-26 10:00 2020-11-24 14:00:00 #> 789: 2020-11-26 00:00:00 2020-11-27 10:00 2020-11-25 14:00:00 #> 790: 2020-11-27 00:00:00 2020-11-28 10:00 2020-11-26 14:00:00 #> 791: 2020-11-28 00:00:00 2020-11-29 10:00 2020-11-27 14:00:00 #> end_time_utc minimum_temperature maximum_temperature #> 1: 2020-11-22 14:00:00 NA 30 #> 2: 2020-11-23 14:00:00 19 32 #> 3: 2020-11-24 14:00:00 21 31 #> 4: 2020-11-25 14:00:00 20 27 #> 5: 2020-11-26 14:00:00 19 28 #> --- #> 787: 2020-11-24 14:00:00 24 31 #> 788: 2020-11-25 14:00:00 23 32 #> 789: 2020-11-26 14:00:00 24 31 #> 790: 2020-11-27 14:00:00 24 30 #> 791: 2020-11-28 14:00:00 23 30 #> lower_precipitation_limit upper_precipitation_limit #> 1: NA NA #> 2: NA NA #> 3: 3 15 #> 4: 0 10 #> 5: NA NA #> --- #> 787: NA NA #> 788: NA NA #> 789: 0 1 #> 790: 0 2 #> 791: 0 1 #> precis probability_of_precipitation #> 1: Mostly sunny. 0 #> 2: Sunny. 0 #> 3: Showers. Possible storm. 80 #> 4: Shower or two. 50 #> 5: Partly cloudy. 20 #> --- #> 787: Mostly sunny. 10 #> 788: Mostly sunny. 20 #> 789: Partly cloudy. 30 #> 790: Possible shower. 40 #> 791: Partly cloudy. 30
# }