NetCDF4 C++ API
|
Represents a netCDF group. More...
#include <NetCDF/cpp4/src/NcGroup.h>
Public Types | |
enum | GroupLocation { ChildrenGrps, ParentsGrps, ChildrenOfChildrenGrps, AllChildrenGrps, ParentsAndCurrentGrps, AllGrps } |
options for selecting groups (used for returned set of NcGroup objects) More... | |
enum | Location { Current, Parents, Children, ParentsAndCurrent, ChildrenAndCurrent, All } |
options for selecting groups. More... | |
typedef std::map< std::string, NcGroup > | NcGroupMapUnique |
typedef std::multimap < std::string, NcGroup > | NcGroupMap |
typedef std::pair< std::string, NcGroup > | NcGroupPair |
typedef std::set< NcGroup > | NcGroupSet |
typedef std::multimap < std::string, NcType > | NcTypeMap |
typedef std::pair< std::string, NcType > | NcTypePair |
typedef std::set< NcType > | NcTypeSet |
typedef std::multimap < std::string, NcTypeUserDef > | NcUserTypeMap |
typedef std::multimap < std::string, NcVar > | NcVarMap |
typedef std::pair< std::string, NcVar > | NcVarPair |
typedef std::set< NcVar > | NcVarSet |
typedef std::multimap < std::string, NcDim > | NcDimMap |
typedef std::pair< std::string, NcDim > | NcDimPair |
typedef std::set< NcDim > | NcDimSet |
typedef std::multimap < std::string, NcGroupAtt > | NcGroupAttMap |
typedef std::pair< std::string, NcGroupAtt > | NcGroupAttPair |
typedef std::set< NcGroupAtt > | NcGroupAttSet |
Public Types inherited from netcdf::NcItem | |
enum | { idGlobal = NC_GLOBAL } |
Public Member Functions | |
NcGroup () | |
null group More... | |
NcGroup (int const useFileID, int const groupId, std::string const groupName) | |
name of new group More... | |
NcGroup (NcGroup const &rhs) | |
virtual | ~NcGroup () |
bool | operator< (NcGroup const &rhs) const |
std::string | GetName (bool fullName=false) const |
NcGroup | GetParentGroup () const |
int | GetGroupCount (NcGroup::GroupLocation location=ChildrenGrps) const |
NcGroupMap | GetGroups (NcGroup::GroupLocation location=ChildrenGrps) const |
NcGroupSet | GetGroups (std::string const name, NcGroup::GroupLocation location=ChildrenGrps) const |
NcGroup | GetGroup (std::string const name, NcGroup::GroupLocation location=ChildrenGrps) const |
NcGroup | AddGroup (std::string const name) const |
bool | IsRootGroup () const |
int | GetVarCount (NcGroup::Location location=Current) const |
bool | HaveVariable (std::string const name, NcGroup::Location const location=Current) const |
NcVarMap | GetVars (NcGroup::Location location=Current) const |
NcVarSet | GetVars (std::string const name, NcGroup::Location location=Current) const |
NcVar | GetVar (std::string const name, NcGroup::Location location=Current) const |
NcVar | AddVar (std::string const name, std::string const typeName) const |
Add a scalar variable of a specified type name. More... | |
NcVar | AddVar (std::string const name, NcType const &ncType) const |
Add a scalar variable of a specifed type. More... | |
NcVar | AddVar (std::string const name, std::string const typeName, std::string const dimName) const |
NcVar | AddVar (std::string const name, NcType const &ncType, const NcDim &ncDim) const |
NcVar | AddVar (std::string const name, std::string const typeName, const std::vector< std::string > &dimNames) const |
NcVar | AddVar (std::string const name, NcType const &ncType, const std::vector< NcDim > &ncDimVector) const |
NcVar | AddVar (NcVar const &var) |
int | GetAttCount (NcGroup::Location const location=Current) const |
bool | HaveAttribute (std::string const name, NcGroup::Location const location=Current) const |
NcGroupAttMap | GetAttributes (NcGroup::Location location=Current) const |
NcGroupAttSet | GetAttributes (std::string const name, NcGroup::Location location=Current) const |
NcGroupAtt | GetAtt (std::string const name, NcGroup::Location location=Current) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const unsigned char *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const signed char *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, char const aChar) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, short datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const short *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, unsigned short datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const unsigned short *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, int datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const int *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, long datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const long *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, unsigned int datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const unsigned int *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, float datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const float *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, double datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const double *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, long long datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const long long *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, unsigned long long datumValue) const |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const unsigned long long *dataValues) const |
NcGroupAtt | PutAtt (std::string const name, size_t len, const char **dataValues) const |
NcGroupAtt | PutAtt (std::string const name, std::string const &dataValues) const |
NcGroupAtt | PutAtt (std::string const name, std::vector< std::string > const &strVec) |
NcGroupAtt | PutAtt (std::string const name, NcType const &type, size_t len, const void *dataValues) const |
NcGroupAtt | PutAtt (NcGroupAtt const &att) |
int | GetDimCount (NcGroup::Location const location=Current) const |
NcDimMap | GetDims (NcGroup::Location const location=Current) const |
NcDimSet | GetDims (std::string const name, NcGroup::Location const location=Current) const |
NcDim | GetDim (std::string const name, NcGroup::Location const location=Current) const |
NcDim | AddDim (std::string const name, size_t const dimSize) const |
NcDim | AddDim (std::string const name) const |
NcDim | AddDim (NcDim const &dim) const |
int | GetTypeCount (NcGroup::Location location=Current) const |
int | GetTypeCount (NcType::ncType enumType, NcGroup::Location location=Current) const |
NcTypeMap | GetTypes (NcGroup::Location location=Current) const |
NcTypeSet | GetTypes (std::string const &name, NcGroup::Location location=Current) const |
NcTypeSet | GetTypes (NcType::ncType enumType, NcGroup::Location location=Current) const |
NcTypeSet | GetTypes (std::string const &name, NcType::ncType enumType, NcGroup::Location location=Current) const |
NcType | GetType (std::string const &name, NcGroup::Location location=Current) const |
NcEnumType | AddEnumType (std::string const name, NcEnumType::ncEnumType basetype) const |
NcVlenType | AddVlenType (std::string const name, NcType &basetype) const |
NcOpaqueType | AddOpaqueType (std::string const name, size_t size) const |
NcCompoundType | AddCompoundType (std::string const name, size_t size) const |
NcGroupMapUnique | GetCoordVars (Location location=Current) const |
void | GetCoordVar (std::string &coordVarName, NcDim &ncDim, NcVar &ncVar, NcGroup::Location location=Current) const |
Public Member Functions inherited from netcdf::NcItem | |
virtual | ~NcItem ()=0 |
bool | IsNull () const |
std::string const & | GetName () const |
int | GetID () const |
int | GetGroupID () const |
int | GetFileID () const |
NcItem & | operator= (NcItem const &rhs) |
bool | operator== (NcItem const &rhs) const |
bool | operator!= (NcItem const &rhs) const |
bool | operator< (NcItem const &rhs) const |
Protected Member Functions | |
virtual void | Rename (std::string const &) |
Protected Member Functions inherited from netcdf::NcItem | |
NcItem (bool const isNullObject=true) | |
NcItem (int const useFileID, int const useID, int const useGroupID=NcItem::idGlobal, std::string const useName=std::string()) | |
NcItem (NcItem const &rhs) | |
void | Copy (NcItem const &rhs) |
Additional Inherited Members | |
Static Public Attributes inherited from netcdf::NcItem | |
static int const | nullID = -999 |
Protected Attributes inherited from netcdf::NcItem | |
bool | nullObject |
int | myID |
object ID number More... | |
int | groupID |
group ID number (can be unused) More... | |
int | fileID |
netCDF file ID number More... | |
std::string | myName |
optional name of object More... | |
typedef std::multimap<std::string, NcDim> netcdf::NcGroup::NcDimMap |
typedef std::pair<std::string, NcDim> netcdf::NcGroup::NcDimPair |
typedef std::set<NcDim> netcdf::NcGroup::NcDimSet |
typedef std::multimap<std::string, NcGroupAtt> netcdf::NcGroup::NcGroupAttMap |
typedef std::pair<std::string, NcGroupAtt> netcdf::NcGroup::NcGroupAttPair |
typedef std::set<NcGroupAtt> netcdf::NcGroup::NcGroupAttSet |
typedef std::multimap<std::string, NcGroup> netcdf::NcGroup::NcGroupMap |
typedef std::map<std::string, NcGroup> netcdf::NcGroup::NcGroupMapUnique |
typedef std::pair<std::string, NcGroup> netcdf::NcGroup::NcGroupPair |
typedef std::set<NcGroup> netcdf::NcGroup::NcGroupSet |
typedef std::multimap<std::string, NcType> netcdf::NcGroup::NcTypeMap |
typedef std::pair<std::string, NcType> netcdf::NcGroup::NcTypePair |
typedef std::set<NcType> netcdf::NcGroup::NcTypeSet |
typedef std::multimap<std::string, NcTypeUserDef> netcdf::NcGroup::NcUserTypeMap |
typedef std::multimap<std::string, NcVar> netcdf::NcGroup::NcVarMap |
typedef std::pair<std::string, NcVar> netcdf::NcGroup::NcVarPair |
typedef std::set<NcVar> netcdf::NcGroup::NcVarSet |
netcdf::NcGroup::NcGroup | ( | ) |
netcdf::NcGroup::NcGroup | ( | int const | useFileID, |
int const | groupId, | ||
std::string const | groupName | ||
) |
useFileID | create a group netCDF file ID number |
groupId | group ID number |
netcdf::NcGroup::NcGroup | ( | NcGroup const & | rhs | ) |
|
inlinevirtual |
NcCompoundType netcdf::NcGroup::AddCompoundType | ( | std::string const | name, |
size_t | size | ||
) | const |
Adds a netCDF UserDefined type.
name | Name of type. |
size | The size of the new type in bytes. |
NcDim netcdf::NcGroup::AddDim | ( | std::string const | name, |
size_t const | dimSize | ||
) | const |
Adds a netCDF dimension.
The | name of new dimension. |
Length | of dimension; that is, number of values for this dimension as an index to variables that use it. |
NcDim netcdf::NcGroup::AddDim | ( | std::string const | name | ) | const |
Adds an unlimited netCDF dimension.
The | name of new dimension. |
Adds a netCDF dimension from an existing dimension object.
A | dimension object. |
NcEnumType netcdf::NcGroup::AddEnumType | ( | std::string const | name, |
NcEnumType::ncEnumType | basetype | ||
) | const |
Adds a netCDF enum type.
name | Name of type. For atomic types, the CDL name is expected. This is consistent with the string returned from NcType::GetName(). |
enumType | The enumeration value of the object type. |
NcGroup netcdf::NcGroup::AddGroup | ( | std::string const | name | ) | const |
Adds a child netCDF group object. Method will throw an netcdf::NcNullgrp exception if the group is null (ie NcGroup::IsNull()=true).
name | Variable name. |
NcOpaqueType netcdf::NcGroup::AddOpaqueType | ( | std::string const | name, |
size_t | size | ||
) | const |
Adds a netCDF Opaque type.
name | Name of type. |
size | The size of the new type in bytes. |
NcVar netcdf::NcGroup::AddVar | ( | std::string const | name, |
std::string const | typeName | ||
) | const |
NcVar netcdf::NcGroup::AddVar | ( | std::string const | name, |
std::string const | typeName, | ||
std::string const | dimName | ||
) | const |
Adds a netCDF variable. The NcType and NcDim objects must be non-null, and be defined in either the current group or a parent group. An NcNullType exception is thrown if the NcType object is invalid. An NcNullDim exception is thrown if the NcDim object is invalid.
name | Variable name. |
typeName | Type name. |
dimName | Dimension name. |
NcVar netcdf::NcGroup::AddVar | ( | std::string const | name, |
NcType const & | ncType, | ||
const NcDim & | ncDim | ||
) | const |
Adds a netCDF variable. The NcType and NcDim objects must be non-null, and be defined in either the current group or a parent group. An NcNullType exception is thrown if the NcType object is invalid. An NcNullDim exception is thrown if the NcDim object is invalid.
NcVar netcdf::NcGroup::AddVar | ( | std::string const | name, |
std::string const | typeName, | ||
const std::vector< std::string > & | dimNames | ||
) | const |
Adds a netCDF multi-dimensional variable. The NcType and NcDim objects must be non-null, and be defined in either the current group or a parent group. An NcNullType exception is thrown if the NcType object is invalid. An NcNullDim exception is thrown if the NcDim object is invalid.
name | Variable name. |
typeName | Type name. |
dimNames | Vector of dimension names. |
NcVar netcdf::NcGroup::AddVar | ( | std::string const | name, |
NcType const & | ncType, | ||
const std::vector< NcDim > & | ncDimVector | ||
) | const |
Adds a multi-dimensional netCDF variable. The NcType and NcDim objects must be non-null, and be defined in either the current group or a parent group. An NcNullType exception is thrown if the NcType object is invalid. An NcNullDim exception is thrown if any of the the NcDim objects are invalid.
Adds a netCDF variable from an existing variable object.
name | A variable object. |
NcVlenType netcdf::NcGroup::AddVlenType | ( | std::string const | name, |
NcType & | basetype | ||
) | const |
Adds a netCDF Vlen type.
name | Name of type. |
basetype | A NcType object to be used for the basetype. |
NcGroupAtt netcdf::NcGroup::GetAtt | ( | std::string const | name, |
NcGroup::Location | location = Current |
||
) | const |
Gets the named NcGroupAtt object.
name | Name of attribute |
location | Enumeration type controlling the groups to search. |
int netcdf::NcGroup::GetAttCount | ( | NcGroup::Location const | location = Current | ) | const |
Gets the number of group attributes.
location | Enumeration type controlling the groups to search. |
NcGroup::NcGroupAttMap netcdf::NcGroup::GetAttributes | ( | NcGroup::Location | location = Current | ) | const |
Gets the collection of NcGroupAtt objects.
location | Enumeration type controlling the groups to search. |
NcGroup::NcGroupAttSet netcdf::NcGroup::GetAttributes | ( | std::string const | name, |
NcGroup::Location | location = Current |
||
) | const |
Gets all NcGroupAtt objects with a given name.
name | Name of attribute |
location | Enumeration type controlling the groups to search. |
void netcdf::NcGroup::GetCoordVar | ( | std::string & | coordVarName, |
NcDim & | ncDim, | ||
NcVar & | ncVar, | ||
NcGroup::Location | location = Current |
||
) | const |
Gets the NcDim and NcVar object pair for a named coordinate variable. Coordinate variable have an NcDim and NcVar object with the same name defined in the same group.
location | Enumeration type controlling the groups to search. |
NcGroup::NcGroupMapUnique netcdf::NcGroup::GetCoordVars | ( | NcGroup::Location | location = Current | ) | const |
Gets a collection of coordinate variables. Coordinate variable have an NcDim and NcVar object with the same name defined in the same group.
location | Enumeration type controlling the groups to search. |
NcDim netcdf::NcGroup::GetDim | ( | std::string const | name, |
NcGroup::Location const | location = Current |
||
) | const |
Gets the named NcDim object.
name | Name of dimension. |
location | Enumeration type controlling the groups to search. |
int netcdf::NcGroup::GetDimCount | ( | NcGroup::Location const | location = Current | ) | const |
Gets the number of NcDim objects.
location | Enumeration type controlling the groups to search. |
NcGroup::NcDimMap netcdf::NcGroup::GetDims | ( | NcGroup::Location const | location = Current | ) | const |
NcGroup::NcDimSet netcdf::NcGroup::GetDims | ( | std::string const | name, |
NcGroup::Location const | location = Current |
||
) | const |
NcGroup netcdf::NcGroup::GetGroup | ( | std::string const | name, |
NcGroup::GroupLocation | location = ChildrenGrps |
||
) | const |
Gets the named child NcGroup object. Method will throw an netcdf::NcNullgrp exception if the group is null (ie NcGroup::IsNull()=true).
name | Group name. |
location | Enumeration type controlling the groups to search. |
int netcdf::NcGroup::GetGroupCount | ( | NcGroup::GroupLocation | location = ChildrenGrps | ) | const |
Gets the number of NcGroup objects. Method will throw an netcdf::NcNullgrp exception if the group is null (ie NcGroup::IsNull()=true).
location | Enumeration type controlling the groups to search. |
NcGroup::NcGroupMap netcdf::NcGroup::GetGroups | ( | NcGroup::GroupLocation | location = ChildrenGrps | ) | const |
Gets the collection of NcGroup objects. Method will throw an netcdf::NcNullgrp exception if the group is null (ie NcGroup::IsNull()=true).
location | Enumeration type controlling the groups to search. |
NcGroup::NcGroupSet netcdf::NcGroup::GetGroups | ( | std::string const | name, |
NcGroup::GroupLocation | location = ChildrenGrps |
||
) | const |
Gets NcGroup objects with a given name. Method will throw an netcdf::NcNullgrp exception if the group is null (ie NcGroup::IsNull()=true).
name | Name of group. |
location | Enumeration type controlling the groups to search. |
std::string netcdf::NcGroup::GetName | ( | bool | fullName = false | ) | const |
Gets the group name.
Method will throw an netcdf::NcNullgrp exception if the group is null (ie NcGroup::IsNull()=true).
fullName | If true then the full name is returned with subgroups separated by a forward slash "/" (default is false) |
NcGroup netcdf::NcGroup::GetParentGroup | ( | ) | const |
Gets the parent group. Method will throw an netcdf::NcNullgrp exception if the group is null (ie NcGroup::IsNull()=true). If the current root is the parent group, then return a null group.
NcType netcdf::NcGroup::GetType | ( | std::string const & | name, |
NcGroup::Location | location = Current |
||
) | const |
Gets the NcType object with a given name.
name | Name of type. For atomic types, the CDL name is expected. This is consistent with the string returned from NcType::GetName(). |
location | Enumeration type controlling the groups to search. |
int netcdf::NcGroup::GetTypeCount | ( | NcGroup::Location | location = Current | ) | const |
Gets the number of type objects.
location | Enumeration type controlling the groups to search. |
int netcdf::NcGroup::GetTypeCount | ( | NcType::ncType | enumType, |
NcGroup::Location | location = Current |
||
) | const |
Gets the number of type objects with a given enumeration type.
enumType | The enumeration value of the object type. |
location | Enumeration type controlling the groups to search. |
NcGroup::NcTypeMap netcdf::NcGroup::GetTypes | ( | NcGroup::Location | location = Current | ) | const |
NcGroup::NcTypeSet netcdf::NcGroup::GetTypes | ( | std::string const & | name, |
NcGroup::Location | location = Current |
||
) | const |
Gets the collection of NcType objects with a given name.
name | Name of type. For atomic types, the CDL name is expected. This is consistent with the string returned from NcType::GetName(). |
location | Enumeration type controlling the groups to search. |
NcGroup::NcTypeSet netcdf::NcGroup::GetTypes | ( | NcType::ncType | enumType, |
NcGroup::Location | location = Current |
||
) | const |
Gets the collection of NcType objects with a given data type.
enumType | Enumeration type specifying the data type. |
location | Enumeration type controlling the groups to search. |
NcGroup::NcTypeSet netcdf::NcGroup::GetTypes | ( | std::string const & | name, |
NcType::ncType | enumType, | ||
NcGroup::Location | location = Current |
||
) | const |
Gets the collection of NcType objects with a given name and data type.
name | Name of type. For atomic types, the CDL name is expected. This is consistent with the string returned from NcType::GetName(). |
enumType | Enumeration type specifying the data type. |
location | Enumeration type controlling the groups to search. |
NcVar netcdf::NcGroup::GetVar | ( | std::string const | name, |
NcGroup::Location | location = Current |
||
) | const |
Gets the named NcVar object..
name | Variable name. |
location | Enumeration type controlling the groups to search. |
int netcdf::NcGroup::GetVarCount | ( | NcGroup::Location | location = Current | ) | const |
Gets the number of NcVar objects in this group.
location | Enumeration type controlling the groups to search. |
NcGroup::NcVarMap netcdf::NcGroup::GetVars | ( | NcGroup::Location | location = Current | ) | const |
NcGroup::NcVarSet netcdf::NcGroup::GetVars | ( | std::string const | name, |
NcGroup::Location | location = Current |
||
) | const |
bool netcdf::NcGroup::HaveAttribute | ( | std::string const | name, |
NcGroup::Location const | location = Current |
||
) | const |
Checks if the attribute of the given name exists.
name | Name of attribute |
location | Enumeration type controlling the groups to search. |
bool netcdf::NcGroup::HaveVariable | ( | std::string const | name, |
NcGroup::Location const | location = Current |
||
) | const |
Checks if the variable of the given name exists.
name | Name of variable |
location | Enumeration type controlling the groups to search. |
bool netcdf::NcGroup::IsRootGroup | ( | ) | const |
Returns true if this is the root group, otherwise returns false.
bool netcdf::NcGroup::operator< | ( | NcGroup const & | rhs | ) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const unsigned char * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const signed char * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
char const | aChar | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
short | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const short * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
unsigned short | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const unsigned short * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
int | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const int * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
long | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const long * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
unsigned int | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const unsigned int * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
float | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const float * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
double | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const double * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
long long | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const long long * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
unsigned long long | datumValue | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const unsigned long long * | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
size_t | len, | ||
const char ** | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
std::string const & | dataValues | ||
) | const |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
std::vector< std::string > const & | strVec | ||
) |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | std::string const | name, |
NcType const & | type, | ||
size_t | len, | ||
const void * | dataValues | ||
) | const |
Creates a NetCDF group 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.
name | Name of attribute. |
type | The attribute type. |
len | The length of the attribute (number of Nctype repeats). |
dataValues | Data 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.) |
NcGroupAtt netcdf::NcGroup::PutAtt | ( | NcGroupAtt const & | att | ) |
Adds an attribute containing a vector of data.
name | Name of attribute. |
data | A vector of data for this attribute. |
Adds a NetCDF group attribute by copying an existing attribute object.
att | An attribute object from a different group or netCDF file. |
|
inlineprotectedvirtual |
Implements netcdf::NcItem.