51 groupId = grp.
getId();
52 varId = ncVar.
getId();
54 char attName[NC_MAX_NAME+1];
55 ncCheck(nc_inq_attname(groupId,varId, index, attName),__FILE__,__LINE__);
56 ncCheck(nc_inq_attname(groupId,varId,index,attName),__FILE__,__LINE__);
63 ncCheck(nc_inq_atttype(groupId, varId, name, xtypep),__FILE__,__LINE__);
69 return NcVar(groupId,varId);
Abstract base class represents inherited by ncVarAtt and ncGroupAtt.
NcAtt & operator=(const NcAtt &rhs)
assignment operator
Class represents a netCDF group.
int getId() const
Gets the group id.
Class represents a netCDF attribute local to a netCDF variable.
NcVarAtt()
Constructor generates a null object.
void inq_atttype(const char *name, nc_type *xtypep)
Query a variable attribute type.
NcVar getParentVar() const
Returns the NcVar parent object.
Class represents a netCDF variable.
int getId() const
Get the variable id.
void ncCheck(int retCode, const char *file, int line)
Function checks error code and if necessary throws an exception.