Returns the selected parameter (param
) from a scan (scan
).
get_param(x, param)
A scan
object.
Character. A scan parameter, such as DBZH
or VRADH
. See
summary.param()
for commonly available parameters.
A param
object.
# Get summary info for a scan (including parameters)
example_scan
#> Polar scan (class scan)
#>
#> parameters: DBZH VRADH RHOHV ZDR PHIDP
#> elevation angle: 0.5 deg
#> dims: 480 bins x 360 rays
# Extract the VRADH scan parameter
param <- get_param(example_scan, "VRADH")
# Get summary info for this parameter
param
#> Polar scan parameter (class param)
#>
#> quantity: VRADH
#> dims: 480 bins x 360 rays