#include <CDM.h>
Public Types | |
typedef std::map< std::string, CDMAttribute > | StrAttrMap |
typedef std::map< std::string, StrAttrMap > | StrStrAttrMap |
typedef std::map< std::string, CDMDimension > | StrDimMap |
typedef std::map< std::string, CDMVariable > | StrVarMap |
Public Member Functions | |
CDM () | |
virtual | ~CDM () |
void | addVariable (const CDMVariable &var) throw (CDMException) |
add variable to cdm | |
CDMVariable & | getVariable (const std::string &varName) throw (CDMException) |
get a reference of a variable | |
const CDMVariable & | getVariable (const std::string &varName) const throw (CDMException) |
get a reference of a variable | |
std::vector< std::string > | findVariables (const std::string &attrName, const std::string &attrValueRegExp) const |
search for variable with certain attribute-value | |
std::vector< std::string > | findVariables (const std::map< std::string, std::string > &findAttributes, const std::vector< std::string > &findDimensions) const |
search for variable with attribute-values and dimensions | |
bool | checkVariableAttribute (const std::string &varName, const std::string &attribute, const boost::regex &attrValue) const |
void | removeVariable (const std::string &variableName) |
remove a variable and corresponding attributes | |
void | addDimension (const CDMDimension &dim) throw (CDMException) |
add a dimension to cdm | |
CDMDimension & | getDimension (const std::string &dimName) throw (CDMException) |
get a reference to a dimension | |
const CDMDimension & | getDimension (const std::string &dimName) const throw (CDMException) |
const CDMDimension * | getUnlimitedDim () const |
retrieve the unlimited dimension | |
bool | hasUnlimitedDim (const CDMVariable &var) const |
test if a variable contains the unlimited dim | |
void | addAttribute (const std::string &varName, const CDMAttribute &attr) throw (CDMException) |
void | addOrReplaceAttribute (const std::string &varName, const CDMAttribute &attr) throw (CDMException) |
void | removeAttribute (const std::string &varName, const std::string &attrName) |
void | toXMLStream (std::ostream &os) const |
print a xml representation to the stream | |
const StrDimMap & | getDimensions () const |
get the dimension | |
const StrVarMap & | getVariables () const |
get the variables | |
const StrStrAttrMap & | getAttributes () const |
get the attributes | |
std::vector< CDMAttribute > | getAttributes (const std::string &varName) const |
get the attributes of an variable | |
CDMAttribute & | getAttribute (const std::string &varName, const std::string &attrName) throw (CDMException) |
get an attribute | |
const CDMAttribute & | getAttribute (const std::string &varName, const std::string &attrName) const throw (CDMException) |
get an const attribute | |
double | getFillValue (const std::string &varName) const |
void | generateProjectionCoordinates (const std::string &projectionVariable, const std::string &xDim, const std::string &yDim, const std::string &lonDim, const std::string &latDim) throw (CDMException) |
generate the projection coordinates (usually named "lat lon") | |
bool | getProjectionAndAxesUnits (std::string &projectionName, std::string &xAxis, std::string &yAxis, std::string &xAxisUnits, std::string &yAxisUnits) const throw (CDMException) |
extract the names of the projection-variable and the corresponding projection-axes | |
Static Public Member Functions | |
static const std::string & | globalAttributeNS () |
the namespace for global attributes |
This class implements the data-structure of the Common Data Model version 1 http://www.unidata.ucar.edu/software/netcdf-java/CDM.html
|
|
|
|
|
|
|
|
|
|
|
|
|
add an attribute to cdm
|
|
add a dimension to cdm
|
|
add or replace an attribute of the cdm
|
|
add variable to cdm
|
|
check if a variable contains a attributes with a matching string-value
|
|
search for variable with attribute-values and dimensions And AND search for attributes and dimensions.
|
|
search for variable with certain attribute-value
|
|
generate the projection coordinates (usually named "lat lon")
|
|
get an const attribute
|
|
get an attribute
|
|
get the attributes of an variable
|
|
get the attributes
|
|
|
|
get a reference to a dimension
|
|
get the dimension
|
|
get the fill value of an variable (_FillValue attribute)
|
|
extract the names of the projection-variable and the corresponding projection-axes
|
|
retrieve the unlimited dimension
|
|
get a reference of a variable this is a constant version of CDMVariable::getVariable}
|
|
get a reference of a variable
|
|
get the variables
|
|
the namespace for global attributes
|
|
test if a variable contains the unlimited dim
|
|
remove an attribute from the cdm
|
|
remove a variable and corresponding attributes
|
|
print a xml representation to the stream
|