WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
WXP::UpaCalc Class Reference

This class does standard computations on upper air data. More...

#include "../include/UpaCalc.h"

Static Public Member Functions

static float calc (UpaLevel &level, const char *var)
 
static const char * getUnits (const char *var)
 
static int thickTop (VCoord &bottom, float thick, VCoord &top)
 
static VCoord thickTop (VCoord &bottom, float thick)
 
static int thickBottom (VCoord &top, float thick, VCoord &bottom)
 
static VCoord thickBottom (VCoord &top, float thick)
 
static int parcelMean (UpaData &data, VCoord &bottom, VCoord &top, ParcelMeanData &pmean)
 
static ParcelMeanData parcelMean (UpaData &data, VCoord &bottom, VCoord &top)
 
static int meanWind (UpaData &data, VCoord &bottom, VCoord &top, Wind &wind)
 
static Wind meanWind (UpaData &data, VCoord &bottom, VCoord &top)
 
static float meanValue (UpaData &data, const char *type, VCoord &bottom, VCoord &top)
 
static int ccl (UpaData &data, VCoord &bottom, float thick, CclData &ccl)
 
static CclData ccl (UpaData &data, VCoord &bottom, float thick)
 
static float thickness (UpaData &data, VCoord &bottom, VCoord &top)
 
static float lapseRate (UpaData &data, VCoord &bottom, VCoord &top)
 
static float thetaLapseRate (UpaData &data, VCoord &bottom, VCoord &top)
 
static float thetaPresLapseRate (UpaData &data, VCoord &bottom, VCoord &top)
 
static float staticStability (UpaData &data, VCoord &level)
 
static float precipWater (UpaData &data)
 
static float freezingLevel (UpaData &data)
 
static float wetBulbZero (UpaData &data)
 
static float maxTemperature (UpaData &data, VCoord &bottom, float thick)
 
static float energyCalc (UpaLevel &par1, UpaLevel &par2, UpaLevel &env1, UpaLevel &env2)
 
static float capStrength (UpaData &data, VCoord &bottom, float thick)
 
static float liftedIndex (UpaData &data, VCoord &bottom, float thick, VCoord &top)
 
static float totalTotals (UpaData &data)
 
static float verticalTotals (UpaData &data)
 
static float crossTotals (UpaData &data)
 
static float kIndex (UpaData &data)
 
static float sweatIndex (UpaData &data)
 
static float energyIndex (UpaData &data)
 
static int thetaEIndex (UpaData &data, ThetaEData &thetae)
 
static ThetaEData thetaEIndex (UpaData &data)
 
static int helicity (UpaData &data, VCoord &bottom, VCoord &top, Wind &storm, HelicityData &hel)
 
static HelicityData helicity (UpaData &data, VCoord &bottom, VCoord &top, Wind &storm)
 
static int shearLayer (UpaData &data, VCoord &bottom, VCoord &top, ShearData &shear)
 
static ShearData shearLayer (UpaData &data, VCoord &bottom, VCoord &top)
 
static int bulkRichardson (UpaData &data, VCoord &bottom, float cape, BrnData &brn)
 
static BrnData bulkRichardson (UpaData &data, VCoord &bottom, float cape)
 
static float energyHelicity (UpaData &data, VCoord &bottom, Wind &storm, float cape)
 

Detailed Description

This class does standard computations on upper air data.

Author
Dan Vietor

Member Function Documentation

◆ calc()

float UpaCalc::calc ( UpaLevel level,
const char *  var 
)
static

◆ getUnits()

const char * UpaCalc::getUnits ( const char *  var)
static

Gets the units for a computed variable

Parameters
varThe variable
Returns
Units string
See also
calc

References WXP::StrLib::iequal().

Referenced by WXP::ProfPlot::draw(), WXP::UpaXSectCont::draw(), and WXP::UpaXSectPlot::draw().

◆ meanValue()

float UpaCalc::meanValue ( UpaData data,
const char *  type,
VCoord bottom,
VCoord top 
)
static

Computes the mean value of a variable betwen two layers

Parameters
dataThe sounding data
typeThe type of parameter to compute
bottomThe bottom level
topThe top level
Returns
The computed value

References calc(), WXP::VCoord::equal(), WXP::VCoord::getVal(), WXP::Const::MISS, WXP::Wxp::outDebug(), WXP::UpaLevel::p, WXP::UpaLevel::t, and WXP::UpaLevel::td.

Referenced by WXP::UpaDataTool::compute().

◆ thickBottom() [1/2]

VCoord UpaCalc::thickBottom ( VCoord top,
float  thick 
)
static

Finds the value of the bottom of a layer given the top and thickness

Parameters
topThe top level
thickThe thickness
Returns
The computed bottom level

References thickBottom().

◆ thickBottom() [2/2]

int UpaCalc::thickBottom ( VCoord top,
float  thick,
VCoord bottom 
)
static

Finds the value of the bottom of a layer given the top and thickness

Parameters
topThe top level
thickThe thickness
Return values
bottomThe computed bottom level

References WXP::VCoord::getType(), WXP::VCoord::getVal(), WXP::VCoord::HEIGHT, WXP::VCoord::init(), WXP::Const::MISS, WXP::VCoord::POT, WXP::VCoord::PRES, WXP::VCoord::setType(), and WXP::VCoord::setVal().

Referenced by thickBottom().

◆ thickTop() [1/2]

VCoord UpaCalc::thickTop ( VCoord bottom,
float  thick 
)
static

Finds the value of the top of a layer given the bottom and thickness

Parameters
bottomThe bottom level
thickThe thickness
Returns
The computed top level

References thickTop().

◆ thickTop() [2/2]

int UpaCalc::thickTop ( VCoord bottom,
float  thick,
VCoord top 
)
static

Finds the value of the top of a layer given the bottom and thickness

Parameters
bottomThe bottom level
thickThe thickness
Return values
topThe computed top level

References WXP::VCoord::getType(), WXP::VCoord::getVal(), WXP::VCoord::HEIGHT, WXP::VCoord::init(), WXP::Const::MISS, WXP::VCoord::POT, WXP::VCoord::PRES, WXP::VCoord::setType(), and WXP::VCoord::setVal().

Referenced by WXP::ParcelParams::set(), and thickTop().


The documentation for this class was generated from the following files: