Next: , Previous: NF90_DEF_VAR_CHUNKING, Up: Variables


6.5 Learn About Chunking Parameters for a Variable: NF90_INQ_VAR_CHUNKING

The function NF90_INQ_VAR_CHUNKING returns the chunking settings for a variable in a netCDF-4 file.

Usage

       function nf90_inq_var_chunking(ncid, varid, storage, chunksizes)
         integer, intent(in) :: ncid
         integer, intent(in) :: varid
         integer, intent(out) :: storage
         integer, dimension(:), intent(out) :: chunksizes
         integer :: nf90_inq_var_chunking
NCID
NetCDF ID, from a previous call to NF90_OPEN or NF90_CREATE.
VARID
Variable ID.
STORAGE
On return, set to NF90_CONTIGUOUS if this variable uses contiguous storage, NF90_CHUNKED if it uses chunked storage.
CHUNKSIZES
An array of chunk sizes. The array must have the one element for each dimension in the variable.

Errors

NF90_INQ_VAR_CHUNKING returns the value NF90_NOERR if no errors occurred. Otherwise, the returned status indicates an error.

Possible return codes include:

NF90_NOERR
No error.
NF90_BADID
Bad ncid.
NF90_ENOTNC4
Not a netCDF-4 file.
NF90_ENOTVAR
Can't find this variable.

Example