| Contents | Index |
[storage,chunkSizes] = netcdf.inqVarChunking(ncid,varid)
[storage,chunkSizes] = netcdf.inqVarChunking(ncid,varid) returns the type of chunking and the dimensions of a chunk for the NetCDF variable specified by varid, in the file or group specified by ncid.
ncid |
Identifier of NetCDF file, returned by netcdf.create or netcdf.open, or of a NetCDF group, returned by netcdf.defGrp. |
varid |
Identifier of NetCDF variable, returned by netcdf.defVar. |
This example opens the NetCDF sample dataset and gets the values of chunking parameters associated with a variable.
ncid = netcdf.open('example.nc','NOWRITE');
groupid = netcdf.inqNcid(ncid,'grid1');
varid = netcdf.inqVarID(groupid,'temp');
[storage,chunkSize] = netcdf.inqVarChunking(groupid,varid);
netcdf.close(ncid);This function corresponds to the nc_inq_var_chunking function in the netCDF library C API.
For copyright information, read the netcdfcopyright.txt and mexnccopyright.txt files.
netcdf | netcdf.defVar | netcdf.defVarChunking
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |