rsl2odim | R Documentation |
Convert a NEXRAD polar volume file to an ODIM polar volume file
rsl2odim(
file,
config,
pvolfile_out = "",
verbose = TRUE,
update_config = FALSE
)
file |
Character (vector). Either a path to a single radar polar volume
( |
config |
optional configuration object of class |
pvolfile_out |
Character. File name. When provided, writes a polar
volume ( |
verbose |
logical. When TRUE print profile output to console. |
update_config |
logical. When TRUE processing options that are determined based on
input file characteristics are returned and updated in the object specified by the |
No value returned, creates a file specified by pvolfile_out
argument.
vol2bird_config()
# define filenames
nexrad_file <- paste0(tempdir(),"/KBGM20221001_000243_V06")
odim_file <- paste0(tempdir(),"/KBGM20221001_000243_V06.h5")
# download NEXRAD file:
download.file("https://noaa-nexrad-level2.s3.amazonaws.com/2022/10/01/KBGM/KBGM20221001_000243_V06",
destfile = nexrad_file, mode="wb")
# convert NEXRAD file to ODIM hdf5 format:
rsl2odim(nexrad_file, pvolfile_out = odim_file)
# clean up
file.remove(nexrad_file)
file.remove(odim_file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.