nexrad_to_odim | R Documentation |
Convert a NEXRAD polar volume file to an ODIM polar volume file
nexrad_to_odim(pvolfile_nexrad, pvolfile_odim, verbose = FALSE)
pvolfile_nexrad |
Character (vector). Either a path to a single radar polar volume
( |
pvolfile_odim |
Filename for the polar volume in ODIM HDF5 format to be generated. |
verbose |
Logical. When |
TRUE
on success
# download a NEXRAD file, save as KBGM_example
path = file.path(tempdir(), "KBGM_example")
download.file(paste0("https://noaa-nexrad-level2.s3.amazonaws.com/",
"2019/10/01/KBGM/KBGM20191001_000542_V06"), path, method="libcurl", mode="wb")
# convert to ODIM format
new_path = file.path(tempdir(), "KBGM_example.h5")
if (requireNamespace("vol2birdR", quietly = TRUE)) {
nexrad_to_odim(path, new_path)
# verify that we have generated a polar volume in ODIM HDF5 format
get_odim_object_type(new_path)
# clean up
file.remove(new_path)
}
file.remove(path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.