Next: NF90_INQ_VAR_CHUNKING, Previous: NF90_DEF_VAR, Up: Variables
NF90_DEF_VAR_CHUNKINGThe function NF90_DEF_VAR_CHUNKING sets the chunking parameters for a variable in a netCDF-4 file. It can set the chunk sizes to get chunked storage, or it can set the contiguous flag to get contiguous storage.
The total size of a chunk must be less than 4 GiB. That is, the product of all chunksizes and the size of the data (or the size of nc_vlen_t for VLEN types) must be less than 4 GiB.
This function may only be called after the variable is defined, but before nf90_enddef is called. Once the chunking parameters are set for a variable, they cannot be changed.
function nf90_def_var_chunking(ncid, varid, storage, chunksizes)
integer, intent(in) :: ncid
integer, intent(in) :: varid
integer, intent(in) :: storage
integer, dimension(:), intent(in) :: chunksizes
integer :: nf90_def_var_chunking
ncidvaridstorageIf NF90_CHUNKED, then chunked storage is used for this variable.
Chunk sizes may be specified with the chunksizes parameter.
Default sizes will be used if chunking is required and this function
is not called.
chunksizesNF90_DEF_VAR_CHUNKING returns the value NF90_NOERR if no errors occurred. Otherwise, the returned status indicates an error.
Possible return codes include:
NF90_NOERRNF90_BADIDNF90_ENOTNC4NF90_ENOTVARNF90_ELATEDEFNF90_ENOTINDEFINENF90_ESTRICTNC3