Get a quantity of a vertical profile (vp) or time series of vertical profiles (vpts)

get_quantity(x, quantity)

# S3 method for vp
get_quantity(x, quantity = "dens")

# S3 method for list
get_quantity(x, quantity = "dens")

# S3 method for vpts
get_quantity(x, quantity = "dens")

Arguments

x

A vp or vpts object.

quantity

A profile quantity, one of:

  • "height"

  • "u"

  • "v"

  • "w"

  • "ff"

  • "dd"

  • "sd_vvp"

  • "gap"

  • "dbz"

  • "eta"

  • "dens"

  • "DBZH"

  • "n"

  • "n_all"

  • "n_dbz"

  • "n_dbz_all"

Value

class vp: a named vector for the requested quantity.

class list: a list of a named vectors for the requested quantity.

class vpts: a (height x time) matrix of the requested quantity.

Details

This function grabs any of the data quantities stored in vp or vpts objects. See the documentation of the vertical profile vp class for a description of each of these quantities.

Examples

# load example profile data(example_vp) # extract the animal density ("dens") quantity: get_quantity(example_vp, "dens")
#> 0 200 400 600 800 1000 #> NA 85.0995178 110.4298782 91.7822418 34.5677528 20.5497875 #> 1200 1400 1600 1800 2000 2200 #> 22.9609985 19.7929668 19.7772617 17.3985100 11.9922190 7.2263165 #> 2400 2600 2800 3000 3200 3400 #> 3.0735207 0.0000000 0.7724188 0.0000000 0.0000000 0.0000000 #> 3600 3800 4000 4200 4400 4600 #> 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 0.0000000 #> 4800 #> 0.0000000