# \donttest{
# 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)
# }
Run the code above in your browser using DataLab