potentialTemperatures: potentialTemperatures

potentialTemperaturesR Documentation

potentialTemperatures

Description

List of available potential temperature functions

Usage

potentialTemperatures(DF)  # use $name to get desired function, before (DF)

Arguments

DF

A data.frame containing PSXC, ATX, EWX, and optionally PLWCD. If the latter is not present, zero is used for WetEquivalentPotentialTemperature.

Format

An object of class list of length 6.

Details

Contains PotentialTemperature, EquivalentPotentialTemperature, BoltonEquivalentPotentialTemperature, RossbyEquivalentPotentialTemperature, VirtualPotentialTemperature, and WetEquivalentPotentialTemperature in a list that can be used with lapply(potentialTemperatures, function(f) f(DF)) with DF a data.frame containing PSXC, ATX, EWX, and optionally PLWCD (for WetEquivalentPotentialTemperature). To use individual functions: potentialTemperatures$EquivalentPotentialTemperature(DF)

Value

The function value: one of the listed potential temperatures. More concise output is obtained from str(lapply(potentialTemperatures, function (f) f(DF), digits.d = 5)

Author(s)

William Cooper

Examples

PTS <- lapply(potentialTemperatures, function(f) f(RAFdata[, c('PSXC', 'ATX', 'EWX')]))
ThetaV <- mean(potentialTemperatures$VirtualPotentialTemperature(RAFdata[, c('PSXC', 'ATX', 'EWX')]))

NCAR/Ranadu documentation built on Jan. 27, 2023, 1:09 a.m.