Determine compression settings for NetCDF variable
[shuffle,deflate,deflateLevel] = netcdf.inqVarDeflate(ncid,varid)
[shuffle,deflate,deflateLevel] = netcdf.inqVarDeflate(ncid,varid)
returns
the compression parameters for the NetCDF variable specified by varid
in
the location specified by ncid
.
|
Identifier of a NetCDF file, returned by |
|
Identifier of NetCDF variable, returned by |
|
Boolean value. |
|
Boolean value. |
|
Scalar value between |
This example opens the NetCDF sample file and gets information about variable compression.
ncid = netcdf.open('example.nc','NOWRITE'); groupid = netcdf.inqNcid(ncid,'grid1'); varid = netcdf.inqVarID(groupid,'temp'); [shuffle,deflate,deflateLevel] = netcdf.inqVarDeflate(groupid,varid); netcdf.close(ncid);
This function corresponds to the nc_inq_var_deflate
function
in the netCDF library C API.
For copyright information, read the netcdfcopyright.txt
and mexnccopyright.txt
files.