NetCDF-C++  4.3.1-developer
netCDF::NcVar Class Reference

Class represents a netCDF variable. More...

#include "ncVar.h"

Public Types

enum  ChecksumMode { nc_NOCHECKSUM = NC_NOCHECKSUM, nc_FLETCHER32 = NC_FLETCHER32 }
 Used for checksum specification (see NcVar::setChecksum, NcVar::getChecksum). More...
 
enum  ChunkMode { nc_CHUNKED = NC_CHUNKED, nc_CONTIGUOUS = NC_CONTIGUOUS }
 Used for chunking specifications (see NcVar::setChunking, NcVar::getChunkingParameters). More...
 
enum  EndianMode { nc_ENDIAN_NATIVE = NC_ENDIAN_NATIVE, nc_ENDIAN_LITTLE = NC_ENDIAN_LITTLE, nc_ENDIAN_BIG = NC_ENDIAN_BIG }
 Used to specifying the endianess of the data, (see NcVar::setEndianness, NcVar::getEndianness). More...
 

Public Member Functions

 NcVar ()
 Constructor generates a null object. More...
 
 NcVar (const NcGroup &grp, const int &varId)
 Constructor for a variable . More...
 
 NcVar (const NcVar &ncVar)
 The copy constructor. More...
 
 ~NcVar ()
 destructor More...
 
NcVarAtt getAtt (const std::string &name) const
 Gets attribute by name. More...
 
int getAttCount () const
 Gets the number of attributes. More...
 
std::map< std::string, NcVarAttgetAtts () const
 Gets the set of attributes. More...
 
ChecksumMode getChecksum () const
 Gets the checksum parameters of the variable. More...
 
void getChunkingParameters (ChunkMode &chunkMode, std::vector< size_t > &chunkSizes) const
 Gets the chunking parameters. More...
 
void getCompressionParameters (bool &shuffleFilterEnabled, bool &deflateFilterEnabled, int &deflateLevel) const
 Gets the compression parameters. More...
 
NcDim getDim (int i) const
 Gets the i'th NcDim object. More...
 
int getDimCount () const
 The the number of dimensions. More...
 
std::vector< NcDimgetDims () const
 Gets the set of NcDim objects. More...
 
EndianMode getEndianness () const
 Gets the endianness of the variable. More...
 
void getFillModeParameters (bool &fillMode, void *fillValue=NULL) const
 This is an overloaded member function, provided for convenience. More...
 
template<class T >
void getFillModeParameters (bool &fillMode, T &fillValue) const
 Gets the fill parameters. More...
 
int getId () const
 Get the variable id. More...
 
std::string getName () const
 Name of this NcVar object. More...
 
NcGroup getParentGroup () const
 Gets parent group. More...
 
NcType getType () const
 Returns the variable type. More...
 
void getVar (void *dataValues) const
 This is an overloaded member function, provided for convenience. More...
 
void getVar (char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (long long *dataValues) const
 Reads the entire data from an netCDF variable. More...
 
void getVar (const std::vector< size_t > &index, void *datumValue) const
 This is an overloaded member function, provided for convenience. More...
 
void getVar (const std::vector< size_t > &index, char **datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, char *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, unsigned char *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, signed char *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, short *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, int *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, long *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, float *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, double *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, unsigned short *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, unsigned int *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, unsigned long long *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &index, long long *datumValue) const
 Reads a single datum value from a variable of an open netCDF dataset. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, void *dataValues) const
 This is an overloaded member function, provided for convenience. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, long long *dataValues) const
 Reads an array of values from a netCDF variable of an open netCDF dataset. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, void *dataValues) const
 This is an overloaded member function, provided for convenience. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, long long *dataValues) const
 Reads a subsampled (strided) array section of values from a netCDF variable. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, void *dataValues) const
 This is an overloaded member function, provided for convenience. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void getVar (const std::vector< size_t > &start, const std::vector< size_t > &count, const std::vector< ptrdiff_t > &stride, const std::vector< ptrdiff_t > &imap, long long *dataValues) const
 Reads a mapped array section of values from a netCDF variable. More...
 
bool isNull () const
 Returns true if this object variable is not defined. More...
 
bool operator!= (const NcVar &rhs) const
 != operator More...
 
NcVaroperator= (const NcVar &rhs)
 assignment operator More...
 
bool operator== (const NcVar &rhs) const
 equivalence operator More...
 
NcVarAtt putAtt (const std::string &name, size_t len, const char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const std::string &dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, short datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, int datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, long datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, float datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, double datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, unsigned short datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, unsigned int datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, unsigned long long datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, long long datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
NcVarAtt putAtt (const std::string &name, const NcType &type, size_t len, const void *dataValues) const
 Creates a new variable attribute or if already exisiting replaces it. More...
 
void putVar (const void *dataValues) const
 This is an overloaded member function, provided for convenience. More...
 
void putVar (const char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const long long *dataValues) const
 Writes the entire data into the netCDF variable. More...
 
void putVar (const std::vector< size_t > &index, const void *datumValue) const
 This is an overloaded member function, provided for convenience. More...
 
void putVar (const std::vector< size_t > &index, const char **datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const std::string &datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const unsigned char *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const signed char *datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const short datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const int datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const long datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const float datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const double datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const unsigned short datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const unsigned int datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const unsigned long long datumValue) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &index, const long long datumValue) const
 Writes a single datum into the netCDF variable. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const void *dataValues) const
 This is an overloaded member function, provided for convenience. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const long long *dataValues) const
 Writes an array of values into the netCDF variable. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const void *dataValues) const
 This is an overloaded member function, provided for convenience. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const long long *dataValues) const
 Writes an array of values into the netCDF variable. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const void *dataValues) const
 This is an overloaded member function, provided for convenience. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const char **dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const unsigned char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const signed char *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const float *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const double *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const unsigned short *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const unsigned int *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const unsigned long long *dataValues) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void putVar (const std::vector< size_t > &startp, const std::vector< size_t > &countp, const std::vector< ptrdiff_t > &stridep, const std::vector< ptrdiff_t > &imapp, const long long *dataValues) const
 Writes a mapped array section of values into the netCDF variable. More...
 
void rename (const std::string &newname) const
 Rename the variable. More...
 
void setChecksum (ChecksumMode checksumMode) const
 Sets the checksum parameters of a variable. More...
 
void setChunking (ChunkMode chunkMode, std::vector< size_t > &chunksizes) const
 Sets chunking parameters. More...
 
void setCompression (bool enableShuffleFilter, bool enableDeflateFilter, int deflateLevel) const
 Sets the compression parameters. More...
 
void setEndianness (EndianMode endianMode) const
 Sets the endianness of the variable. More...
 
void setFill (bool fillMode, void *fillValue=NULL) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 
void setFill (bool fillMode, const void *fillValue=NULL) const
 This is an overloaded member function, provided for convenience. More...
 
template<class T >
void setFill (bool fillMode, T fillValue) const
 Sets the fill parameters. More...
 

Friends

bool operator< (const NcVar &lhs, const NcVar &rhs)
 comparator operator More...
 
bool operator> (const NcVar &lhs, const NcVar &rhs)
 comparator operator More...
 

Detailed Description

Class represents a netCDF variable.

Definition at line 33 of file ncVar.h.

Member Enumeration Documentation

Used for checksum specification (see NcVar::setChecksum, NcVar::getChecksum).

Enumerator
nc_NOCHECKSUM 

No checksum (the default).

nc_FLETCHER32 

Selects the Fletcher32 checksum filter.

Definition at line 62 of file ncVar.h.

Used for chunking specifications (see NcVar::setChunking, NcVar::getChunkingParameters).

Enumerator
nc_CHUNKED 

Chunked storage is used for this variable.

nc_CONTIGUOUS 

Contiguous storage is used for this variable.

Variables with one or more unlimited dimensions cannot use contiguous storage. If contiguous storage is turned on, the chunkSizes parameter is ignored.

Definition at line 38 of file ncVar.h.

Used to specifying the endianess of the data, (see NcVar::setEndianness, NcVar::getEndianness).

By default this is NC_ENDIAN_NATIVE.

Enumerator
nc_ENDIAN_NATIVE 

Native endian.

nc_ENDIAN_LITTLE 

Little endian.

nc_ENDIAN_BIG 

Big endian.

Definition at line 54 of file ncVar.h.

Constructor & Destructor Documentation

netCDF::NcVar::~NcVar ( )
inline

destructor

Definition at line 69 of file ncVar.h.

NcVar::NcVar ( )

Constructor generates a null object.

Definition at line 65 of file ncVar.cpp.

NcVar::NcVar ( const NcGroup grp,
const int &  varId 
)

Constructor for a variable .

The variable must already exist in the netCDF file. New netCDF variables can be added using NcGroup::addNcVar();

Parameters
grpParent NcGroup object.
varIdId of the is NcVar object.

Definition at line 71 of file ncVar.cpp.

NcVar::NcVar ( const NcVar ncVar)

The copy constructor.

Definition at line 38 of file ncVar.cpp.

Member Function Documentation

NcVarAtt NcVar::getAtt ( const std::string &  name) const

Gets attribute by name.

Definition at line 211 of file ncVar.cpp.

int NcVar::getAttCount ( ) const

Gets the number of attributes.

Definition at line 187 of file ncVar.cpp.

map< string, NcVarAtt > NcVar::getAtts ( ) const

Gets the set of attributes.

Definition at line 196 of file ncVar.cpp.

NcVar::ChecksumMode NcVar::getChecksum ( ) const

Gets the checksum parameters of the variable.

Returns
ChecksumMode Enumeration type. Allowable parameters are: "nc_NOCHECKSUM", "nc_FLETCHER32".

Definition at line 667 of file ncVar.cpp.

void NcVar::getChunkingParameters ( ChunkMode chunkMode,
std::vector< size_t > &  chunkSizes 
) const

Gets the chunking parameters.

Parameters
chunkModeOn return contains either: "nc_CONTIGUOUS" or "nc_CHUNKED"
chunksizesOn return contains shape of chunking, used if ChunkMode=nc_CHUNKED.

Definition at line 550 of file ncVar.cpp.

void NcVar::getCompressionParameters ( bool &  shuffleFilterEnabled,
bool &  deflateFilterEnabled,
int &  deflateLevel 
) const

Gets the compression parameters.

Parameters
enableShuffleFilterOn return set to true if the shuffle filter is enabled.
enableDeflateFilterOn return set to true if the deflate filter is enabled.
deflateLevelOn return set to the deflate level.

Definition at line 615 of file ncVar.cpp.

NcDim NcVar::getDim ( int  i) const

Gets the i'th NcDim object.

Definition at line 171 of file ncVar.cpp.

int NcVar::getDimCount ( ) const

The the number of dimensions.

Definition at line 142 of file ncVar.cpp.

vector< NcDim > NcVar::getDims ( ) const

Gets the set of NcDim objects.

Definition at line 151 of file ncVar.cpp.

NcVar::EndianMode NcVar::getEndianness ( ) const

Gets the endianness of the variable.

Returns
Endianness enumeration type. Allowable parameters are: "nc_ENDIAN_NATIVE" (the default), "nc_ENDIAN_LITTLE", "nc_ENDIAN_BIG"

Definition at line 644 of file ncVar.cpp.

void NcVar::getFillModeParameters ( bool &  fillMode,
void *  fillValue = NULL 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. The function can be used for any type, including user-defined types.

Parameters
fillModeOn return set to true if fill mode is enabled.
fillValueOn return containts a pointer to fill value. Must be the same type as the variable. Ignored if fillMode=.false.

Definition at line 585 of file ncVar.cpp.

template<class T >
void netCDF::NcVar::getFillModeParameters ( bool &  fillMode,
T &  fillValue 
) const
inline

Gets the fill parameters.

Parameters
Onreturn set to true if fill mode is enabled.
Onreturn is set to the fill value.

Definition at line 314 of file ncVar.h.

int NcVar::getId ( ) const

Get the variable id.

Definition at line 86 of file ncVar.cpp.

string NcVar::getName ( ) const

Name of this NcVar object.

Definition at line 528 of file ncVar.cpp.

NcGroup NcVar::getParentGroup ( ) const

Gets parent group.

Definition at line 80 of file ncVar.cpp.

NcType NcVar::getType ( ) const

Returns the variable type.

Definition at line 96 of file ncVar.cpp.

void NcVar::getVar ( void *  dataValues) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

Definition at line 1439 of file ncVar.cpp.

void NcVar::getVar ( char **  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1431 of file ncVar.cpp.

void NcVar::getVar ( char *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1335 of file ncVar.cpp.

void NcVar::getVar ( unsigned char *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1343 of file ncVar.cpp.

void NcVar::getVar ( signed char *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1351 of file ncVar.cpp.

void NcVar::getVar ( short *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1359 of file ncVar.cpp.

void NcVar::getVar ( int *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1367 of file ncVar.cpp.

void NcVar::getVar ( long *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1375 of file ncVar.cpp.

void NcVar::getVar ( float *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1383 of file ncVar.cpp.

void NcVar::getVar ( double *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1391 of file ncVar.cpp.

void NcVar::getVar ( unsigned short *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1399 of file ncVar.cpp.

void NcVar::getVar ( unsigned int *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1407 of file ncVar.cpp.

void NcVar::getVar ( unsigned long long *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 1423 of file ncVar.cpp.

void NcVar::getVar ( long long *  dataValues) const

Reads the entire data from an netCDF variable.

This is the simplest interface to use for reading the value of a scalar variable or when all the values of a multidimensional variable can be read at once. The values are read into consecutive locations with the last dimension varying fastest.

Take care when using the simplest forms of this interface with record variables when you don't specify how many records are to be read. If you try to read all the values of a record variable into an array but there are more records in the file than you assume, more data will be read than you expect, which may cause a segmentation violation.

Parameters
dataValuesPointer to the location into which the data value is read. If the type of data value differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)

Definition at line 1415 of file ncVar.cpp.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
void *  datumValue 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
char **  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
char *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
unsigned char *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
signed char *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
short *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
int *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
long *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
float *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
double *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
unsigned short *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
unsigned int *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
unsigned long long *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  index,
long long *  datumValue 
) const

Reads a single datum value from a variable of an open netCDF dataset.

The value is converted from the external data type of the variable, if necessary.

Parameters
indexVector specifying the index of the data value to be read. The indices are relative to 0, so for example, the first data value of a two-dimensional variable would have index (0,0). The elements of index must correspond to the variable's dimensions. Hence, if the variable is a record variable, the first index is the record number.
datumValuePointer to the location into which the data value is read. If the type of data value differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)
void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
void *  dataValues 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
char **  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
unsigned char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
signed char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
float *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
double *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
unsigned short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
unsigned int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
unsigned long long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
long long *  dataValues 
) const

Reads an array of values from a netCDF variable of an open netCDF dataset.

The array is specified by giving a corner and a vector of edge lengths. The values are read into consecutive locations with the last dimension varying fastest.

Parameters
startVector specifying the index in the variable where the first of the data values will be read. The indices are relative to 0, so for example, the first data value of a variable would have index (0, 0, ... , 0). The length of start must be the same as the number of dimensions of the specified variable. The elements of start correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first index would correspond to the starting record number for reading the data values.
countVector specifying the edge lengths along each dimension of the block of data values to be read. To read a single value, for example, specify count as (1, 1, ... , 1). The length of count is the number of dimensions of the specified variable. The elements of count correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first element of count corresponds to a count of the number of records to read. Note: setting any element of the count array to zero causes the function to exit without error, and without doing anything.
dataValuesPointer to the location into which the data value is read. If the type of data value differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)
void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
void *  dataValues 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
char **  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
unsigned char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
signed char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
float *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
double *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
unsigned short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
unsigned int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
unsigned long long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
long long *  dataValues 
) const

Reads a subsampled (strided) array section of values from a netCDF variable.

The subsampled array section is specified by giving a corner, a vector of edge lengths, and a stride vector. The values are read with the last dimension of the netCDF variable varying fastest.

Parameters
startVector specifying the index in the variable where the first of the data values will be read. The indices are relative to 0, so for example, the first data value of a variable would have index (0, 0, ... , 0). The length of start must be the same as the number of dimensions of the specified variable. The elements of start correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first index would correspond to the starting record number for reading the data values.
countVector specifying the edge lengths along each dimension of the block of data values to be read. To read a single value, for example, specify count as (1, 1, ... , 1). The length of count is the number of dimensions of the specified variable. The elements of count correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first element of count corresponds to a count of the number of records to read. Note: setting any element of the count array to zero causes the function to exit without error, and without doing anything.
strideVector specifying the interval between selected indices. The elements of the stride vector correspond, in order, to the variable's dimensions. A value of 1 accesses adjacent values of the netCDF variable in the corresponding dimension; a value of 2 accesses every other value of the netCDF variable in the corresponding dimension; and so on. A NULL stride argument is treated as (1, 1, ... , 1).
dataValuesPointer to the location into which the data value is read. If the type of data value differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)
void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
void *  dataValues 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
char **  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
unsigned char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
signed char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
float *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
double *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
unsigned short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
unsigned int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
unsigned long long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::getVar ( const std::vector< size_t > &  start,
const std::vector< size_t > &  count,
const std::vector< ptrdiff_t > &  stride,
const std::vector< ptrdiff_t > &  imap,
long long *  dataValues 
) const

Reads a mapped array section of values from a netCDF variable.

The mapped array section is specified by giving a corner, a vector of edge lengths, a stride vector, and an index mapping vector. The index mapping vector is a vector of integers that specifies the mapping between the dimensions of a netCDF variable and the in-memory structure of the internal data array. No assumptions are made about the ordering or length of the dimensions of the data array.

Parameters
startVector specifying the index in the variable where the first of the data values will be read. The indices are relative to 0, so for example, the first data value of a variable would have index (0, 0, ... , 0). The length of start must be the same as the number of dimensions of the specified variable. The elements of start correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first index would correspond to the starting record number for reading the data values.
countVector specifying the edge lengths along each dimension of the block of data values to be read. To read a single value, for example, specify count as (1, 1, ... , 1). The length of count is the number of dimensions of the specified variable. The elements of count correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first element of count corresponds to a count of the number of records to read. Note: setting any element of the count array to zero causes the function to exit without error, and without doing anything.
strideVector specifying the interval between selected indices. The elements of the stride vector correspond, in order, to the variable's dimensions. A value of 1 accesses adjacent values of the netCDF variable in the corresponding dimension; a value of 2 accesses every other value of the netCDF variable in the corresponding dimension; and so on. A NULL stride argument is treated as (1, 1, ... , 1).
imapVector of integers that specifies the mapping between the dimensions of a netCDF variable and the in-memory structure of the internal data array. imap[0] gives the distance between elements of the internal array corresponding to the most slowly varying dimension of the netCDF variable. imap[n-1] (where n is the rank of the netCDF variable) gives the distance between elements of the internal array corresponding to the most rapidly varying dimension of the netCDF variable. Intervening imap elements correspond to other dimensions of the netCDF variable in the obvious way. Distances between elements are specified in type-independent units of elements (the distance between internal elements that occupy adjacent memory locations is 1 and not the element's byte-length as in netCDF 2).
dataValuesPointer to the location into which the data value is read. If the type of data value differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)
bool netCDF::NcVar::isNull ( ) const
inline

Returns true if this object variable is not defined.

Definition at line 112 of file ncVar.h.

bool NcVar::operator!= ( const NcVar rhs) const

!= operator

Definition at line 53 of file ncVar.cpp.

NcVar & NcVar::operator= ( const NcVar rhs)

assignment operator

Definition at line 29 of file ncVar.cpp.

bool NcVar::operator== ( const NcVar rhs) const

equivalence operator

Definition at line 46 of file ncVar.cpp.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
size_t  len,
const char **  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const std::string &  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const unsigned char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const signed char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
short  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
int  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
long  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
float  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
double  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
unsigned short  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
unsigned int  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
unsigned long long  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
long long  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const float *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const double *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const unsigned short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const unsigned int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const unsigned long long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const long long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

NcVarAtt netCDF::NcVar::putAtt ( const std::string &  name,
const NcType type,
size_t  len,
const void *  dataValues 
) const

Creates a new variable attribute or if already exisiting replaces it.

If you are writing a Fill_Value attribute, and will tell the HDF5 layer to use the specified fill value for that variable.

Although it's possible to create attributes of all types, text and double attributes are adequate for most purposes.
Parameters
nameName of attribute.
typeThe attribute type.
lenThe length of the attribute (number of Nctype repeats).
dataValuesData Values to put into the new attribute. If the type of data values differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)
Returns
The NcVarAtt object for this new netCDF attribute.
void NcVar::putVar ( const void *  dataValues) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

Definition at line 815 of file ncVar.cpp.

void NcVar::putVar ( const char **  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 806 of file ncVar.cpp.

void NcVar::putVar ( const char *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 698 of file ncVar.cpp.

void NcVar::putVar ( const unsigned char *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 707 of file ncVar.cpp.

void NcVar::putVar ( const signed char *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 716 of file ncVar.cpp.

void NcVar::putVar ( const short *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 725 of file ncVar.cpp.

void NcVar::putVar ( const int *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 734 of file ncVar.cpp.

void NcVar::putVar ( const long *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 743 of file ncVar.cpp.

void NcVar::putVar ( const float *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 752 of file ncVar.cpp.

void NcVar::putVar ( const double *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 761 of file ncVar.cpp.

void NcVar::putVar ( const unsigned short *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 770 of file ncVar.cpp.

void NcVar::putVar ( const unsigned int *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 779 of file ncVar.cpp.

void NcVar::putVar ( const unsigned long long *  dataValues) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 797 of file ncVar.cpp.

void NcVar::putVar ( const long long *  dataValues) const

Writes the entire data into the netCDF variable.

This is the simplest interface to use for writing a value in a scalar variable or whenever all the values of a multidimensional variable can all be written at once. The values to be written are associated with the netCDF variable by assuming that the last dimension of the netCDF variable varies fastest in the C interface.

Take care when using the simplest forms of this interface with record variables when you don't specify how many records are to be written. If you try to write all the values of a record variable into a netCDF file that has no record data yet (hence has 0 records), nothing will be written. Similarly, if you try to write all of a record variable but there are more records in the file than you assume, more data may be written to the file than you supply, which may result in a segmentation violation.

Parameters
dataValuesThe data values. The order in which the data will be written to the netCDF variable is with the last dimension of the specified variable varying fastest. If the type of data values differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)

Definition at line 788 of file ncVar.cpp.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const void *  datumValue 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const char **  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const std::string &  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const unsigned char *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const signed char *  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const short  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const int  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const long  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const float  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const double  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const unsigned short  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const unsigned int  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const unsigned long long  datumValue 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  index,
const long long  datumValue 
) const

Writes a single datum into the netCDF variable.

Parameters
indexVector specifying the index where the data values will be written. The indices are relative to 0, so for example, the first data value of a two-dimensional variable would have index (0,0). The elements of index must correspond to the variable's dimensions. Hence, if the variable uses the unlimited dimension, the first index would correspond to the unlimited dimension.
datumValueThe data value. If the type of data values differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)
void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const void *  dataValues 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const char **  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const unsigned char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const signed char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const float *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const double *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const unsigned short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const unsigned int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const unsigned long long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const long long *  dataValues 
) const

Writes an array of values into the netCDF variable.

The portion of the netCDF variable to write is specified by giving a corner and a vector of edge lengths that refer to an array section of the netCDF variable. The values to be written are associated with the netCDF variable by assuming that the last dimension of the netCDF variable varies fastest.

Parameters
startpVector specifying the index where the first data values will be written. The indices are relative to 0, so for example, the first data value of a variable would have index (0, 0, ... , 0). The elements of start correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first index corresponds to the starting record number for writing the data values.
countpVector specifying the number of indices selected along each dimension. To write a single value, for example, specify count as (1, 1, ... , 1). The elements of count correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first element of count corresponds to a count of the number of records to write. Note: setting any element of the count array to zero causes the function to exit without error, and without doing anything.
dataValuesThe data values. The order in which the data will be written to the netCDF variable is with the last dimension of the specified variable varying fastest. If the type of data values differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)
void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const void *  dataValues 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const char **  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const unsigned char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const signed char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const float *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const double *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const unsigned short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const unsigned int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const unsigned long long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const long long *  dataValues 
) const

Writes an array of values into the netCDF variable.

The subsampled array section is specified by giving a corner, a vector of counts, and a stride vector.

Parameters
startpVector specifying the index where the first data values will be written. The indices are relative to 0, so for example, the first data value of a variable would have index (0, 0, ... , 0). The elements of start correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first index corresponds to the starting record number for writing the data values.
countpVector specifying the number of indices selected along each dimension. To write a single value, for example, specify count as (1, 1, ... , 1). The elements of count correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first element of count corresponds to a count of the number of records to write. Note: setting any element of the count array to zero causes the function to exit without error, and without doing anything.
stridepA vector of ptrdiff_t integers that specifies the sampling interval along each dimension of the netCDF variable. The elements of the stride vector correspond, in order, to the netCDF variable's dimensions (stride[0] gives the sampling interval along the most slowly varying dimension of the netCDF variable). Sampling intervals are specified in type-independent units of elements (a value of 1 selects consecutive elements of the netCDF variable along the corresponding dimension, a value of 2 selects every other element, etc.). A NULL stride argument is treated as (1, 1, ... , 1).
dataValuesThe data values. The order in which the data will be written to the netCDF variable is with the last dimension of the specified variable varying fastest. If the type of data values differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.
void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const void *  dataValues 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. In addition, no data conversion is carried out. This means that the type of the data in memory must match the type of the variable.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const char **  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const unsigned char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const signed char *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const float *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const double *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const unsigned short *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const unsigned int *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const unsigned long long *  dataValues 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

void netCDF::NcVar::putVar ( const std::vector< size_t > &  startp,
const std::vector< size_t > &  countp,
const std::vector< ptrdiff_t > &  stridep,
const std::vector< ptrdiff_t > &  imapp,
const long long *  dataValues 
) const

Writes a mapped array section of values into the netCDF variable.

The mapped array section is specified by giving a corner, a vector of counts, a stride vector, and an index mapping vector. The index mapping vector is a vector of integers that specifies the mapping between the dimensions of a netCDF variable and the in-memory structure of the internal data array. No assumptions are made about the ordering or length of the dimensions of the data array.

Parameters
countpVector specifying the number of indices selected along each dimension. To write a single value, for example, specify count as (1, 1, ... , 1). The elements of count correspond, in order, to the variable's dimensions. Hence, if the variable is a record variable, the first element of count corresponds to a count of the number of records to write. Note: setting any element of the count array to zero causes the function to exit without error, and without doing anything.
stridepA vector of ptrdiff_t integers that specifies the sampling interval along each dimension of the netCDF variable. The elements of the stride vector correspond, in order, to the netCDF variable's dimensions (stride[0] gives the sampling interval along the most slowly varying dimension of the netCDF variable). Sampling intervals are specified in type-independent units of elements (a value of 1 selects consecutive elements of the netCDF variable along the corresponding dimension, a value of 2 selects every other element, etc.). A NULL stride argument is treated as (1, 1, ... , 1).
imapVector specifies the mapping between the dimensions of a netCDF variable and the in-memory structure of the internal data array. The elements of the index mapping vector correspond, in order, to the netCDF variable's dimensions (imap[0] gives the distance between elements of the internal array corresponding to the most slowly varying dimension of the netCDF variable). Distances between elements are specified in type-independent units of elements (the distance between internal elements that occupy adjacent memory locations is 1 and not the element's byte-length as in netCDF 2). A NULL argument means the memory-resident values have the same structure as the associated netCDF variable.
dataValuesThe data values. The order in which the data will be written to the netCDF variable is with the last dimension of the specified variable varying fastest. If the type of data values differs from the netCDF variable type, type conversion will occur. (However, no type conversion is carried out for variables using the user-defined data types: nc_Vlen, nc_Opaque, nc_Compound and nc_Enum.)
void NcVar::rename ( const std::string &  newname) const

Rename the variable.

Definition at line 682 of file ncVar.cpp.

void NcVar::setChecksum ( ChecksumMode  checksumMode) const

Sets the checksum parameters of a variable.

Parameters
ChecksumModeEnumeration type. Allowable parameters are: "nc_NOCHECKSUM", "nc_FLETCHER32".

Definition at line 661 of file ncVar.cpp.

void NcVar::setChunking ( ChunkMode  chunkMode,
std::vector< size_t > &  chunksizes 
) const

Sets chunking parameters.

Parameters
chunkModeEnumeration type. Allowable parameters are: "nc_CONTIGUOUS", "nc_CHUNKED"
chunksizesShape of chunking, used if ChunkMode=nc_CHUNKED.

Definition at line 543 of file ncVar.cpp.

void NcVar::setCompression ( bool  enableShuffleFilter,
bool  enableDeflateFilter,
int  deflateLevel 
) const

Sets the compression parameters.

Parameters
enableShuffleFilterSet to true to turn on shuffle filter.
enableDeflateFilterSet to true to turn on deflate filter.
deflateLevelThe deflate level, must be 0 and 9.

Definition at line 601 of file ncVar.cpp.

void NcVar::setEndianness ( EndianMode  endianMode) const

Sets the endianness of the variable.

Parameters
Endiannessenumeration type. Allowable parameters are: "nc_ENDIAN_NATIVE" (the default), "nc_ENDIAN_LITTLE", "nc_ENDIAN_BIG"

Definition at line 637 of file ncVar.cpp.

void NcVar::setFill ( bool  fillMode,
void *  fillValue = NULL 
) const

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 569 of file ncVar.cpp.

void NcVar::setFill ( bool  fillMode,
const void *  fillValue = NULL 
) const

This is an overloaded member function, provided for convenience.

It differs from the above function in what argument(s) it accepts. The function can be used for any type, including user-defined types.

Parameters
fillModeSetting to true, turns on fill mode.
fillValuePointer to fill value. Must be the same type as the variable. Ignored if fillMode=.false.

Definition at line 578 of file ncVar.cpp.

template<class T >
void netCDF::NcVar::setFill ( bool  fillMode,
fillValue 
) const
inline

Sets the fill parameters.

Parameters
fillModeSetting to true, turns on fill mode.
fillValueFill value for the variable. Must be the same type as the variable. Ignored if fillMode=.false.

Definition at line 291 of file ncVar.h.

Friends And Related Function Documentation

bool operator< ( const NcVar lhs,
const NcVar rhs 
)
friend

comparator operator

Definition at line 14 of file ncVar.cpp.

bool operator> ( const NcVar lhs,
const NcVar rhs 
)
friend

comparator operator

Definition at line 20 of file ncVar.cpp.


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

Return to the Main Unidata NetCDF page.
Generated on Fri Nov 11 2016 15:28:29 for NetCDF-C++. NetCDF is a Unidata library.