Select quantities by index from a ppi

# S3 method for ppi
[(x, i)

Arguments

x

An object of class param or scan.

i

Indices specifying elements to extract.

Examples

# make a ppi: my_ppi <- project_as_ppi(example_scan) # this ppi contains 5 quantities (VRADH DBZH ZDR RHOHV PHIDP): my_ppi
#> Plan position indicator (class ppi) #> #> quantities: VRADH DBZH ZDR RHOHV PHIDP #> dims: 200 x 200 pixels #>
# This ppi only contains the first quantity (VRADH): my_ppi[1]
#> Plan position indicator (class ppi) #> #> quantities: VRADH #> dims: 200 x 200 pixels #>
# This ppi contains the first three quantities (VRADH, DBZH, ZDR): my_ppi[1:3]
#> Plan position indicator (class ppi) #> #> quantities: VRADH DBZH ZDR #> dims: 200 x 200 pixels #>