105 void rename(
const std::string& newname )
const;
133 std::vector<NcDim>
getDims()
const;
148 std::map<std::string,NcVarAtt>
getAtts()
const;
158 NcVarAtt putAtt(
const std::string& name,
size_t len,
const char** dataValues)
const ;
162 NcVarAtt putAtt(
const std::string& name,
const std::string& dataValues)
const ;
166 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const unsigned char* dataValues)
const ;
169 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const signed char* dataValues)
const ;
193 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
unsigned long long datumValue)
const ;
199 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const short* dataValues)
const ;
202 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const int* dataValues)
const ;
205 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const long* dataValues)
const ;
208 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const float* dataValues)
const ;
211 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const double* dataValues)
const ;
214 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const unsigned short* dataValues)
const ;
217 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const unsigned int* dataValues)
const ;
220 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const unsigned long long* dataValues)
const ;
223 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const long long* dataValues)
const ;
239 NcVarAtt putAtt(
const std::string& name,
const NcType& type,
size_t len,
const void* dataValues)
const ;
273 void setFill(
bool fillMode,
void* fillValue=NULL)
const;
283 void setFill(
bool fillMode,
const void* fillValue=NULL)
const;
291 void setFill(
bool fillMode, T fillValue)
const 293 ncCheck(nc_def_var_fill(groupId,myId,static_cast<int> (!fillMode),&fillValue),__FILE__,__LINE__);
316 ncCheck(nc_inq_var_fill(groupId,myId,&fillModeInt,&fillValue),__FILE__,__LINE__);
317 fillMode=
static_cast<bool> (fillModeInt == 0);
335 void setCompression(
bool enableShuffleFilter,
bool enableDeflateFilter,
int deflateLevel)
const;
399 void getVar(
void* dataValues)
const;
402 void getVar(
char** dataValues)
const;
405 void getVar(
char* dataValues)
const;
408 void getVar(
unsigned char* dataValues)
const;
411 void getVar(
signed char* dataValues)
const;
414 void getVar(
short* dataValues)
const;
417 void getVar(
int* dataValues)
const;
420 void getVar(
long* dataValues)
const;
423 void getVar(
float* dataValues)
const;
426 void getVar(
double* dataValues)
const;
429 void getVar(
unsigned short* dataValues)
const;
432 void getVar(
unsigned int* dataValues)
const;
435 void getVar(
unsigned long long* dataValues)
const;
452 void getVar(
long long* dataValues)
const;
464 void getVar(
const std::vector<size_t>& index,
void* datumValue)
const;
467 void getVar(
const std::vector<size_t>& index,
char** datumValue)
const;
470 void getVar(
const std::vector<size_t>& index,
char* datumValue)
const;
473 void getVar(
const std::vector<size_t>& index,
unsigned char* datumValue)
const;
476 void getVar(
const std::vector<size_t>& index,
signed char* datumValue)
const;
479 void getVar(
const std::vector<size_t>& index,
short* datumValue)
const;
482 void getVar(
const std::vector<size_t>& index,
int* datumValue)
const;
485 void getVar(
const std::vector<size_t>& index,
long* datumValue)
const;
488 void getVar(
const std::vector<size_t>& index,
float* datumValue)
const;
491 void getVar(
const std::vector<size_t>& index,
double* datumValue)
const;
494 void getVar(
const std::vector<size_t>& index,
unsigned short* datumValue)
const;
497 void getVar(
const std::vector<size_t>& index,
unsigned int* datumValue)
const;
500 void getVar(
const std::vector<size_t>& index,
unsigned long long* datumValue)
const;
514 void getVar(
const std::vector<size_t>& index,
long long* datumValue)
const;
525 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
void* dataValues)
const;
528 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
char** dataValues)
const;
531 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
char* dataValues)
const;
534 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
unsigned char* dataValues)
const;
537 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
signed char* dataValues)
const;
540 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
short* dataValues)
const;
543 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
int* dataValues)
const;
546 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
long* dataValues)
const;
549 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
float* dataValues)
const;
552 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
double* dataValues)
const;
555 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
unsigned short* dataValues)
const;
558 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
unsigned int* dataValues)
const;
561 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
unsigned long long* dataValues)
const;
586 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
long long* dataValues)
const;
597 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
void* dataValues)
const;
600 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
char** dataValues)
const;
603 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
char* dataValues)
const;
606 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
unsigned char* dataValues)
const;
609 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
signed char* dataValues)
const;
612 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
short* dataValues)
const;
615 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
int* dataValues)
const;
618 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
long* dataValues)
const;
621 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
float* dataValues)
const;
624 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
double* dataValues)
const;
627 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
unsigned short* dataValues)
const;
630 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
unsigned int* dataValues)
const;
633 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;
664 void getVar(
const std::vector<size_t>& start,
const std::vector<size_t>& count,
const std::vector<ptrdiff_t>& stride,
long long* dataValues)
const;
676 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;
679 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;
682 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;
685 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;
688 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;
691 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;
694 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;
697 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;
700 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;
703 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;
706 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;
709 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;
712 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;
754 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;
772 void putVar(
const void* dataValues)
const;
775 void putVar(
const char** dataValues)
const;
778 void putVar(
const char* dataValues)
const;
781 void putVar(
const unsigned char* dataValues)
const;
784 void putVar(
const signed char* dataValues)
const;
787 void putVar(
const short* dataValues)
const;
790 void putVar(
const int* dataValues)
const;
793 void putVar(
const long* dataValues)
const;
796 void putVar(
const float* dataValues)
const;
799 void putVar(
const double* dataValues)
const;
802 void putVar(
const unsigned short* dataValues)
const;
805 void putVar(
const unsigned int* dataValues)
const;
808 void putVar(
const unsigned long long* dataValues)
const;
831 void putVar(
const long long* dataValues)
const;
845 void putVar(
const std::vector<size_t>& index,
const void* datumValue)
const;
848 void putVar(
const std::vector<size_t>& index,
const char** datumValue)
const;
851 void putVar(
const std::vector<size_t>& index,
const std::string& datumValue)
const;
854 void putVar(
const std::vector<size_t>& index,
const unsigned char* datumValue)
const;
857 void putVar(
const std::vector<size_t>& index,
const signed char* datumValue)
const;
860 void putVar(
const std::vector<size_t>& index,
const short datumValue)
const;
863 void putVar(
const std::vector<size_t>& index,
const int datumValue)
const;
866 void putVar(
const std::vector<size_t>& index,
const long datumValue)
const;
869 void putVar(
const std::vector<size_t>& index,
const float datumValue)
const;
872 void putVar(
const std::vector<size_t>& index,
const double datumValue)
const;
875 void putVar(
const std::vector<size_t>& index,
const unsigned short datumValue)
const;
878 void putVar(
const std::vector<size_t>& index,
const unsigned int datumValue)
const;
881 void putVar(
const std::vector<size_t>& index,
const unsigned long long datumValue)
const;
893 void putVar(
const std::vector<size_t>& index,
const long long datumValue)
const;
907 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const void* dataValues)
const;
910 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const char** dataValues)
const;
913 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const char* dataValues)
const;
916 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const unsigned char* dataValues)
const;
919 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const signed char* dataValues)
const;
922 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const short* dataValues)
const;
925 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const int* dataValues)
const;
928 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const long* dataValues)
const;
931 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const float* dataValues)
const;
934 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const double* dataValues)
const;
937 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const unsigned short* dataValues)
const;
940 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const unsigned int* dataValues)
const;
943 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const unsigned long long* dataValues)
const;
966 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const long long* dataValues)
const;
980 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const std::vector<ptrdiff_t>& stridep,
const void* dataValues)
const;
983 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const std::vector<ptrdiff_t>& stridep,
const char** dataValues)
const;
986 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const std::vector<ptrdiff_t>& stridep,
const char* dataValues)
const;
989 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;
992 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;
995 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const std::vector<ptrdiff_t>& stridep,
const short* dataValues)
const;
998 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const std::vector<ptrdiff_t>& stridep,
const int* dataValues)
const;
1001 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const std::vector<ptrdiff_t>& stridep,
const long* dataValues)
const;
1004 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const std::vector<ptrdiff_t>& stridep,
const float* dataValues)
const;
1007 void putVar(
const std::vector<size_t>& startp,
const std::vector<size_t>& countp,
const std::vector<ptrdiff_t>& stridep,
const double* dataValues)
const;
1010 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;
1013 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;
1016 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;
1041 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;
1052 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;
1055 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;
1058 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;
1061 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;
1064 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;
1067 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;
1070 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;
1073 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;
1076 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;
1079 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;
1082 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;
1085 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;
1088 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;
1118 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;
int getAttCount() const
Gets the number of attributes.
ChecksumMode
Used for checksum specification (see NcVar::setChecksum, NcVar::getChecksum).
int getDimCount() const
The the number of dimensions.
void getChunkingParameters(ChunkMode &chunkMode, std::vector< size_t > &chunkSizes) const
Gets the chunking parameters.
Base class inherited by NcOpaque, NcVlen, NcCompound and NcEnum classes.
bool operator!=(const NcVar &rhs) const
!= operator
int getId() const
Get the variable id.
std::map< std::string, NcVarAtt > getAtts() const
Gets the set of attributes.
No checksum (the default).
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 o...
friend bool operator>(const NcVar &lhs, const NcVar &rhs)
comparator operator
Selects the Fletcher32 checksum filter.
void setCompression(bool enableShuffleFilter, bool enableDeflateFilter, int deflateLevel) const
Sets the compression parameters.
void setChecksum(ChecksumMode checksumMode) const
Sets the checksum parameters of a variable.
EndianMode getEndianness() const
Gets the endianness of the variable.
Chunked storage is used for this variable.
Class represents a netCDF group.
std::vector< NcDim > getDims() const
Gets the set of NcDim objects.
NcVarAtt getAtt(const std::string &name) const
Gets attribute by name.
friend bool operator<(const NcVar &lhs, const NcVar &rhs)
comparator operator
void setEndianness(EndianMode endianMode) const
Sets the endianness of the variable.
NcGroup getParentGroup() const
Gets parent group.
NcType getType() const
Returns the variable type.
bool isNull() const
Returns true if this object variable is not defined.
void getVar(void *dataValues) const
This is an overloaded member function, provided for convenience.
void setFill(bool fillMode, void *fillValue=NULL) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
NcDim getDim(int i) const
Gets the i'th NcDim object.
Contiguous storage is used for this variable.
Class represents a netCDF dimension.
bool operator==(const NcVar &rhs) const
equivalence operator
void ncCheck(int retCode, const char *file, int line)
Function checks error code and if necessary throws an exception.
void getFillModeParameters(bool &fillMode, T &fillValue) const
Gets the fill parameters.
std::string getName() const
Name of this NcVar object.
void putVar(const void *dataValues) const
This is an overloaded member function, provided for convenience.
Class represents a netCDF attribute local to a netCDF variable.
void setChunking(ChunkMode chunkMode, std::vector< size_t > &chunksizes) const
Sets chunking parameters.
void rename(const std::string &newname) const
Rename the variable.
NcVar & operator=(const NcVar &rhs)
assignment operator
void setFill(bool fillMode, T fillValue) const
Sets the fill parameters.
void getCompressionParameters(bool &shuffleFilterEnabled, bool &deflateFilterEnabled, int &deflateLevel) const
Gets the compression parameters.
Class represents a netCDF variable.
NcVar()
Constructor generates a null object.
void getFillModeParameters(bool &fillMode, void *fillValue=NULL) const
This is an overloaded member function, provided for convenience.
ChunkMode
Used for chunking specifications (see NcVar::setChunking, NcVar::getChunkingParameters).
ChecksumMode getChecksum() const
Gets the checksum parameters of the variable.
EndianMode
Used to specifying the endianess of the data, (see NcVar::setEndianness, NcVar::getEndianness).