Main Page   Alphabetical List   Compound List   File List   Compound Members   File Members  

GRIB_LEVEL Class Reference

Interface to level description as stored in GRIB version 1 files. More...

#include <GRIB.h>

List of all members.

Public Methods

 GRIB_LEVEL ()
 Constructor.

void Decode (unsigned char *pds)
 Decode level from pds. Not to be used.

int Encode ()
 Encode level to single integer value. Not to be used.

bool is_LevelPressure ()
 Level is pressure?

bool is_LevelHeight ()
 Level is height ?

bool is_Surface ()
 Level is surface ?

bool is_MeanSeaLevel ()
 Level is MSL ?

void set_pressure (float plev)
 Set level as pressure level at specified pressure in mb.

void set_height (float hgt)
 Set level as height level at specified height in m.

void set_seadepth (float dpt)
 Set level as sea depth level at specified depth in m.

void set_isentropic (float temp)
 Set level as isentropic level at specified temperature in K.

void set_sigma (float sigma)
 Set level as sigma level at specified value.

void set_surface ()
 Set level as surface.

void set (t_enum_GRIB_LEVELS type, float lev1, float lev2)
 Set Level. Complete interface.


Public Attributes

t_enum_GRIB_LEVELS type
 level type

float lv1
 level value

float lv2
 level value (for layers)


Friends

std::ostream & operator<< (std::ostream &os, GRIB_LEVEL &l)
 Overloaded output to stream.


Detailed Description

Interface to level description as stored in GRIB version 1 files.

Definition at line 457 of file GRIB.h.


Constructor & Destructor Documentation

GRIB_LEVEL::GRIB_LEVEL  
 

Constructor.

Definition at line 526 of file GRIB.cpp.

References GRIB_LEVEL_UNKNOWN, lv1, lv2, and type.


Member Function Documentation

void GRIB_LEVEL::Decode unsigned char *    pds
 

Decode level from pds. Not to be used.

Parameters:
pds:  Encoded pds from message

Definition at line 673 of file GRIB.cpp.

References GRIB_LEVEL_ADIABATIC_CONDENSATION_LIFTED_FROM_SURFACE, GRIB_LEVEL_ALTITUDE_ABOVE_MSL_m, GRIB_LEVEL_CLOUD_BASE, GRIB_LEVEL_CLOUD_TOP, GRIB_LEVEL_DEPTH_BELOW_SEA_m, GRIB_LEVEL_DEPTH_BELOW_SURFACE_cm, GRIB_LEVEL_ENTIRE_ATMOSPHERE, GRIB_LEVEL_ENTIRE_OCEAN, GRIB_LEVEL_ETA, GRIB_LEVEL_HEIGHT_ABOVE_GROUND_HIGH_PRECISION_cm, GRIB_LEVEL_HEIGHT_ABOVE_GROUND_m, GRIB_LEVEL_HYBRID, GRIB_LEVEL_ISENTROPIC_K, GRIB_LEVEL_ISOBARIC_mb, GRIB_LEVEL_ISOBARIC_Pa, GRIB_LEVEL_ISOTHERM_0_DEG, GRIB_LEVEL_ISOTHERMAL_K, GRIB_LEVEL_LAYER_ALTITUDE_ABOVE_MSL_m, GRIB_LEVEL_LAYER_DEPTH_BELOW_SURFACE_cm, GRIB_LEVEL_LAYER_ETA, GRIB_LEVEL_LAYER_HEIGHT_ABOVE_GROUND_m, GRIB_LEVEL_LAYER_HYBRID, GRIB_LEVEL_LAYER_ISENTROPIC_K, GRIB_LEVEL_LAYER_ISOBARIC_HIGH_PRECISION_mb, GRIB_LEVEL_LAYER_ISOBARIC_mb, GRIB_LEVEL_LAYER_ISOBARIC_MIXED_PRECISION_mb, GRIB_LEVEL_LAYER_PRESSURE_DIFFERENCE_FROM_GROUND_mb, GRIB_LEVEL_LAYER_SIGMA, GRIB_LEVEL_LAYER_SIGMA_HIGH_PRECISION, GRIB_LEVEL_MAXIMUM_WIND, GRIB_LEVEL_MEAN_SEA_LEVEL, GRIB_LEVEL_NOMINAL_ATMOSPHERE_TOP, GRIB_LEVEL_POTENTIAL_VORTICITY_SURFACE_PV_UNITS, GRIB_LEVEL_PRESSURE_DIFFERENCE_FROM_GROUND_mb, GRIB_LEVEL_SIGMA, GRIB_LEVEL_SURFACE, GRIB_LEVEL_TROPOPAUSE, lv1, lv2, PDS_KPDS6, PDS_KPDS7, and type.

Referenced by GRIB_MESSAGE::Decode().

int GRIB_LEVEL::Encode  
 

Encode level to single integer value. Not to be used.

Definition at line 602 of file GRIB.cpp.

References GRIB_LEVEL_ADIABATIC_CONDENSATION_LIFTED_FROM_SURFACE, GRIB_LEVEL_ALTITUDE_ABOVE_MSL_m, GRIB_LEVEL_CLOUD_BASE, GRIB_LEVEL_CLOUD_TOP, GRIB_LEVEL_DEPTH_BELOW_SEA_m, GRIB_LEVEL_DEPTH_BELOW_SURFACE_cm, GRIB_LEVEL_ENTIRE_ATMOSPHERE, GRIB_LEVEL_ENTIRE_OCEAN, GRIB_LEVEL_ETA, GRIB_LEVEL_HEIGHT_ABOVE_GROUND_HIGH_PRECISION_cm, GRIB_LEVEL_HEIGHT_ABOVE_GROUND_m, GRIB_LEVEL_HYBRID, GRIB_LEVEL_ISENTROPIC_K, GRIB_LEVEL_ISOBARIC_mb, GRIB_LEVEL_ISOBARIC_Pa, GRIB_LEVEL_ISOTHERM_0_DEG, GRIB_LEVEL_ISOTHERMAL_K, GRIB_LEVEL_LAYER_ALTITUDE_ABOVE_MSL_m, GRIB_LEVEL_LAYER_DEPTH_BELOW_SURFACE_cm, GRIB_LEVEL_LAYER_ETA, GRIB_LEVEL_LAYER_HEIGHT_ABOVE_GROUND_m, GRIB_LEVEL_LAYER_HYBRID, GRIB_LEVEL_LAYER_ISENTROPIC_K, GRIB_LEVEL_LAYER_ISOBARIC_HIGH_PRECISION_mb, GRIB_LEVEL_LAYER_ISOBARIC_mb, GRIB_LEVEL_LAYER_ISOBARIC_MIXED_PRECISION_mb, GRIB_LEVEL_LAYER_PRESSURE_DIFFERENCE_FROM_GROUND_mb, GRIB_LEVEL_LAYER_SIGMA, GRIB_LEVEL_LAYER_SIGMA_HIGH_PRECISION, GRIB_LEVEL_MAXIMUM_WIND, GRIB_LEVEL_MEAN_SEA_LEVEL, GRIB_LEVEL_NOMINAL_ATMOSPHERE_TOP, GRIB_LEVEL_POTENTIAL_VORTICITY_SURFACE_PV_UNITS, GRIB_LEVEL_PRESSURE_DIFFERENCE_FROM_GROUND_mb, GRIB_LEVEL_SIGMA, GRIB_LEVEL_SURFACE, GRIB_LEVEL_TROPOPAUSE, lv1, and lv2.

Referenced by GRIB_MESSAGE::Encode().

bool GRIB_LEVEL::is_LevelHeight  
 

Level is height ?

Definition at line 941 of file GRIB.cpp.

References GRIB_LEVEL_HEIGHT_ABOVE_GROUND_m, and type.

bool GRIB_LEVEL::is_LevelPressure  
 

Level is pressure?

Definition at line 936 of file GRIB.cpp.

References GRIB_LEVEL_ISOBARIC_mb, and type.

bool GRIB_LEVEL::is_MeanSeaLevel  
 

Level is MSL ?

Definition at line 951 of file GRIB.cpp.

References GRIB_LEVEL_MEAN_SEA_LEVEL, and type.

bool GRIB_LEVEL::is_Surface  
 

Level is surface ?

Definition at line 946 of file GRIB.cpp.

References GRIB_LEVEL_SURFACE, and type.

void GRIB_LEVEL::set t_enum_GRIB_LEVELS    type,
float    lev1,
float    lev2
 

Set Level. Complete interface.

Parameters:
type:  type of level as in t_enum_GRIB_LEVELS
lev1:  Level or first level if layer
lev2:  Second level if layer

Definition at line 545 of file GRIB.cpp.

References GRIB_LEVEL_ADIABATIC_CONDENSATION_LIFTED_FROM_SURFACE, GRIB_LEVEL_ALTITUDE_ABOVE_MSL_m, GRIB_LEVEL_CLOUD_BASE, GRIB_LEVEL_CLOUD_TOP, GRIB_LEVEL_DEPTH_BELOW_SEA_m, GRIB_LEVEL_DEPTH_BELOW_SURFACE_cm, GRIB_LEVEL_ENTIRE_ATMOSPHERE, GRIB_LEVEL_ENTIRE_OCEAN, GRIB_LEVEL_ETA, GRIB_LEVEL_HEIGHT_ABOVE_GROUND_HIGH_PRECISION_cm, GRIB_LEVEL_HEIGHT_ABOVE_GROUND_m, GRIB_LEVEL_HYBRID, GRIB_LEVEL_ISENTROPIC_K, GRIB_LEVEL_ISOBARIC_mb, GRIB_LEVEL_ISOBARIC_Pa, GRIB_LEVEL_ISOTHERM_0_DEG, GRIB_LEVEL_ISOTHERMAL_K, GRIB_LEVEL_LAYER_ALTITUDE_ABOVE_MSL_m, GRIB_LEVEL_LAYER_DEPTH_BELOW_SURFACE_cm, GRIB_LEVEL_LAYER_ETA, GRIB_LEVEL_LAYER_HEIGHT_ABOVE_GROUND_m, GRIB_LEVEL_LAYER_HYBRID, GRIB_LEVEL_LAYER_ISENTROPIC_K, GRIB_LEVEL_LAYER_ISOBARIC_HIGH_PRECISION_mb, GRIB_LEVEL_LAYER_ISOBARIC_mb, GRIB_LEVEL_LAYER_ISOBARIC_MIXED_PRECISION_mb, GRIB_LEVEL_LAYER_PRESSURE_DIFFERENCE_FROM_GROUND_mb, GRIB_LEVEL_LAYER_SIGMA, GRIB_LEVEL_LAYER_SIGMA_HIGH_PRECISION, GRIB_LEVEL_MAXIMUM_WIND, GRIB_LEVEL_MEAN_SEA_LEVEL, GRIB_LEVEL_NOMINAL_ATMOSPHERE_TOP, GRIB_LEVEL_POTENTIAL_VORTICITY_SURFACE_PV_UNITS, GRIB_LEVEL_PRESSURE_DIFFERENCE_FROM_GROUND_mb, GRIB_LEVEL_SIGMA, GRIB_LEVEL_SURFACE, GRIB_LEVEL_TROPOPAUSE, lv1, lv2, and type.

void GRIB_LEVEL::set_height float    hgt
 

Set level as height level at specified height in m.

Parameters:
hgt:  Height above ground value in m

Definition at line 768 of file GRIB.cpp.

References GRIB_LEVEL_HEIGHT_ABOVE_GROUND_m, lv1, lv2, and type.

void GRIB_LEVEL::set_isentropic float    temp
 

Set level as isentropic level at specified temperature in K.

Parameters:
temp:  Isentropic temperature in K

Definition at line 784 of file GRIB.cpp.

References GRIB_LEVEL_ISENTROPIC_K, lv1, lv2, and type.

void GRIB_LEVEL::set_pressure float    plev
 

Set level as pressure level at specified pressure in mb.

Parameters:
plev:  Pressure value in mb

Definition at line 760 of file GRIB.cpp.

References GRIB_LEVEL_ISOBARIC_mb, lv1, lv2, and type.

void GRIB_LEVEL::set_seadepth float    dpt
 

Set level as sea depth level at specified depth in m.

Parameters:
dpt:  Sea level depth in m

Definition at line 776 of file GRIB.cpp.

References GRIB_LEVEL_DEPTH_BELOW_SEA_m, lv1, lv2, and type.

void GRIB_LEVEL::set_sigma float    sigma
 

Set level as sigma level at specified value.

Parameters:
sigma:  sigma value

Definition at line 792 of file GRIB.cpp.

References GRIB_LEVEL_SIGMA, lv1, lv2, and type.

void GRIB_LEVEL::set_surface  
 

Set level as surface.

Definition at line 800 of file GRIB.cpp.

References GRIB_LEVEL_SURFACE, lv1, lv2, and type.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &    os,
GRIB_LEVEL &    l
[friend]
 

Overloaded output to stream.

Definition at line 808 of file GRIB.cpp.


Member Data Documentation

float GRIB_LEVEL::lv1
 

level value

Definition at line 473 of file GRIB.h.

Referenced by Decode(), Encode(), GRIB_LEVEL(), set(), set_height(), set_isentropic(), GRIB_MESSAGE::set_level(), set_pressure(), set_seadepth(), set_sigma(), and set_surface().

float GRIB_LEVEL::lv2
 

level value (for layers)

Definition at line 475 of file GRIB.h.

Referenced by Decode(), Encode(), GRIB_LEVEL(), set(), set_height(), set_isentropic(), GRIB_MESSAGE::set_level(), set_pressure(), set_seadepth(), set_sigma(), and set_surface().

t_enum_GRIB_LEVELS GRIB_LEVEL::type
 

level type

Definition at line 470 of file GRIB.h.

Referenced by Decode(), GRIB_MESSAGE::Encode(), GRIB_LEVEL(), is_LevelHeight(), is_LevelPressure(), is_MeanSeaLevel(), is_Surface(), set(), set_height(), set_isentropic(), GRIB_MESSAGE::set_level(), set_pressure(), set_seadepth(), set_sigma(), and set_surface().


The documentation for this class was generated from the following files:
Generated on Fri Sep 10 09:52:08 2004 for GRIBLIB by doxygen1.2.18