MI - Fimex
Public Member Functions | List of all members
MetNoFimex::NetCDF_CDMWriter Class Reference

#include <NetCDF_CDMWriter.h>

Inheritance diagram for MetNoFimex::NetCDF_CDMWriter:
MetNoFimex::CDMWriter

Public Member Functions

 NetCDF_CDMWriter (const boost::shared_ptr< CDMReader > cdmReader, const std::string &outputFile, std::string configFile="", int version=3)
 
virtual ~NetCDF_CDMWriter ()
 
const std::stringgetVariableName (const std::string &varName) const
 
const std::stringgetDimensionName (const std::string &dimName) const
 
const CDMAttributegetAttribute (const std::string &varName, const std::string &attName) const
 
- Public Member Functions inherited from MetNoFimex::CDMWriter
 CDMWriter (boost::shared_ptr< CDMReader > cdmReader, const std::string &outputFile)
 
virtual ~CDMWriter ()
 

Additional Inherited Members

- Protected Attributes inherited from MetNoFimex::CDMWriter
boost::shared_ptr< CDMReadercdmReader
 
const std::string outputFile
 

Constructor & Destructor Documentation

MetNoFimex::NetCDF_CDMWriter::NetCDF_CDMWriter ( const boost::shared_ptr< CDMReader cdmReader,
const std::string outputFile,
std::string  configFile = "",
int  version = 3 
)
Parameters
cdmReaderdataSource
outputFilefile-name to write to
configFilexml-configuration
versionnetcdf version, can be 3 or 4; 4 requires compilation against netcdf-4.0 or higher
virtual MetNoFimex::NetCDF_CDMWriter::~NetCDF_CDMWriter ( )
virtual

Member Function Documentation

const CDMAttribute& MetNoFimex::NetCDF_CDMWriter::getAttribute ( const std::string varName,
const std::string attName 
) const
Warning
only public for testing
Parameters
varNameoriginal variable name (before config: newname)
attNameoriginal attribute name (before config: newname)
Returns
an attribute contained in the writers attribute, possibly added by config
const std::string& MetNoFimex::NetCDF_CDMWriter::getDimensionName ( const std::string dimName) const
Warning
only public for testing
Returns
the new name of a dimension, eventually changed by the writers config
const std::string& MetNoFimex::NetCDF_CDMWriter::getVariableName ( const std::string varName) const
Warning
only public for testing
Returns
the new name of a variable, eventually changed by the writers config

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