Read a vertical profile (vp) or a list of vertical profiles (vp) from files

read_vpfiles(files)

Arguments

files

A character vector containing the file names of vertical profiles in ODIM HDF5 format generated by calculate_vp.

Value

A single vp object or a list of vp objects.

Examples

# locate example profile file:
vpfile <- system.file("extdata", "profile.h5", package = "bioRad")

# print the local path of the profile file:
vpfile
#> [1] "/private/var/folders/hq/tlbyscp93lq2js72t62dkbrh2z_dgv/T/Rtmp71m0AJ/temp_libpath162fb2a011716/bioRad/extdata/profile.h5"

# load the file:
read_vpfiles(vpfile)
#>                Vertical profile (class vp)
#> 
#>        radar:  seang 
#>       source:  WMO:02606,RAD:SE50,PLC:Ängelholm,NOD:seang,ORG:82,CTY:643,CMT:Swedish radar 
#> nominal time:  2015-10-18 18:00:00 
#> generated by:  vol2bird 0.3.17 

# load multiple files at once:
# \dontrun{
# read_vpfiles(c("my/path/profile1.h5", "my/path/profile2.h5", ...))
# }