
weatherOz for BOM
Jonathan Carroll, Dean Marchiori, Paul Melloy, Mark Padgham, Hugh Parsonage, Keith Pembleton and Adam H. Sparks
Source:vignettes/weatherOz_for_BOM.Rmd
weatherOz_for_BOM.RmdUsing {weatherOz} With BOM Data
Several functions are provided by {weatherOz} to retrieve Australian Bureau of Meteorology (BOM) data. A family of functions retrieve data files from BOM or parse local files from BOM and return data frames;
-
get_precis_forecast()andparse_precis_forecast(), which return the précis (short) forecast; -
get_ag_bulletin()andparse_ag_bulletin(), which return the agriculture bulletin (defunct as of version v2.0.0); -
get_coastal_forecast()andparse_coastal_forecast(), which return coastal waters forecasts for each state.
Using get_precis_forecast()
This function only takes one argument, state. The
state parameter allows the user to select the forecast for
just one state or a national forecast. States or territories are
specified using the official postal codes or full name with fuzzy
matching performed via agrep().
ACT - Australian Capital Territory
NSW - New South Wales
NT - Northern Territory
QLD - Queensland
SA - South Australia
TAS - Tasmania
VIC - Victoria
WA - Western Australia
AUS - Australia, returns national forecast including all states, NT and ACT.
Results
The function, get_precis_forecast(), will return a data
frame of the weather forecast for the daily forecast for selected towns.
See Appendix 1 for a full description of the fields and values.
Example 1: Getting a Forecast
Following is an example fetching the forecast for Queensland.
library(weatherOz)
(QLD_forecast <- get_precis_forecast(state = "QLD"))
#> ----------- Australian Bureau of Meteorology (BOM) Precis Forecast. -
#> The HTML version of Short Form (Precis) Forecast for
#> QLD can be found at:
#> <http://www.bom.gov.au/qld/forecasts/state.shtml>
#> Please note information at the page
#> <http://www.bom.gov.au/catalogue/data-feeds.shtml#precis>.
#> --------------------------------------------------------------------------------
#> index product_id state town aac lat lon elev
#> <fctr> <char> <char> <char> <char> <num> <num> <num>
#> 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
#> <POSc> <POSc> <fctr> <POSc>
#> 1: 2025-11-05 09:00:00 2025-11-06 10:00 2025-11-04 23:00:00
#> 2: 2025-11-06 00:00:00 2025-11-07 10:00 2025-11-05 14:00:00
#> 3: 2025-11-07 00:00:00 2025-11-08 10:00 2025-11-06 14:00:00
#> 4: 2025-11-08 00:00:00 2025-11-09 10:00 2025-11-07 14:00:00
#> 5: 2025-11-09 00:00:00 2025-11-10 10:00 2025-11-08 14:00:00
#> ---
#> 787: 2025-11-07 00:00:00 2025-11-08 10:00 2025-11-06 14:00:00
#> 788: 2025-11-08 00:00:00 2025-11-09 10:00 2025-11-07 14:00:00
#> 789: 2025-11-09 00:00:00 2025-11-10 10:00 2025-11-08 14:00:00
#> 790: 2025-11-10 00:00:00 2025-11-11 10:00 2025-11-09 14:00:00
#> 791: 2025-11-11 00:00:00 2025-11-12 10:00 2025-11-10 14:00:00
#> end_time_utc minimum_temperature maximum_temperature
#> <POSc> <num> <num>
#> 1: 2025-11-05 14:00:00 NA 30
#> 2: 2025-11-06 14:00:00 17 27
#> 3: 2025-11-07 14:00:00 17 28
#> 4: 2025-11-08 14:00:00 17 31
#> 5: 2025-11-09 14:00:00 21 29
#> ---
#> 787: 2025-11-07 14:00:00 24 32
#> 788: 2025-11-08 14:00:00 24 33
#> 789: 2025-11-09 14:00:00 23 33
#> 790: 2025-11-10 14:00:00 24 33
#> 791: 2025-11-11 14:00:00 24 33
#> lower_precipitation_limit upper_precipitation_limit precis
#> <num> <num> <char>
#> 1: NA NA Sunny.
#> 2: NA NA Partly cloudy.
#> 3: NA NA Mostly sunny.
#> 4: 0 1 Sunny.
#> 5: 0 15 Showers.
#> ---
#> 787: 0 7 Shower or two.
#> 788: 0 3 Shower or two.
#> 789: 0 1 Partly cloudy.
#> 790: 0 1 Partly cloudy.
#> 791: 0 1 Partly cloudy.
#> probability_of_precipitation
#> <num>
#> 1: 5
#> 2: 5
#> 3: 5
#> 4: 30
#> 5: 80
#> ---
#> 787: 60
#> 788: 50
#> 789: 30
#> 790: 30
#> 791: 30Using get_coastal_forecast()
This function only takes one argument, state. The
state parameter allows the user to select the forecast for
just one state or a national forecast. States or territories are
specified using the official postal codes or full name with fuzzy
matching performed via agrep()
ACT - Australian Capital Territory
NSW - New South Wales
NT - Northern Territory
QLD - Queensland
SA - South Australia
TAS - Tasmania
VIC - Victoria
WA - Western Australia
AUS - Australia, returns national forecast including all states, NT and ACT.
Results
The function, get_coastal_forecast(), will return a data
frame of the coastal waters forecast for marine zones in each state. See
Appendix 6 for a full description of the fields and values.
Example 2: Getting a Coastal Forecast
Following is an example fetching the forecast for Queensland.
library(weatherOz)
(QLD_coastal_forecast <- get_coastal_forecast(state = "QLD"))
#> ------- Australian Bureau of Meteorology (BOM) Coastal Waters Forecast. -------
#> Please note information at the foot of
#> <http://www.bom.gov.au/cgi-bin/wrap_fwo.pl?IDQ11290.html>,
#> the HTML version of Coastal Waters Forecast for
#> QLD.
#> Also see
#> <http://www.bom.gov.au/catalogue/observations/about-coastal-observations.shtml>.
#> --------------------------------------------------------------------------------
#> index product_id type state_code
#> <fctr> <char> <char> <char>
#> 1: <NA> IDQ11290 <NA> QLD
#> 2: <NA> IDQ11290 <NA> QLD
#> 3: <NA> IDQ11290 <NA> QLD
#> 4: <NA> IDQ11290 <NA> QLD
#> 5: 0 IDQ11290 <NA> QLD
#> ---
#> 45: 1 IDQ11290 <NA> QLD
#> 46: 2 IDQ11290 <NA> QLD
#> 47: 0 IDQ11290 <NA> QLD
#> 48: 1 IDQ11290 <NA> QLD
#> 49: 2 IDQ11290 <NA> QLD
#> dist_name pt_1_name
#> <char> <char>
#> 1: Queensland <NA>
#> 2: Queensland Gulf of Carpentaria <NA>
#> 3: North Queensland <NA>
#> 4: South Queensland <NA>
#> 5: South East Gulf of Carpentaria: QLD-NT Border to Cape Keerweer <NA>
#> ---
#> 45: Gold Coast Waters: Cape Moreton to Point Danger <NA>
#> 46: Gold Coast Waters: Cape Moreton to Point Danger <NA>
#> 47: Great Barrier Reef Offshore Waters <NA>
#> 48: Great Barrier Reef Offshore Waters <NA>
#> 49: Great Barrier Reef Offshore Waters <NA>
#> pt_2_name aac start_time_local end_time_local utc_offset
#> <char> <char> <POSc> <POSc> <fctr>
#> 1: <NA> QLD_FA001 2025-11-05 10:06:51 2025-11-05 10:06:51 10:00
#> 2: <NA> QLD_FA002 2025-11-05 05:00:00 2025-11-05 05:00:00 10:00
#> 3: <NA> QLD_FA003 2025-11-05 05:00:00 2025-11-05 05:00:00 10:00
#> 4: <NA> QLD_FA004 2025-11-05 05:00:00 2025-11-05 05:00:00 10:00
#> 5: <NA> QLD_MW001 2025-11-05 10:02:20 2025-11-05 10:02:20 10:00
#> ---
#> 45: <NA> QLD_MW014 2025-11-06 00:00:00 2025-11-06 00:00:00 10:00
#> 46: <NA> QLD_MW014 2025-11-07 00:00:00 2025-11-07 00:00:00 10:00
#> 47: <NA> QLD_MW015 2025-11-05 09:00:00 2025-11-05 09:00:00 10:00
#> 48: <NA> QLD_MW015 2025-11-06 00:00:00 2025-11-06 00:00:00 10:00
#> 49: <NA> QLD_MW015 2025-11-07 00:00:00 2025-11-07 00:00:00 10:00
#> start_time_utc end_time_utc
#> <POSc> <POSc>
#> 1: 2025-11-05 10:06:51 2025-11-05 10:06:51
#> 2: 2025-11-05 05:00:00 2025-11-05 05:00:00
#> 3: 2025-11-05 05:00:00 2025-11-05 05:00:00
#> 4: 2025-11-05 05:00:00 2025-11-05 05:00:00
#> 5: 2025-11-05 10:02:20 2025-11-05 10:02:20
#> ---
#> 45: 2025-11-06 00:00:00 2025-11-06 00:00:00
#> 46: 2025-11-07 00:00:00 2025-11-07 00:00:00
#> 47: 2025-11-05 09:00:00 2025-11-05 09:00:00
#> 48: 2025-11-06 00:00:00 2025-11-06 00:00:00
#> 49: 2025-11-07 00:00:00 2025-11-07 00:00:00
#> forecast_seas
#> <char>
#> 1: <NA>
#> 2: <NA>
#> 3: <NA>
#> 4: <NA>
#> 5: 1 to 2 metres, decreasing to 1 to 1.5 metres during the afternoon.
#> ---
#> 45: Below 1 metre.
#> 46: Below 1 metre.
#> 47: Below 1 metre.
#> 48: Below 1 metre, increasing to 1 to 1.5 metres during the afternoon.
#> 49: 1 to 1.5 metres, decreasing below 1 metre during the morning.
#> forecast_weather
#> <char>
#> 1: <NA>
#> 2: <NA>
#> 3: <NA>
#> 4: <NA>
#> 5: Mostly sunny. The chance of a thunderstorm.
#> ---
#> 45: Sunny.
#> 46: Mostly sunny.
#> 47: Partly cloudy. The chance of a thunderstorm.
#> 48: Mostly sunny.
#> 49: Mostly sunny.
#> forecast_winds
#> <char>
#> 1: <NA>
#> 2: <NA>
#> 3: <NA>
#> 4: <NA>
#> 5: East to southeasterly 15 to 20 knots turning south to southwesterly 10 to 15 knots during the afternoon and evening.
#> ---
#> 45: Southeasterly 10 to 15 knots turning easterly in the evening.
#> 46: Easterly about 10 knots tending northeasterly 10 to 15 knots during the afternoon then tending northerly during the evening.
#> 47: Variable about 10 knots becoming southeasterly 10 to 15 knots in the early afternoon then tending easterly in the late evening.
#> 48: East to southeasterly 15 to 20 knots.
#> 49: East to southeasterly 15 to 20 knots.
#> forecast_swell1 forecast_swell2 forecast_caution
#> <char> <char> <char>
#> 1: <NA> <NA> <NA>
#> 2: <NA> <NA> <NA>
#> 3: <NA> <NA> <NA>
#> 4: <NA> <NA> <NA>
#> 5: Below 0.5 metres. <NA> <NA>
#> ---
#> 45: Easterly below 1 metre. <NA> <NA>
#> 46: Easterly below 1 metre. <NA> <NA>
#> 47: East to northeasterly below 1 metre. <NA> <NA>
#> 48: East to southeasterly below 1 metre. <NA> <NA>
#> 49: Southeasterly around 1 metre. <NA> <NA>
#> marine_forecast tropical_system_location forecast_waves
#> <char> <lgcl> <lgcl>
#> 1: <NA> NA NA
#> 2: <NA> NA NA
#> 3: <NA> NA NA
#> 4: <NA> NA NA
#> 5: <NA> NA NA
#> ---
#> 45: <NA> NA NA
#> 46: <NA> NA NA
#> 47: <NA> NA NA
#> 48: <NA> NA NA
#> 49: <NA> NA NAWorking with BOM Image Files
A second family of functions retrieve information pertaining to satellite and radar imagery.
-
get_available_imagery(), which returns available satellite imagery; -
get_satelllite_imagery()which returns a [terra::SpatRaster] or [stars] object as requested; -
get_available_radar(), which returns available radar images; and -
get_radar_imagery()which returns radar images as a [magick] object.
Using {weatherOz} to retrieve BOM satellite imagery
{weatherOz} provides functionality to retrieve high-definition GeoTIFF satellite imagery provided by BOM through public FTP with the following types of imagery being available: i.) Infrared images, ii.) Visible images and iii.) Clouds/surface composite.
Working with Satellite Imagery
Valid BOM satellite Product IDs for GeoTIFF files include:
| Product ID | Description | Type | Delete time |
|---|---|---|---|
| IDE00420 | AHI cloud cover only 2km FD GEOS | Satellite | 24 |
| IDE00421 | AHI IR (Ch13) greyscale 2km FD GEOS | Satellite | 24 |
| IDE00422 | AHI VIS (Ch3) greyscale 2km FD GEOS | Satellite | 24 |
| IDE00423 | AHI IR (Ch13) Zehr 2km FD GEOS | Satellite | 24 |
| IDE00425 | AHI VIS (true colour) / IR (Ch13 greyscale) composite 1km FD GEOS | Satellite | 24 |
| IDE00426 | AHI VIS (true colour) / IR (Ch13 greyscale) composite 2km FD GEOS | Satellite | 24 |
| IDE00427 | AHI WV (Ch8) 2km FD GEOS | Satellite | 24 |
| IDE00430 | AHI cloud cover only 2km AUS equirect. | Satellite | 24 |
| IDE00431 | AHI IR (Ch13) greyscale 2km AUS equirect. | Satellite | 24 |
| IDE00432 | AHI VIS (Ch3) greyscale 2km AUS equirect. | Satellite | 24 |
| IDE00433 | AHI IR (Ch13) Zehr 2km AUS equirect. | Satellite | 24 |
| IDE00435 | AHI VIS (true colour) / IR (Ch13 greyscale) composite 1km AUS equirect. | Satellite | 24 |
| IDE00436 | AHI VIS (true colour) / IR (Ch13 greyscale) composite 2km AUS equirect. | Satellite | 24 |
| IDE00437 | AHI WV (Ch8) 2km AUS equirect. | Satellite | 24 |
| IDE00439 | AHI VIS (Ch3) greyscale 0.5km AUS equirect. | Satellite | 24 |
| Information gathered from Australian Bureau of Meteorology (BOM) | |||
Using get_available_imagery()
get_available_imagery() only takes one argument,
product_id, a BOM identifier for the imagery that you wish
to check for available imagery. Using this function will fetch a listing
of BOM GeoTIFF satellite imagery from ftp://ftp.bom.gov.au/anon/gen/gms/
to display which files are currently available for download. These files
are available at ten minute update frequency with a 24 hour delete time.
This function can be used see the most recent files available and then
specify in the _imagery() function. If no valid Product ID
is supplied, defaults to all GeoTIFF images currently available.
Example 3: Checking Available Imagery
library(weatherOz)
(avail <- get_available_imagery(product_id = "IDE00425"))
#> [1] "IDE00425.202511040210.tif" "IDE00425.202511040220.tif"
#> [3] "IDE00425.202511040230.tif" "IDE00425.202511040250.tif"
#> [5] "IDE00425.202511040300.tif" "IDE00425.202511040310.tif"
#> [7] "IDE00425.202511040320.tif" "IDE00425.202511040330.tif"
#> [9] "IDE00425.202511040340.tif" "IDE00425.202511040350.tif"
#> [11] "IDE00425.202511040400.tif" "IDE00425.202511040410.tif"
#> [13] "IDE00425.202511040420.tif" "IDE00425.202511040430.tif"
#> [15] "IDE00425.202511040440.tif" "IDE00425.202511040450.tif"
#> [17] "IDE00425.202511040500.tif" "IDE00425.202511040510.tif"
#> [19] "IDE00425.202511040520.tif" "IDE00425.202511040530.tif"
#> [21] "IDE00425.202511040540.tif" "IDE00425.202511040550.tif"
#> [23] "IDE00425.202511040600.tif" "IDE00425.202511040610.tif"
#> [25] "IDE00425.202511040620.tif" "IDE00425.202511040630.tif"
#> [27] "IDE00425.202511040640.tif" "IDE00425.202511040650.tif"
#> [29] "IDE00425.202511040700.tif" "IDE00425.202511040710.tif"
#> [31] "IDE00425.202511040720.tif" "IDE00425.202511040730.tif"
#> [33] "IDE00425.202511040740.tif" "IDE00425.202511040750.tif"
#> [35] "IDE00425.202511040800.tif" "IDE00425.202511040810.tif"
#> [37] "IDE00425.202511040820.tif" "IDE00425.202511040830.tif"
#> [39] "IDE00425.202511040840.tif" "IDE00425.202511040850.tif"
#> [41] "IDE00425.202511040900.tif" "IDE00425.202511040910.tif"
#> [43] "IDE00425.202511040920.tif" "IDE00425.202511040930.tif"
#> [45] "IDE00425.202511040940.tif" "IDE00425.202511040950.tif"
#> [47] "IDE00425.202511041000.tif" "IDE00425.202511041010.tif"
#> [49] "IDE00425.202511041020.tif" "IDE00425.202511041030.tif"
#> [51] "IDE00425.202511041040.tif" "IDE00425.202511041050.tif"
#> [53] "IDE00425.202511041100.tif" "IDE00425.202511041110.tif"
#> [55] "IDE00425.202511041120.tif" "IDE00425.202511041130.tif"
#> [57] "IDE00425.202511041140.tif" "IDE00425.202511041150.tif"
#> [59] "IDE00425.202511041200.tif" "IDE00425.202511041210.tif"
#> [61] "IDE00425.202511041220.tif" "IDE00425.202511041230.tif"
#> [63] "IDE00425.202511041240.tif" "IDE00425.202511041250.tif"
#> [65] "IDE00425.202511041300.tif" "IDE00425.202511041310.tif"
#> [67] "IDE00425.202511041320.tif" "IDE00425.202511041330.tif"
#> [69] "IDE00425.202511041340.tif" "IDE00425.202511041350.tif"
#> [71] "IDE00425.202511041400.tif" "IDE00425.202511041410.tif"
#> [73] "IDE00425.202511041420.tif" "IDE00425.202511041430.tif"
#> [75] "IDE00425.202511041450.tif" "IDE00425.202511041500.tif"
#> [77] "IDE00425.202511041510.tif" "IDE00425.202511041520.tif"
#> [79] "IDE00425.202511041530.tif" "IDE00425.202511041540.tif"
#> [81] "IDE00425.202511041550.tif" "IDE00425.202511041600.tif"
#> [83] "IDE00425.202511041610.tif" "IDE00425.202511041620.tif"
#> [85] "IDE00425.202511041630.tif" "IDE00425.202511041640.tif"
#> [87] "IDE00425.202511041650.tif" "IDE00425.202511041700.tif"
#> [89] "IDE00425.202511041710.tif" "IDE00425.202511041720.tif"
#> [91] "IDE00425.202511041730.tif" "IDE00425.202511041740.tif"
#> [93] "IDE00425.202511041750.tif" "IDE00425.202511041800.tif"
#> [95] "IDE00425.202511041810.tif" "IDE00425.202511041820.tif"
#> [97] "IDE00425.202511041830.tif" "IDE00425.202511041840.tif"
#> [99] "IDE00425.202511041850.tif" "IDE00425.202511041900.tif"
#> [101] "IDE00425.202511041910.tif" "IDE00425.202511041920.tif"
#> [103] "IDE00425.202511041930.tif" "IDE00425.202511041940.tif"
#> [105] "IDE00425.202511041950.tif" "IDE00425.202511042000.tif"
#> [107] "IDE00425.202511042010.tif" "IDE00425.202511042020.tif"
#> [109] "IDE00425.202511042030.tif" "IDE00425.202511042040.tif"
#> [111] "IDE00425.202511042050.tif" "IDE00425.202511042100.tif"
#> [113] "IDE00425.202511042110.tif" "IDE00425.202511042120.tif"
#> [115] "IDE00425.202511042130.tif" "IDE00425.202511042140.tif"
#> [117] "IDE00425.202511042150.tif" "IDE00425.202511042200.tif"
#> [119] "IDE00425.202511042210.tif" "IDE00425.202511042220.tif"
#> [121] "IDE00425.202511042230.tif" "IDE00425.202511042240.tif"
#> [123] "IDE00425.202511042250.tif" "IDE00425.202511042300.tif"
#> [125] "IDE00425.202511042310.tif" "IDE00425.202511042320.tif"
#> [127] "IDE00425.202511042330.tif" "IDE00425.202511042340.tif"
#> [129] "IDE00425.202511042350.tif" "IDE00425.202511050000.tif"
#> [131] "IDE00425.202511050010.tif" "IDE00425.202511050020.tif"
#> [133] "IDE00425.202511050030.tif" "IDE00425.202511050040.tif"
#> [135] "IDE00425.202511050050.tif" "IDE00425.202511050100.tif"
#> [137] "IDE00425.202511050110.tif" "IDE00425.202511050120.tif"
#> [139] "IDE00425.202511050130.tif" "IDE00425.202511050140.tif"
#> [141] "IDE00425.202511050150.tif" "IDE00425.202511050200.tif"
#> [143] "IDE00425.202511050210.tif" "IDE00425.202511050220.tif"
#> [145] "IDE00425.202511050230.tif"Using get_satellite_imagery()
get_satellite_imagery() fetches BOM satellite GeoTIFF
imagery, returning a SpatRaster object and takes two arguments. Files
are available at ten minute update frequency with a 24 hour delete time.
It is suggested to check file availability first by using
get_available_imagery(). The arguments are:
product_id, a character value of the BOM product ID to download. Alternatively, a vector of values fromget_available_imagery()may be used here. This argument is mandatory.scansa numeric value for the number of scans to download, starting with the most recent and progressing backwards, e.g.,1- the most recent single scan available ,6- the most recent hour available,12- the most recent 2 hours available, etc. Negating will return the oldest files first. Defaults to 1. This argument is optional.
Example 6: Fetching Satellite Imagery and Viewing It
library(weatherOz)
# Specify product ID and scans
i <- get_satellite_imagery(product_id = "IDE00425", scans = 1)terra::plot() has been re-exported to simplify
visualising these files while using {weatherOz}.
plot(i)Using {weatherOz} With BOM Radar Imagery
{weatherOz} provides functionality to retrieve the latest radar imagery provided by BOM through a public FTP server. These are the latest snapshots for each radar locations at various radar ranges e.g., 512km, 256km, 128km and 64km for some stations.
Using get_available_radar()
get_available_radar() fetches the available radar
imagery from the BOM FTP and returns a data frame for reference. This
data frame contains the product_id, which is required when using the
get_radar_imagery() function. The files available are the
latest .png files of BOM radar imagery which are typically
updated each 6-10 minutes. Only the most recent image is retrieved for
each radar location. There are usually several radar ranges available
for each radar location, such as 512km, 256km, 128km and possibly 64km.
The arguments are:
-
radar_idwhich is the BOM radar ID number; this defaults to ‘all’ which will return a data frame of all radar IDs in Australia.
Example 7: Getting Available Radar Imagery
library(weatherOz)
x <- get_available_radar()
head(x)
#> product_id LocationID range Name Longitude Latitude Radar_id
#> <char> <char> <char> <fctr> <num> <num> <int>
#> 1: IDR641 64 512km Adelaide 138.4689 -34.6169 64
#> 2: IDR642 64 256km Adelaide 138.4689 -34.6169 64
#> 3: IDR643 64 128km Adelaide 138.4689 -34.6169 64
#> 4: IDR644 64 64km Adelaide 138.4689 -34.6169 64
#> 5: IDR311 31 512km Albany 117.8163 -34.9418 31
#> 6: IDR312 31 256km Albany 117.8163 -34.9418 31
#> Full_Name IDRnn0name IDRnn1name State Type Group_ Status
#> <fctr> <fctr> <fctr> <fctr> <fctr> <fctr> <fctr>
#> 1: Adelaide (Buckland Park) BuckPk BucklandPk SA Doppler Yes Public
#> 2: Adelaide (Buckland Park) BuckPk BucklandPk SA Doppler Yes Public
#> 3: Adelaide (Buckland Park) BuckPk BucklandPk SA Doppler Yes Public
#> 4: Adelaide (Buckland Park) BuckPk BucklandPk SA Doppler Yes Public
#> 5: Albany Albany Albany WA Doppler Yes Public
#> 6: Albany Albany Albany WA Doppler Yes Public
#> Archive as.is
#> <fctr> <lgcl>
#> 1: BuckPk TRUE
#> 2: BuckPk TRUE
#> 3: BuckPk TRUE
#> 4: BuckPk TRUE
#> 5: Albany TRUE
#> 6: Albany TRUEUsing get_radar_imagery()
get_radar_imagery() fetches the latest BOM radar imagery
for a given product ID. The files available are the latest
.png files of BOM radar imagery, which are typically
updated each 6-10 minutes. Only the most recent image is retrieved for
each radar location. There are usually several radar ranges available
for each radar location, such as 512km, 256km, 128km and possibly 64km.
The only argument is:
-
product_idthe BOM product_id associated with each radar imagery file. These can be obtained from theget_available_radar()function. This value must be specified and the function will accept only one at a time.
Example 8: Fetching Radar Imagery
library(weatherOz)
y <- get_radar_imagery(product_id = "IDR032")
plot(y)References
Australian Bureau of Meteorology (BOM) Weather Data Services
Australian Bureau of Meteorology (BOM) FTP Public Products
Australian Bureau of Meteorology (BOM) Weather Data Services Observation of Rainfall
Australian Bureau of Meteorology (BOM) High-definition satellite images
Appendix 1 - Output From get_precis_forecast()
The functions, get_precis_forecast() or
`parse_precis_forecast(), will return a data frame of the 7 day short
forecast with the following fields:
- index
- Forecast index number, 0 = current day … 7 day
- product_id
- BOM Product ID from which the data are derived
- state
- State name (postal code abbreviation)
- town
- Town name for forecast location
- aac
- AMOC Area Code, e.g., WA_MW008, a unique identifier for each location
- lat
- Latitude of named location (decimal degrees)
- lon
- Longitude of named location (decimal degrees)
- elev
- Elevation of named location (metres)
- start_time_local
- Start of forecast date and time in local TZ
- end_time_local
- End of forecast date and time in local TZ
- UTC_offset
-
Hours offset from difference in hours and minutes from Coordinated
Universal Time (UTC) for
start_time_localandend_time_local - start_time_utc
- Start of forecast date and time in UTC
- end_time_utc
- End of forecast date and time in UTC
- maximum_temperature
- Maximum forecast temperature (degrees Celsius)
- minimum_temperature
- Minimum forecast temperature (degrees Celsius)
- lower_precipitation_limit
- Lower forecast precipitation limit (millimetres)
- upper_precipitation_limit
- Upper forecast precipitation limit (millimetres)
- precis
- Précis forecast (a short summary, less than 30 characters)
- probability_of_precipitation
- Probability of precipitation (percent)
Appendix 2 - Output From get_coastal_forecast()
The output of get_coastal_forecast() or
parse_coastal_forecast() will return a data frame with
coastal waters forecast values of each area within the given state with
the following fields:
- index
- Forecast index number. 0 = current day
- product_id
- BOM Product ID from which the data are derived
- type
- Forecast Region type e.g. Coastal
- state_code
- State name (postal code abbreviation)
- dist_name
- Name of forecast district
- pt_1_name
- Start of forecast district
- pt_2_name
- End of forecast district
- aac
- AMOC Area Code, e.g., WA_MW008, a unique identifier for each location
- start_time_local
- Start of forecast date and time in local TZ
- end_time_local
- End of forecast date and time in local TZ
- UTC_offset
-
Hours offset from difference in hours and minutes from Coordinated
Universal Time (UTC) for
start_time_localandend_time_local - start_time_utc
- Start of forecast date and time in UTC
- end_time_utc
- End of forecast date and time in UTC
- forecast_seas
- Forecast sea conditions
- forecast_weather
- Forecast weather summary
- forecast_winds
- Forecast winds summary
- forecast_swell1
- Forecast primary swell summary
- forecast_swell2
- Forecast seondary swell summary (not always provided)
- forecast_caution
- Forecast caution issued (not always provided)
- marine_forecast
- Additional marine forecast warning information (not always provided)