This class contains and handles NetCDF schemas.
As many applications have their own naming schemes, data types, units, etc we define here schemas that contain all this information so generic NetCDF methods can find here all the application specific information they need to successfully read and interpret the structure and data contained in a NetCDF file.
#include <libncpp.h>
Public Member Functions | |
NC_SCHEMA (const mio::Config &cfg, const std::string &schema) | |
void | initFromSchema (std::map< size_t, ncpp::nc_variable > &vars, std::map< size_t, ncpp::nc_dimension > &dimensions_map) |
const ncpp::var_attr | getSchemaAttributes (const std::string &var) const |
const ncpp::var_attr | getSchemaAttributes (const size_t ¶m) const |
const ncpp::nc_dimension | getSchemaDimension (const std::string &dimname) const |
Public Attributes | |
std::string | name |
name of the current schema More... | |
double | nodata |
nodata value as defined in the schema More... | |
int | dflt_type |
default data type as defined in the schema More... | |
bool | force_station_dimension |
force writing a station dimension even if only one station is present More... | |
NC_SCHEMA::NC_SCHEMA | ( | const mio::Config & | cfg, |
const std::string & | schema | ||
) |
const ncpp::var_attr NC_SCHEMA::getSchemaAttributes | ( | const size_t & | param | ) | const |
const ncpp::var_attr NC_SCHEMA::getSchemaAttributes | ( | const std::string & | var | ) | const |
const ncpp::nc_dimension NC_SCHEMA::getSchemaDimension | ( | const std::string & | dimname | ) | const |
void NC_SCHEMA::initFromSchema | ( | std::map< size_t, ncpp::nc_variable > & | vars, |
std::map< size_t, ncpp::nc_dimension > & | dimensions_map | ||
) |
int NC_SCHEMA::dflt_type |
default data type as defined in the schema
bool NC_SCHEMA::force_station_dimension |
force writing a station dimension even if only one station is present
std::string NC_SCHEMA::name |
name of the current schema
double NC_SCHEMA::nodata |
nodata value as defined in the schema