| 
    WXP C++ Library Version 6.74.9
    
   | 
 
This class defines vertical level parameters. More...
#include "../include/Level.h"
Public Member Functions | |
| Level () | |
| Level (int t1, float l1, int t2, float l2) | |
| Level (int t, float l1, float l2) | |
| Level (int t, int l) | |
| Level (const char *str) | |
| int | init () | 
| bool | isSet () | 
| int | decode (const char *str) | 
| int | toTypeCode () | 
| int | toLevelCode () | 
| int | set (int t1, float l1, int t2, float l2) | 
| int | set (int t, float l1, float l2) | 
| int | set (int t, float l) | 
| int | decode (int t, int l) | 
| int | set (const char *str) | 
| int | getType () | 
| int | getType1 () | 
| int | getType2 () | 
| float | getLev1 () | 
| float | getLev2 () | 
| int | getLower (VCoord &vc) | 
| int | getUpper (VCoord &vc) | 
| int | toString (String &str) | 
| int | toLabel (String &str) | 
| bool | valid () | 
| int | print () | 
| bool | isLayer () | 
| bool | isPres () | 
| bool | isHght () | 
| bool | isPot () | 
Static Public Member Functions | |
| static int | toTypeCode (int type1, int type2) | 
| static int | toTypeCode (int type1) | 
Static Public Attributes | |
| static const int | NONE = -9999 | 
| static const int | SND = 0 | 
| static const int | SFC = 1 | 
| static const int | CLD_BOT = 2 | 
| static const int | CLD_TOP = 3 | 
| static const int | FRZ = 4 | 
| static const int | LCL = 5 | 
| static const int | MWND = 6 | 
| static const int | TROP = 7 | 
| static const int | TOP = 8 | 
| static const int | SEABOT = 9 | 
| static const int | WHOLE = 10 | 
| static const int | CB_BASE = 11 | 
| static const int | CB_TOP = 12 | 
| static const int | ISOTHERM = 20 | 
| static const int | PR = 100 | 
| static const int | MSL = 101 | 
| static const int | HT = 102 | 
| static const int | HAG = 103 | 
| static const int | SIG = 104 | 
| static const int | HYB = 105 | 
| static const int | HBG = 106 | 
| static const int | POT = 107 | 
| static const int | PAG = 108 | 
| static const int | POT_VORT = 109 | 
| static const int | ETA = 111 | 
| static const int | MISC = 199 | 
| static const int | WHOLEL = 200 | 
| static const int | TOP_FRZ = 204 | 
| static const int | GSCLD_BOT = 206 | 
| static const int | GSCLD_TOP = 207 | 
| static const int | BLCLD_BOT = 209 | 
| static const int | BLCLD_TOP = 210 | 
| static const int | BLCLD_LYR = 211 | 
| static const int | LCLD_BOT = 212 | 
| static const int | LCLD_TOP = 213 | 
| static const int | LCLD_LYR = 214 | 
| static const int | CLD_CEIL = 215 | 
| static const int | PBL = 220 | 
| static const int | MCLD_BOT = 222 | 
| static const int | MCLD_TOP = 223 | 
| static const int | MCLD_LYR = 224 | 
| static const int | HCLD_BOT = 232 | 
| static const int | HCLD_TOP = 233 | 
| static const int | HCLD_LYR = 234 | 
| static const int | CONV_BOT = 242 | 
| static const int | CONV_TOP = 243 | 
| static const int | CONV_LYR = 244 | 
| static const int | WBZERO = 245 | 
| static const int | MAXEPOT = 246 | 
| static const int | EQUILIB = 247 | 
| static const int | SCCLD_BOT = 248 | 
| static const int | SCCLD_TOP = 249 | 
| static const int | DCCLD_BOT = 251 | 
| static const int | DCCLD_TOP = 252 | 
| static const int | SCLW_BOT = 253 | 
| static const int | SCLW_TOP = 254 | 
This class defines vertical level parameters.
| Level::Level | ( | ) | 
Constructor. Initializes data values
References init().
| Level::Level | ( | int | t1, | 
| float | l1, | ||
| int | t2, | ||
| float | l2 | ||
| ) | 
| Level::Level | ( | int | t, | 
| float | l1, | ||
| float | l2 | ||
| ) | 
| Level::Level | ( | int | t, | 
| int | l | ||
| ) | 
| Level::Level | ( | const char * | str | ) | 
| int Level::decode | ( | const char * | str | ) | 
Decodes level information from string
| str | String to decode none = no level miss = no level snd = whole sounding sfc = surface level frz = freezing level lcl = Lift Condensation Level sea = surface sl = mean sea level mwnd = max wind level trop = tropopause level whole = whole atmosphere wholel = wholel atmosphere layer top_frz = highest freezing level cb_base = cumulonimbus base cb_top = cumulonimbus top isotherm = isothermal level gscld_bot = grid scale layer cloud bottom gscld_top = grid scale layer cloud top blcld_bot = boundary layer cloud bottom blcld_top = boundary layer cloud top blcld_lyr = boundary layer cloud layer lcld_bot = low cloud bottom lcld_top = low cloud top lcld_lyr = low cloud layer cld_ceil = cloud ceiling mcld_bot = mid cloud bottom mcld_top = mid cloud top mcld_lyr = mid cloud layer hcld_bot = high cloud bottom hcld_top = high cloud top hcld_lyr = high cloud layer conv_bot = high cloud bottom conv_top = high cloud top conv_lyr = high cloud layer wbzero = wet bulb zero maxepot = max equiv. pot. temperature equilib = equilibrium level pbl = planetary boundary layer sccld_bot = shallow conv. cloud bottom sccld_top = shallow conv. cloud top dccld_bot = deep conv. cloud bottom dccld_top = deep conv. cloud top sclw_bot = supercool liquid water bottom sclw_top = supercool liquid water top p### = pressure level in mb p###-### = pressure layer h### = height level in meters h###-### = height layer a### = height above ground level in meters a###-### = height above ground layer k### = potential temperature level in K k###-### = potential temperature layer s### = sigma level s###-### = sigma layer  | 
where lll is:
 mb = pressure in mb
 mb_ag = pressure above ground in mb
 ft = height in feet
 m = height in meters
 ft_ag = height above ground in feet
 m_ag = height above ground in meters
 k = potential temperature
 sig = sigma level
 eta = eta level
 pv = potential vorticity
 hyb = hydrid level
References HAG, HT, WXP::StrLib::iequal(), init(), MISC, POT, PR, and SIG.
Referenced by set().
| int Level::decode | ( | int | t, | 
| int | l | ||
| ) | 
      
  | 
  inline | 
Get lower level value
      
  | 
  inline | 
Get upper level value
| int Level::getLower | ( | VCoord & | vc | ) | 
Gets the lower level
| vc | The level | 
References WXP::VCoord::FREEZE, FRZ, WXP::VCoord::HEIGHT, HT, WXP::VCoord::init(), LCL, WXP::VCoord::LCL, WXP::VCoord::MAXWND, MWND, POT, WXP::VCoord::POT, PR, WXP::VCoord::PRES, SFC, WXP::VCoord::SFC, TROP, and WXP::VCoord::TROP.
      
  | 
  inline | 
Get level type
      
  | 
  inline | 
Get lower level type
      
  | 
  inline | 
Get upper level type
| int Level::getUpper | ( | VCoord & | vc | ) | 
Gets the upper level
| vc | The level | 
References WXP::VCoord::FREEZE, FRZ, WXP::VCoord::HEIGHT, HT, WXP::VCoord::init(), LCL, WXP::VCoord::LCL, WXP::VCoord::MAXWND, MWND, POT, WXP::VCoord::POT, PR, WXP::VCoord::PRES, SFC, WXP::VCoord::SFC, TROP, and WXP::VCoord::TROP.
| int Level::init | ( | ) | 
| bool Level::isHght | ( | ) | 
| bool Level::isLayer | ( | ) | 
| bool Level::isPot | ( | ) | 
| bool Level::isPres | ( | ) | 
      
  | 
  inline | 
Is level set
References NONE.
| int Level::print | ( | ) | 
Prints data values to standard output
Referenced by WXP::VarSpec::printDetails().
| int Level::set | ( | const char * | str | ) | 
| int Level::set | ( | int | t, | 
| float | l | ||
| ) | 
| int Level::set | ( | int | t, | 
| float | lev1, | ||
| float | lev2 | ||
| ) | 
Sets the level values given a layer
| t | Type of layer | 
| l1 | Lower level | 
| l2 | Upper level | 
References WXP::Const::MISS.
| int Level::set | ( | int | t1, | 
| float | lev1, | ||
| int | t2, | ||
| float | lev2 | ||
| ) | 
Sets the level values given a layer
| t1 | Type of layer | 
| l1 | Lower level | 
| t2 | Type of layer | 
| l2 | Upper level | 
References WXP::Const::MISS, PR, and SIG.
Referenced by WXP::UpaRaw::compute(), WXP::UpaPlot::draw(), Level(), Level(), Level(), Level(), WXP::GribFile::readPDB(), WXP::GribFile::readPDS(), and WXP::Grid::setLevel().
| int Level::toLabel | ( | String & | str | ) | 
Outputs a label string from data values
| str | Output string | 
References WXP::String::append(), BLCLD_BOT, BLCLD_LYR, BLCLD_TOP, CB_BASE, CB_TOP, CLD_BOT, CLD_CEIL, CLD_TOP, WXP::String::clear(), CONV_BOT, CONV_LYR, CONV_TOP, DCCLD_BOT, DCCLD_TOP, EQUILIB, FRZ, GSCLD_BOT, GSCLD_TOP, HAG, HBG, HCLD_BOT, HCLD_LYR, HCLD_TOP, HT, HYB, ISOTHERM, LCL, LCLD_BOT, LCLD_LYR, LCLD_TOP, MAXEPOT, MCLD_BOT, MCLD_LYR, MCLD_TOP, MISC, WXP::Const::MISS, MSL, MWND, NONE, PAG, PBL, POT, POT_VORT, PR, SCCLD_BOT, SCCLD_TOP, SCLW_BOT, SCLW_TOP, SFC, SIG, SND, TOP, TOP_FRZ, TROP, WBZERO, WHOLE, and WHOLEL.
Referenced by WXP::VectPlot::drawLabels(), WXP::GribFile::makeInfo(), and WXP::VarSpec::toInfoLabel().
| int Level::toLevelCode | ( | ) | 
| int Level::toString | ( | String & | str | ) | 
Converts data values to a string
| str | Output string | 
References WXP::String::append(), BLCLD_BOT, BLCLD_LYR, BLCLD_TOP, CB_BASE, CB_TOP, CLD_BOT, CLD_CEIL, CLD_TOP, WXP::String::clear(), CONV_BOT, CONV_LYR, CONV_TOP, DCCLD_BOT, DCCLD_TOP, EQUILIB, FRZ, GSCLD_BOT, GSCLD_TOP, HAG, HBG, HCLD_BOT, HCLD_LYR, HCLD_TOP, HT, HYB, ISOTHERM, LCL, LCLD_BOT, LCLD_LYR, LCLD_TOP, MAXEPOT, MCLD_BOT, MCLD_LYR, MCLD_TOP, MISC, WXP::Const::MISS, MSL, MWND, NONE, PAG, PBL, POT, POT_VORT, PR, SCCLD_BOT, SCCLD_TOP, SCLW_BOT, SCLW_TOP, SFC, SIG, SND, TOP, TOP_FRZ, TROP, WBZERO, WHOLE, and WHOLEL.
Referenced by WXP::VarSpec::print().
| int Level::toTypeCode | ( | ) | 
Outputs a level type code
References toTypeCode().
Referenced by WXP::WmoIngest::process(), WXP::GribFile::readPDB(), toTypeCode(), and toTypeCode().
      
  | 
  static | 
      
  | 
  static | 
      
  | 
  inline | 
Is level valid
References WXP::Const::MISS.
      
  | 
  static | 
Boundary layer cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Boundary layer cloud layer
Referenced by toLabel(), and toString().
      
  | 
  static | 
Boundary layer cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Cumulnumbus base
Referenced by toLabel(), and toString().
      
  | 
  static | 
Cumulnumbus top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Cloud ceiling
Referenced by toLabel(), and toString().
      
  | 
  static | 
Cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Convective cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Convective cloud layer
Referenced by toLabel(), and toString().
      
  | 
  static | 
Convective cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Deep convect cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Deep convect cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Equilibrium level
Referenced by toLabel(), and toString().
      
  | 
  static | 
Eta level
Referenced by decode(), toLevelCode(), and toTypeCode().
      
  | 
  static | 
Freezing level
Referenced by getLower(), getUpper(), toLabel(), and toString().
      
  | 
  static | 
Grid scale layer cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Grid scale layer cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Height above ground level
Referenced by decode(), decode(), isHght(), WXP::GribFile::readPDB(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
Height below ground level
Referenced by decode(), WXP::GribFile::readPDB(), WXP::GribFile::readPDS(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
High cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
High cloud layer
Referenced by toLabel(), and toString().
      
  | 
  static | 
High cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Height level
Referenced by decode(), decode(), getLower(), getUpper(), isHght(), WXP::GribFile::readPDB(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
Hybrid level
Referenced by decode(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
Isothermal level
Referenced by toLabel(), and toString().
      
  | 
  static | 
LCL level
Referenced by WXP::SfcDataTool::compute(), getLower(), getUpper(), toLabel(), and toString().
      
  | 
  static | 
Low cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Low cloud layer
Referenced by toLabel(), and toString().
      
  | 
  static | 
Low cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Maximum equiv potential temp level
Referenced by toLabel(), and toString().
      
  | 
  static | 
Middle cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Middle cloud layer
Referenced by toLabel(), and toString().
      
  | 
  static | 
Middle cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Misc level
Referenced by decode(), toLabel(), and toString().
      
  | 
  static | 
Mean sea level
Referenced by decode(), WXP::GribFile::readPDB(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
Maximum wind level
Referenced by getLower(), getUpper(), toLabel(), and toString().
      
  | 
  static | 
No level
Referenced by init(), isLayer(), isSet(), WXP::GribFile::readPDS(), toLabel(), toLevelCode(), toString(), toTypeCode(), and toTypeCode().
      
  | 
  static | 
Pressure above ground level
Referenced by decode(), isPres(), WXP::GribFile::readPDB(), WXP::GribFile::readPDS(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
Planetary boundary layer
Referenced by toLabel(), and toString().
      
  | 
  static | 
Potential temperature level
Referenced by decode(), decode(), getLower(), getUpper(), isPot(), WXP::GribFile::readPDB(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
Potential vorticty level
Referenced by decode(), WXP::GribFile::readPDS(), toLabel(), toLevelCode(), and toString().
      
  | 
  static | 
Pressure level
Referenced by decode(), decode(), getLower(), getUpper(), isPres(), WXP::GribFile::readPDB(), WXP::GribFile::readPDS(), set(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
Shallow convect cloud bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Shallow convect cloud top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Supercool liquid water bottom
Referenced by toLabel(), and toString().
      
  | 
  static | 
Supercool liquid water top
Referenced by toLabel(), and toString().
      
  | 
  static | 
Sea bottom
      
  | 
  static | 
Surface
Referenced by WXP::SfcDataTool::compute(), getLower(), getUpper(), isPres(), WXP::GribFile::readPDS(), toLabel(), and toString().
      
  | 
  static | 
Sigma level
Referenced by decode(), decode(), WXP::GribFile::readPDB(), set(), toLabel(), toLevelCode(), toString(), and toTypeCode().
      
  | 
  static | 
Whole sounding
Referenced by toLabel(), and toString().
      
  | 
  static | 
Top of atmosphere
Referenced by toLabel(), and toString().
      
  | 
  static | 
Top freezing level
Referenced by toLabel(), and toString().
      
  | 
  static | 
Tropopause
Referenced by getLower(), getUpper(), toLabel(), and toString().
      
  | 
  static | 
Wet bulb zero
Referenced by toLabel(), and toString().
      
  | 
  static | 
Whole atmosphere
Referenced by toLabel(), and toString().
      
  | 
  static | 
Whole atmosphere layer
Referenced by toLabel(), toLevelCode(), and toString().