Public Member Functions | Static Public Member Functions | Static Public Attributes

PARASOLFileFormat Class Reference

Inheritance diagram for PARASOLFileFormat:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 PARASOLFileFormat (const PARASOLProduct &product=UNDEFINED)

Static Public Member Functions

static const size_t get_size_of (PARASOLDataType code)
 access the memory size needed to read one variable of the given PARASOL data type
static const int get_level (const PARASOLProduct &product)
 return the level for a given product
static const int get_nb_grid_line (const PARASOLProduct &product)
 return the number of grid lines for the given product
static const int get_grid_factor (const PARASOLProduct &product)
 the product grid resolution relative to full resolution grid division factor
template<typename T >
static const T get_missing_value (const int level)
 defines the value that represents the missing values in PARASOL files, using their type. This value is set this way :
template<typename T >
static const T get_out_of_range_value (const int level)
 defines the value that represents the out of range values in PARASOL files, using their type.

Static Public Attributes

static const int full_res_grid_col_max = 6480
static const int full_res_grid_line_max = 3240

Detailed Description

that describes one PARASOL file format, wether leader or data


Member Function Documentation

const int PARASOLFileFormat::get_grid_factor ( const PARASOLProduct &  product  )  [static]

the product grid resolution relative to full resolution grid division factor

Parameters:
product the product
Returns:
1 if full resolution, 3 if medium

Referenced by get_nb_grid_line().

const int PARASOLFileFormat::get_level ( const PARASOLProduct &  product  )  [static]

return the level for a given product

Parameters:
product the product code
Returns:
the level or -1 if unknown

Referenced by PARASOLLeader::get_entry_block().

template<typename T >
const T PARASOLFileFormat::get_missing_value ( const int  level  )  [static]

defines the value that represents the missing values in PARASOL files, using their type. This value is set this way :

Returns:
the missing value used in the read file. Returns 1 if no missing values for this type
const int PARASOLFileFormat::get_nb_grid_line ( const PARASOLProduct &  product  )  [static]

return the number of grid lines for the given product

Returns:
the number of grid lines

References full_res_grid_line_max, and get_grid_factor().

template<typename T >
const T PARASOLFileFormat::get_out_of_range_value ( const int  level  )  [static]

defines the value that represents the out of range values in PARASOL files, using their type.

Returns:
the unsignificant value used in the read file. Returns 1 if no missing values for this type
const size_t PARASOLFileFormat::get_size_of ( PARASOLDataType  code  )  [static]

access the memory size needed to read one variable of the given PARASOL data type

Parameters:
code the data type
Returns:
the size needed in bytes

Referenced by PARASOLFileReader::fill_buffer_default(), PARASOLData::read_data(), and PARASOLFileReader::read_value().


Member Data Documentation

const int PARASOLFileFormat::full_res_grid_col_max = 6480 [static]

Number of PARASOL grid cells along the longitudes

const int PARASOLFileFormat::full_res_grid_line_max = 3240 [static]

Number of PARASOL grid cells along the latitudes

Referenced by get_nb_grid_line().


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