Public Member Functions | Public Attributes | Friends

t_grib_var_desc Class Reference

List of all members.

Public Member Functions

 t_grib_var_desc (const string &name="", const string &long_name="", const int param_id=-1, const string &type_id="", const int sz_x=-1, const int sz_y=-1, const string &z_level_type="", const double fill_value=-DBL_MAX, const double scale=-DBL_MAX, const double offset=-DBL_MAX)
 constructor
 ~t_grib_var_desc ()
 destructor
const string to_string (void) const
 return content description as a string
void add_msg (const int i_msg, const int z_lvl)
 add the given message to the list of variable's messages
vector< int > get_sz_dims (void)
 access to the variable dimensions size, in [Z,Y,X] order for multi levels variables. [Y,X] for 2D

Public Attributes

string name
string long_name
int param_id
string type_id
int sz_x
int sz_y
string z_level_type
double fill_value
double scale
double offset
vector< int > v_msg
vector< int > v_lvl

Friends

std::ostream & operator<< (std::ostream &stream, const t_grib_var_desc &grib_var_desc)
 return content description as an output stream

Constructor & Destructor Documentation

t_grib_var_desc::t_grib_var_desc ( const string &  name = "",
const string &  long_name = "",
const int  param_id = -1,
const string &  type_id = "",
const int  sz_x = -1,
const int  sz_y = -1,
const string &  z_level_type = "",
const double  fill_value = -DBL_MAX,
const double  scale = -DBL_MAX,
const double  offset = -DBL_MAX 
) [inline]

constructor

Parameters:
name name of the variable
long_name extended name of the variable
param_id GRIB parameter ID
type_id type of the packed binary data
sz_x longitude dimension size
sz_y latitude dimension size
z_level_type type of vertical level. Can be an empty string, surface, isobaricInhPa or hybrid
fill_value the fill value
scale scaling factor
offset scaling add offset

Member Function Documentation

void t_grib_var_desc::add_msg ( const int  i_msg,
const int  z_lvl 
) [inline]

add the given message to the list of variable's messages

Parameters:
i_msg indice of the message
z_lvl vertical level value
vector<int> t_grib_var_desc::get_sz_dims ( void   )  [inline]

access to the variable dimensions size, in [Z,Y,X] order for multi levels variables. [Y,X] for 2D

Returns:
the dimensions size

Member Data Documentation

fill value

int name of the variable

name of the variable

scaling add offset

GRIB parameter ID

scaling factor

longitude dimension size

latitude dimension size

type of the packed binary data in a numpy-like format : uint16, float32...

vertical level of the messages, with the same indice than in v_msg

Referenced by ECMWFFileData::get_nb_pressure_levels(), and ECMWFFileData::get_pressure_levels().

indices of messages related to the variable. As many messages as vertical levels

type of z level


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