sub-.ppi: Subset a plan position indicator ('ppi')

[.ppiR Documentation

Subset a plan position indicator (ppi)

Description

Select parameters (param) or derived quantities by index from a plan position indicator (ppi).

Usage

## S3 method for class 'ppi'
x[i]

Arguments

x

A ppi object.

i

Integer. Index/indices specifying which parameters (param) or derived quantities to extract.

Value

A ppi object containing a subset of parameters (param).

Examples

# Project a scan as a ppi
ppi <- project_as_ppi(example_scan)

# This ppi contains 5 parameters (DBZH VRADH ZDR RHOHV PHIDP)
ppi

# Subset ppi to one containing only the first parameter (DBZH)
ppi[1]

# Subset ppi to one containing the first three parameters (DBZH, VRADH, ZDR)
ppi[1:3]

# Subset ppi to one without the first 2 parameters (ZDR RHOHV PHIDP)
ppi[-1:-2]

adokter/birdRad documentation built on Nov. 5, 2024, 10:27 p.m.