nc_attgetΒΆ
nc_attget returns the value(s) of a netCDF attribute.
-
values = nc_attget(ncid, varid, ssName)
Return Value
values is a string, a number or a vector or -1 in case the attribute does not exists.
Parameters
-
ncid
Identifies the netCDF file.
-
varid
varid is the identification number of the variable or -1 for a global attribute.
-
ssName
ssName is the name of the attribute.
Comment
The nc_attinq_datatype function can be used to check if the specified attribute exists. nc_attinq_datatype returns -1 if the attribute does not exist.
id-628025