TTindex: Total-Totals Instability Index

Description Usage Arguments Details Value Examples

Description

Total-Totals instability index (Celsius) from parameters (1D arrays) Ps (pressure, Pa) Ts (temperature, Kelvin) and ws (mixing ratio, kg/kg) obtained from a vertical sounding.

Usage

1
TTindex(Ps, Ts, ws, doLog = 0)

Arguments

Ps

A vector with pressure values in Pa.

Ts

A vector with temperature values in Kelvin.

ws

A vector with mixing ratio values in kg/kg.

doLog

Use logarithmic vertical interpolation between sounding levels. A default value is 0.

Details

If the needed levels (850 hPa or 500 hPa) are not exactly found in the input sounding, logarithmic/linear vertical interpolation is run depending on the value of doLog (TRUE or FALSE).

If the sounding does not enclose the needed levels and the interpolation fails, the function returns -99999999.

Value

This function returns the Total-Totals instability index (Celsius).

Examples

1
2
3
4
5
data(RadiosondeDavenport)
aPs<-RadiosondeDavenport[,1]*100
aTs<-C2K(RadiosondeDavenport[,3])
aws<-RadiosondeDavenport[,6]/1000
aTT<-TTindex(aPs,aTs,aws,0)

aiRthermo documentation built on May 1, 2019, 9:24 p.m.