Determine values of fill parameters for NetCDF variable
[noFillMode,fillValue] = netcdf.inqVarFill(ncid,varid)
[noFillMode,fillValue] = netcdf.inqVarFill(ncid,varid)
returns
the fill mode and the fill value for the variable varid
in
the NetCDF-4 file or group specified by ncid
.
|
Identifier of a NetCDF-4 file, returned by |
|
Identifier of NetCDF variable. |
|
Boolean value. |
|
Specifies the value to use in the variable when no other value is specified and use of fill values has been enabled. |
This example opens the NetCDF sample dataset and gets the fill mode and fill value used with a variable.
ncid = netcdf.open('example.nc','NOWRITE'); varid = netcdf.inqVarID(ncid,'temperature'); [noFillMode,fillValue] = netcdf.inqVarFill(ncid,varid); netcdf.close(ncid);
This function corresponds to the nc_inq_var_fill
function
in the netCDF library C API.
For copyright information, read the netcdfcopyright.txt
and mexnccopyright.txt
files.