Description Usage Arguments Details Value Author(s) References See Also Examples
Fetch BOM radar imagery from
ftp://ftp.bom.gov.au/anon/gen/radar/ and return a
SpatRaster
layer object. Files available are the most
recent radar snapshot which are updated approximately every 6 to 10 minutes.
Suggested to check file availability first by using
get_available_radar
.
1 | get_radar_imagery(product_id, path = NULL, download_only = FALSE)
|
product_id |
Character. BOM product ID to download and import as a magick object. Value is required. |
path |
Character. A character string with the name where the downloaded
file is saved. If not provided, the default value |
download_only |
Logical. Whether the radar image is loaded into the environment as a magick object or just downloaded. |
Valid BOM Radar Product IDs for radar imagery
can be obtained from get_available_radar
.
A magick object of the most recent radar image snapshot
published by the BOM. If download_only = TRUE
there will be
a NULL
return value with the download path printed in the console as a
message.
Dean Marchiori, deanmarchiori@gmail.com
Australian Bureau of Meteorology (BOM) radar images
http://www.bom.gov.au/australia/radar/
1 2 3 | # Fetch most recent radar image for Wollongong 256km radar
imagery <- get_radar_imagery(product_id = "IDR032")
imagery
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.