MeteoIODoc 2.11.0
NC_SCHEMA Class Reference

Detailed Description

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 &param) 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...
 

Constructor & Destructor Documentation

◆ NC_SCHEMA()

NC_SCHEMA::NC_SCHEMA ( const mio::Config cfg,
const std::string &  schema 
)

Member Function Documentation

◆ getSchemaAttributes() [1/2]

const ncpp::var_attr NC_SCHEMA::getSchemaAttributes ( const size_t &  param) const

◆ getSchemaAttributes() [2/2]

const ncpp::var_attr NC_SCHEMA::getSchemaAttributes ( const std::string &  var) const

◆ getSchemaDimension()

const ncpp::nc_dimension NC_SCHEMA::getSchemaDimension ( const std::string &  dimname) const

◆ initFromSchema()

void NC_SCHEMA::initFromSchema ( std::map< size_t, ncpp::nc_variable > &  vars,
std::map< size_t, ncpp::nc_dimension > &  dimensions_map 
)

Member Data Documentation

◆ dflt_type

int NC_SCHEMA::dflt_type

default data type as defined in the schema

◆ force_station_dimension

bool NC_SCHEMA::force_station_dimension

force writing a station dimension even if only one station is present

◆ name

std::string NC_SCHEMA::name

name of the current schema

◆ nodata

double NC_SCHEMA::nodata

nodata value as defined in the schema


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