Univeristy of Alabama in Huntsville

UAH LTG IDL Library

IDL Routines from Phillip Bitzer and UAH Lightning Group

summary     class     fields     routine details     file attributes

ats509/

ats_dry_adiabat.pro

Atmospheric Science, ATS509

includes main-level program

This returns an array of temperatures or pressures that correspond to a dry adiabat curve. If the user provides the temperatures, the pressures are returned and vice versa. If both pressure and temperature are given, the temperatures are quietly ignored. On error, a single NaN is returned.

Examples

The routine is relatively straightforward:

p0 = 1000. & t0 = 25. ;define the reference state testP = 1000. - FINDGEN(10)*10 testT = 10. - FINDGEN(5)*5
To get the temperatures along the dry adiabat for a set of pressures:
tDry = ats_dry_adiabat(t0, p0, Press=testP)
To get the pressures along the dry adiabat for a set of temperatures:
pDry = ats_dry_adiabat(t0, p0, Temp = testT)

Author information

Author

Phillip M. Bitzer, University of Alabama in Huntsville, pm.bitzer "AT" uah.edu

History

Modification History:

First written: Oct 12, 2012

Routines

top ats_dry_adiabat

result = ats_dry_adiabat(t0, p0 [, Pressure=numeric array] [, Temperature=numeric array])

The main routine that finds the pressures/temperatures corresponding to a dry adiabat.

Return value

An array of values corresponding to a dry adiabat. If a variable is passed in pressure, then the temperatures are returned. If a variable is passed in temperature, then the pressure is returned.

Parameters

t0 in required type=numeric scalar

The reference state temperature

p0 in required type=numeric scalar

The reference state pressure

Keywords

Pressure in optional type=numeric array

An array of pressures to be used to find the dry adiabat. If this contains a non-null variable, then an array of temperatures will be returned by the function.

Temperature in optional type=numeric array

An array of temperatures to be used to find the dry adiabat. If this contains a non-null variable, then an array of pressures will be returned by the function. If both this keyword and pressure contain non-null variables, then this keyword is quietly ignored.

File attributes

Modification date: Tue Mar 25 17:14:03 2014
Lines: 34
Docformat: rst rst