Skip to content

Commit

Permalink
update docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
dcherian committed Oct 21, 2024
1 parent be79e88 commit ff0f2c0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -4342,6 +4342,14 @@ def to_zarr(
* ``dask.delayed.Delayed`` if compute is False
* ZarrStore otherwise
Notes
-----
There exists a subtlety in interpreting zarr's ``fill_value`` property. For zarr v2 format
arrays, ``fill_value`` is *always* interpreted as an invalid value similar to the ``_FillValue`` attribute
in CF/netCDF. For Zarr v3 format arrays, only an explicit ``_FillValue`` attribute will be used
to mask the data if requested using ``mask_and_scale=True``. See this :ref:`Github issue <https://github.com/pydata/xarray/issues/5475>`_
for more.
References
----------
https://zarr.readthedocs.io/
Expand Down
8 changes: 8 additions & 0 deletions xarray/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2561,6 +2561,14 @@ def to_zarr(
* ``dask.delayed.Delayed`` if compute is False
* ZarrStore otherwise
Notes
-----
There exists a subtlety in interpreting zarr's ``fill_value`` property. For zarr v2 format
arrays, ``fill_value`` is *always* interpreted as an invalid value similar to the ``_FillValue`` attribute
in CF/netCDF. For Zarr v3 format arrays, only an explicit ``_FillValue`` attribute will be used
to mask the data if requested using ``mask_and_scale=True``. See this :ref:`Github issue <https://github.com/pydata/xarray/issues/5475>`_
for more.
References
----------
https://zarr.readthedocs.io/
Expand Down

0 comments on commit ff0f2c0

Please sign in to comment.