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

This struct contains data for a specific upper air level. More...

#include "../include/UpaLevel.h"

Public Member Functions

int set (float rp, float rh, float rt, float rtd, float rdir, float rspd)
 
int setPres (float v)
 
float getPres ()
 
int setHght (float v)
 
float getHght ()
 
int setTemp (float v)
 
float getTemp ()
 
int setDewpt (float v)
 
float getDewpt ()
 
int setWDir (float v)
 
float getWDir ()
 
int setWSpd (float v)
 
float getWSpd ()
 
int setType (int v)
 
int getType ()
 
 UpaLevel ()
 
int init ()
 
int update (UpaLevel &level)
 
int print ()
 

Static Public Member Functions

static bool isMandatory (float p)
 
static int getMandatoryIndex (float p)
 

Public Attributes

int type
 
float p
 
float h
 
float t
 
float td
 
float dir
 
float spd
 

Static Public Attributes

static const int NONE = 0
 
static const int MAN = 1
 
static const int SIG = 2
 
static const int WND = 3
 
static const int SFC = 0x04
 
static const int TROP = 0x10
 
static const int MWND = 0x20
 
static const int LCL = 0x40
 

Detailed Description

This struct contains data for a specific upper air level.

Author
Dan Vietor

Constructor & Destructor Documentation

◆ UpaLevel()

UpaLevel::UpaLevel ( )

Constructor

References init().

Member Function Documentation

◆ getDewpt()

float WXP::UpaLevel::getDewpt ( )
inline

Gets the dewpoint

References td.

◆ getHght()

float WXP::UpaLevel::getHght ( )
inline

Gets the geopotential height

References h.

◆ getMandatoryIndex()

int UpaLevel::getMandatoryIndex ( float  p)
static

Returns the mandatory level index

Parameters
pThe pressure level
Returns
Index for mandatory data

References p.

Referenced by isMandatory().

◆ getPres()

float WXP::UpaLevel::getPres ( )
inline

Gets the pressure

References p.

◆ getTemp()

float WXP::UpaLevel::getTemp ( )
inline

Gets the temperature

References t.

◆ getType()

int WXP::UpaLevel::getType ( )
inline

Gets the level type

References type.

◆ getWDir()

float WXP::UpaLevel::getWDir ( )
inline

Gets the wind direction

References dir.

◆ getWSpd()

float WXP::UpaLevel::getWSpd ( )
inline

Gets the wind speed

References spd.

◆ init()

int UpaLevel::init ( )

Intializes the class

References dir, h, WXP::Const::MISS, p, spd, t, td, and type.

Referenced by WXP::ParcelParams::init(), and UpaLevel().

◆ isMandatory()

bool UpaLevel::isMandatory ( float  p)
static

Tests to see if level mandatory

Parameters
pThe pressure level

References getMandatoryIndex(), and p.

◆ print()

int UpaLevel::print ( )

Prints the object values

References dir, h, p, spd, t, and td.

◆ set()

int UpaLevel::set ( float  rp,
float  rh,
float  rt,
float  rtd,
float  rdir,
float  rspd 
)

Sets the object values

Parameters
rpThe pressure
rhThe height
rtThe temperature
rtdThe dewpoint
rdirThe wind direction
rspdThe wind speed

References dir, h, p, spd, t, and td.

◆ setDewpt()

int WXP::UpaLevel::setDewpt ( float  v)
inline

Sets the dewpoint

References td.

◆ setHght()

int WXP::UpaLevel::setHght ( float  v)
inline

Sets the geopotential height

References h.

◆ setPres()

int WXP::UpaLevel::setPres ( float  v)
inline

Sets the pressure

References p.

◆ setTemp()

int WXP::UpaLevel::setTemp ( float  v)
inline

Sets the temperature

References t.

◆ setType()

int WXP::UpaLevel::setType ( int  v)
inline

Sets the level type

See also
MAN, SIG, SFC, etc

References type.

◆ setWDir()

int WXP::UpaLevel::setWDir ( float  v)
inline

Sets the wind direction

References dir.

◆ setWSpd()

int WXP::UpaLevel::setWSpd ( float  v)
inline

Sets the wind speed

References spd.

◆ update()

int UpaLevel::update ( UpaLevel level)

Updates the data with valid parameters from another UpaLevel

Parameters
levelThe level with data to update

References dir, h, WXP::Const::MISS, p, spd, t, td, and type.

Member Data Documentation

◆ dir

float WXP::UpaLevel::dir

◆ h

float WXP::UpaLevel::h

◆ LCL

const int WXP::UpaLevel::LCL = 0x40
static

LCL level

◆ MAN

const int WXP::UpaLevel::MAN = 1
static

Mandatory level

◆ MWND

const int WXP::UpaLevel::MWND = 0x20
static

Max wind level

◆ NONE

const int WXP::UpaLevel::NONE = 0
static

No level type

◆ p

float WXP::UpaLevel::p

◆ SFC

const int WXP::UpaLevel::SFC = 0x04
static

Surface level

◆ SIG

const int WXP::UpaLevel::SIG = 2
static

Significant level

◆ spd

float WXP::UpaLevel::spd

◆ t

float WXP::UpaLevel::t

◆ td

float WXP::UpaLevel::td

◆ TROP

const int WXP::UpaLevel::TROP = 0x10
static

Tropopause level

◆ type

int WXP::UpaLevel::type

Type of level

Referenced by getType(), init(), setType(), and update().

◆ WND

const int WXP::UpaLevel::WND = 3
static

Wind level


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