Returns the selected parameter (param) from a scan (scan).

get_param(x, param)

Arguments

x

A scan object.

param

Character. A scan parameter, such as DBZH or VRADH. See summary.param() for commonly available parameters.

Value

A param object.

See also

Examples

# 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