WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
UpaCalc.h
1#ifndef _WINC_UPACALC
2#define _WINC_UPACALC
3
4#include <WXP/BrnData.h>
5#include <WXP/CclData.h>
6#include <WXP/HelicityData.h>
7#include <WXP/ParcelMeanData.h>
8#include <WXP/ShearData.h>
9#include <WXP/ThetaEData.h>
10#include <WXP/UpaData.h>
11#include <WXP/UpaLevel.h>
12#include <WXP/VCoord.h>
13#include <WXP/Wind.h>
14
15namespace WXP {
16 class UpaCalc {
17 public:
18 static float calc( UpaLevel &level, const char *var );
19 static const char *getUnits( const char *var );
20 static int thickTop( VCoord &bottom, float thick, VCoord &top );
21 static VCoord thickTop( VCoord &bottom, float thick );
22 static int thickBottom( VCoord &top, float thick, VCoord &bottom );
23 static VCoord thickBottom( VCoord &top, float thick );
24 static int parcelMean( UpaData &data, VCoord &bottom,
25 VCoord &top, ParcelMeanData &pmean );
26 static ParcelMeanData parcelMean( UpaData &data, VCoord &bottom,
27 VCoord &top );
28 static int meanWind( UpaData &data, VCoord &bottom, VCoord &top, Wind &wind );
29 static Wind meanWind( UpaData &data, VCoord &bottom, VCoord &top );
30 static float meanValue( UpaData &data, const char *type,
31 VCoord &bottom, VCoord &top );
32 static int ccl( UpaData &data, VCoord &bottom, float thick, CclData &ccl );
33 static CclData ccl( UpaData &data, VCoord &bottom, float thick );
34 static float thickness( UpaData &data, VCoord &bottom, VCoord &top );
35 static float lapseRate( UpaData &data, VCoord &bottom, VCoord &top );
36 static float thetaLapseRate( UpaData &data, VCoord &bottom,
37 VCoord &top );
38 static float thetaPresLapseRate( UpaData &data, VCoord &bottom,
39 VCoord &top );
40 static float staticStability( UpaData &data, VCoord &level );
41 static float precipWater( UpaData &data );
42 static float freezingLevel( UpaData &data );
43 static float wetBulbZero( UpaData &data );
44 static float maxTemperature( UpaData &data, VCoord &bottom,
45 float thick );
46 static float energyCalc( UpaLevel &par1, UpaLevel &par2, UpaLevel &env1,
47 UpaLevel &env2 );
48 static float capStrength( UpaData &data, VCoord &bottom,
49 float thick );
50 static float liftedIndex( UpaData &data, VCoord &bottom,
51 float thick, VCoord &top );
52 static float totalTotals( UpaData &data );
53 static float verticalTotals( UpaData &data );
54 static float crossTotals( UpaData &data );
55 static float kIndex( UpaData &data );
56 static float sweatIndex( UpaData &data );
57 static float energyIndex( UpaData &data );
58 static int thetaEIndex( UpaData &data, ThetaEData &thetae );
59 static ThetaEData thetaEIndex( UpaData &data );
60 static int helicity( UpaData &data, VCoord &bottom,
61 VCoord &top, Wind &storm, HelicityData &hel );
62 static HelicityData helicity( UpaData &data, VCoord &bottom,
63 VCoord &top, Wind &storm );
64 static int shearLayer( UpaData &data, VCoord &bottom,
65 VCoord &top, ShearData &shear );
66 static ShearData shearLayer( UpaData &data, VCoord &bottom,
67 VCoord &top );
68 static int bulkRichardson( UpaData &data, VCoord &bottom,
69 float cape, BrnData &brn );
70 static BrnData bulkRichardson( UpaData &data, VCoord &bottom,
71 float cape );
72 static float energyHelicity( UpaData &data, VCoord &bottom,
73 Wind &storm, float cape );
74
75 };
76}
77#endif
78
This structure holds output data from CCL calculation.
Definition: CclData.h:5
This structure holds output data from helicity calculation.
Definition: HelicityData.h:5
This structure holds output data from thetaE calculation.
Definition: ThetaEData.h:5
This class does standard computations on upper air data.
Definition: UpaCalc.h:16
static float calc(UpaLevel &level, const char *var)
Definition: UpaCalc.cc:37
static int thickTop(VCoord &bottom, float thick, VCoord &top)
Definition: UpaCalc.cc:232
static int thickBottom(VCoord &top, float thick, VCoord &bottom)
Definition: UpaCalc.cc:271
static float meanValue(UpaData &data, const char *type, VCoord &bottom, VCoord &top)
Definition: UpaCalc.cc:141
static const char * getUnits(const char *var)
Definition: UpaCalc.cc:94
This class stores upper air data.
Definition: UpaData.h:13
This structure defines a vertical coordinate (type,val)
Definition: VCoord.h:5
This structure defines wind values (dir,spd)
Definition: Wind.h:7
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4
This struct holds output data from BRN calculation.
Definition: BrnData.h:5
This struct holds output data from parcel mean calculation.
Definition: ParcelMeanData.h:5
This struct holds output data from shear calculation.
Definition: ShearData.h:5
This struct contains data for a specific upper air level.
Definition: UpaLevel.h:5