nexrad_to_odim: Convert a NEXRAD polar volume file to an ODIM polar volume...

Description Usage Arguments Value Examples

View source: R/nexrad_odim.R

Description

Convert a NEXRAD polar volume file to an ODIM polar volume file

Usage

1
2
3
4
5
6
nexrad_to_odim(
  pvolfile_nexrad,
  pvolfile_odim,
  verbose = FALSE,
  mount = dirname(pvolfile_nexrad)
)

Arguments

pvolfile_nexrad

Polar volume input file in RSL format.

pvolfile_odim

Filename for the polar volume in ODIM HDF5 format to be generated.

verbose

logical. When TRUE, pipe Docker stdout to R console. On Windows always TRUE.

mount

character. String with the mount point (a directory path) for the Docker container.

Value

TRUE on success

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
# download a NEXRAD file, save as KBGM_example
download.file(paste("https://noaa-nexrad-level2.s3.amazonaws.com/",
  "2019/10/01/KBGM/KBGM20191001_000542_V06",
  sep = ""
), "~/KBGM_example")

# convert to ODIM format
nexrad_to_odim("~/KBGM_example", "~/KBGM_example.h5")

# verify that we have generated a polar volume in ODIM HDF5 format
get_odim_object_type("~/KBGM_example.h5")

# clean up
file.remove("~/KBGM_example", "~/KBGM_example.h5")

## End(Not run)

bioRad documentation built on July 1, 2020, 10:18 p.m.