File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4039,7 +4039,11 @@ behavior is similar to Fortran or Matlab, but different than numpy.
40394039 value that the variable gets filled with before any data is written to it)
40404040 is replaced with this value. If fill_value is set to `False`, then
40414041 the variable is not pre-filled. The default netCDF fill values can be found
4042- in the dictionary `netCDF4.default_fillvals`.
4042+ in the dictionary `netCDF4.default_fillvals`. If not set, the netCDF default
4043+ `_FillValue` will be used but no `_FillValue` attribute will be created
4044+ (this is the default behavior of the netcdf-c library). `Variable.get_fill_value`
4045+ can be used to retrieve the fill value, even if the `_FillValue` attribute is
4046+ not set.
40434047
40444048 **`chunk_cache`**: If specified, sets the chunk cache size for this variable.
40454049 Persists as long as Dataset is open. Use `set_var_chunk_cache` to
@@ -4642,8 +4646,9 @@ return the group that this `Variable` is a member of."""
46424646 """
46434647**`get_fill_value(self)`**
46444648
4645- return the `_FillValue` associated with this `Variable` (None if data is not
4646- pre-filled)."""
4649+ return the fill value associated with this `Variable` (None if data is not
4650+ pre-filled). Works even if default fill value was used, and `_FillValue` attribute
4651+ does not exist."""
46474652 cdef int ierr, no_fill
46484653 with nogil:
46494654 ierr = nc_inq_var_fill(self ._grpid,self ._varid,& no_fill,NULL )
You can’t perform that action at this time.
0 commit comments