31 #include <boost/regex_fwd.hpp> const CDMDimension * getUnlimitedDim() const
retrieve the unlimited dimension
void removeAttribute(const std::string &varName, const std::string &attrName)
std::string getHorizontalYAxis(std::string varName) const
get the y-(lat) axis of the variable
basic_string< char > string
const VarVec & getVariables() const
get the variables
void addOrReplaceAttribute(const std::string &varName, const CDMAttribute &attr)
const StrAttrVecMap & getAttributes() const
get the attributes
void addVariable(const CDMVariable &var)
add variable to cdm
std::string getUnits(const std::string &varName) const
double getFillValue(const std::string &varName) const
std::string getVerticalAxis(std::string varName) const
get the vertical axis of the variable
double getAddOffset(const std::string &varName) const
std::vector< CDMVariable > VarVec
Definition: CDM.h:60
basic_ostream< char > ostream
bool renameDimension(const std::string &oldName, const std::string &newName)
rename a dimension
bool hasDimension(const std::string &dimName) const
Definition: CDMException.h:36
Data structure of the Common Data Model.
Definition: CDM.h:54
CDM & operator=(const CDM &rhs)
CDMAttribute & getAttribute(const std::string &varName, const std::string &attrName)
get an attribute
bool testDimensionInUse(const std::string &name) const
test if a dimension is actively in use
CDMDimension & getDimension(const std::string &dimName)
get a reference to a dimension
Definition: C_CDMReader.h:35
std::string getHorizontalXAxis(std::string varName) const
get the x-(lon) axis of the variable
Definition: CDMAttribute.h:43
CDMVariable & getVariable(const std::string &varName)
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::map< std::string, AttrVec > StrAttrVecMap
Definition: CDM.h:58
void addAttribute(const std::string &varName, const CDMAttribute &attr)
void generateProjectionCoordinates(boost::shared_ptr< const Projection > projection, const std::string &xDim, const std::string &yDim, const std::string &lonDim, const std::string &latDim)
generate the projection coordinates (usually named "lat lon")
bool getLatitudeLongitude(std::string varName, std::string &latitude, std::string &longitude) const
detect the latitude and longitude coordinates of the variable
std::vector< CDMDimension > DimVec
Definition: CDM.h:59
Definition: CDMDimension.h:37
bool hasVariable(const std::string &varName) const
test if variable exists
boost::shared_ptr< const Projection > getProjectionOf(std::string varName) const
get the projection of a variable
MIFI_DEPRECATED(bool getProjectionAndAxesUnits(std::string &projectionName, std::string &xAxis, std::string &yAxis, std::string &xAxisUnits, std::string &yAxisUnits) const throw(CDMException))
generate the projection coordinates (usually named "lat lon")
void removeVariable(const std::string &variableName)
remove a variable and corresponding attributes
bool renameVariable(const std::string &oldName, const std::string &newName)
rename a variable
void toXMLStream(std::ostream &os) const
print a xml representation to the stream
bool checkVariableAttribute(const std::string &varName, const std::string &attribute, const boost::regex &attrValue) const
static const std::string & globalAttributeNS()
the namespace for global attributes
Definition: CDM.h:225
bool removeDimension(const std::string &name)
remove a dimension
const DimVec & getDimensions() const
get the dimension
double getValidMin(const std::string &varName) const
std::vector< CDMAttribute > AttrVec
Definition: CDM.h:57
void addDimension(const CDMDimension &dim)
add a dimension to cdm
Definition: CDMVariable.h:41
bool hasUnlimitedDim(const CDMVariable &var) const
test if a variable contains the unlimited dim
std::string getTimeAxis(std::string varName) const
get the time axis of the variable
double getValidMax(const std::string &varName) const
double getScaleFactor(const std::string &varName) const