MeteoIODoc 2.11.0
var_attr Struct Reference

Detailed Description

This structure contains the metadata associated with a NetCDF variable that are schema specific (for example, CF-1)

#include <libncpp.h>

Public Member Functions

 VAR_ATTR ()
 
 VAR_ATTR (const int &i_type)
 
 VAR_ATTR (const std::string &i_name, const int &i_type)
 
 VAR_ATTR (const size_t &prm, const std::string &i_name, const double &hgt, const int &i_type)
 
 VAR_ATTR (const size_t &prm, const std::string &i_name, const std::string &std_name, const std::string &lg_name, const std::string &i_units, const double &hgt, const int &i_type)
 
bool isUndef () const
 
std::string toString () const
 

Public Attributes

std::string name
 variable name (it is possible to retrieve a variable by name) More...
 
std::string standard_name
 somehow human-friendly, standardized description of the name More...
 
std::string long_name
 non-standard but often present, longer description of the variable More...
 
std::string units
 unit string representation More...
 
double height
 sensor height (currently unused) More...
 
size_t param
 parameter index (from Dimensions or MeteoGrids::Parameters) More...
 
int type
 contain NetCDF External Data Types, -1 for "none" More...
 

Member Function Documentation

◆ isUndef()

bool var_attr::isUndef ( ) const
inline

◆ toString()

std::string var_attr::toString ( ) const
inline

◆ VAR_ATTR() [1/5]

var_attr::VAR_ATTR ( )
inline

◆ VAR_ATTR() [2/5]

var_attr::VAR_ATTR ( const int &  i_type)
inline

◆ VAR_ATTR() [3/5]

var_attr::VAR_ATTR ( const size_t &  prm,
const std::string &  i_name,
const double &  hgt,
const int &  i_type 
)
inline

◆ VAR_ATTR() [4/5]

var_attr::VAR_ATTR ( const size_t &  prm,
const std::string &  i_name,
const std::string &  std_name,
const std::string &  lg_name,
const std::string &  i_units,
const double &  hgt,
const int &  i_type 
)
inline

◆ VAR_ATTR() [5/5]

var_attr::VAR_ATTR ( const std::string &  i_name,
const int &  i_type 
)
inline

Member Data Documentation

◆ height

double var_attr::height

sensor height (currently unused)

◆ long_name

std::string var_attr::long_name

non-standard but often present, longer description of the variable

◆ name

std::string var_attr::name

variable name (it is possible to retrieve a variable by name)

◆ param

size_t var_attr::param

parameter index (from Dimensions or MeteoGrids::Parameters)

◆ standard_name

std::string var_attr::standard_name

somehow human-friendly, standardized description of the name

◆ type

int var_attr::type

contain NetCDF External Data Types, -1 for "none"

◆ units

std::string var_attr::units

unit string representation


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