xarray 2025.1.0__tar.gz → 2025.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xarray-2025.1.0 → xarray-2025.1.1}/.pre-commit-config.yaml +3 -3
- {xarray-2025.1.0/xarray.egg-info → xarray-2025.1.1}/PKG-INFO +2 -2
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/api.rst +11 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/whats-new.rst +22 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/__init__.py +2 -1
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/api.py +44 -12
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/zarr.py +10 -11
- xarray-2025.1.1/xarray/coders.py +10 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/coding/times.py +12 -3
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/conventions.py +44 -11
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/convert.py +2 -1
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_backends.py +41 -41
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_coding_times.py +43 -16
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_conventions.py +3 -1
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_dataarray.py +1 -1
- {xarray-2025.1.0 → xarray-2025.1.1/xarray.egg-info}/PKG-INFO +2 -2
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray.egg-info/SOURCES.txt +1 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.binder/environment.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.codecov.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.git-blame-ignore-revs +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.git_archival.txt +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.gitattributes +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/FUNDING.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/config.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/dependabot.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/release.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/stale.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/benchmarks-last-release.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/benchmarks.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/ci-additional.yaml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/ci.yaml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/configure-testpypi-version.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/hypothesis.yaml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/nightly-wheels.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/publish-test-results.yaml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/pypi-release.yaml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.github/workflows/upstream-dev-ci.yaml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.gitignore +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/.readthedocs.yaml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/CITATION.cff +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/CODE_OF_CONDUCT.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/CONTRIBUTING.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/CORE_TEAM_GUIDE.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/DATATREE_MIGRATION_GUIDE.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/HOW_TO_RELEASE.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/README.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/asv.conf.json +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/README_CI.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/accessors.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/alignment.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/coding.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/combine.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/dataarray_missing.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/dataset.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/dataset_io.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/datatree.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/groupby.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/import.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/indexing.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/interp.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/merge.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/pandas.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/polyfit.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/reindexing.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/renaming.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/repr.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/rolling.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/asv_bench/benchmarks/unstacking.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/install-upstream-wheels.sh +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/minimum_versions.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/release_contributors.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/all-but-dask.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/all-but-numba.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/bare-minimum.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/doc.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/environment-3.13.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/environment-windows-3.13.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/environment-windows.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/environment.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/ci/requirements/min-all-deps.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/conftest.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/design_notes/flexible_indexes_notes.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/design_notes/grouper_objects.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/design_notes/named_array_design_doc.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/Makefile +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/README.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/.gitignore +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/advanced_selection_interpolation.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/ci.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/dask-array.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/dataset-diagram.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/index_api.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/index_contribute.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/index_getting_started.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/index_user_guide.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/numfocus_logo.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/opendap-prism-tmax.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/style.css +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/thumbnails/monthly-means.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/thumbnails/toy-weather-data.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/thumbnails/visualization_gallery.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_static/view-docs.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_templates/autosummary/accessor.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_templates/autosummary/accessor_callable.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/_templates/autosummary/accessor_method.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/api-hidden.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/combined.json +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/conf.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/contributing.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/developers-meeting.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/ecosystem.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/ROMS_ocean_model.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/_code/accessor_example.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/area_weighted_temperature.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/blank_template.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/monthly-means.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/monthly_means_output.png +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/multidimensional-coords.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/visualization_gallery.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/examples/weather-data.ipynb +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/gallery/README.txt +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/gallery/plot_colorbar_center.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/gallery/plot_control_colorbar.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/gallery/plot_lines_from_2d.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/gallery.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/gallery.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/getting-started-guide/faq.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/getting-started-guide/index.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/getting-started-guide/installing.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/getting-started-guide/quick-overview.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/getting-started-guide/why-xarray.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/help-diagram.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/howdoi.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/index.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/chunked-arrays.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/duck-arrays-integration.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/extending-xarray.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/how-to-add-new-backend.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/how-to-create-custom-index.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/index.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/internal-design.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/interoperability.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/internals/zarr-encoding-spec.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/roadmap.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/tutorials-and-videos.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/combining.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/computation.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/dask.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/data-structures.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/duckarrays.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/groupby.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/hierarchical-data.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/index.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/indexing.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/interpolation.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/io.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/options.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/pandas.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/plotting.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/reshaping.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/terminology.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/testing.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/time-series.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/user-guide/weather-climate.rst +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/doc/videos.yml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/licenses/ANYTREE_LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/licenses/DASK_LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/licenses/ICOMOON_LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/licenses/NUMPY_LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/licenses/PANDAS_LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/licenses/PYTHON_LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/licenses/SCIKIT_LEARN_LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/licenses/SEABORN_LICENSE +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/properties/README.md +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/properties/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/properties/conftest.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/properties/test_encode_decode.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/properties/test_index_manipulation.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/properties/test_pandas_roundtrip.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/properties/test_properties.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/pyproject.toml +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/setup.cfg +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/setup.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/common.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/file_manager.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/h5netcdf_.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/locks.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/lru_cache.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/memory.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/netCDF4_.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/netcdf3.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/plugins.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/pydap_.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/scipy_.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/backends/store.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/coding/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/coding/calendar_ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/coding/cftime_offsets.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/coding/cftimeindex.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/coding/frequencies.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/coding/strings.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/coding/variables.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/_aggregations.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/_typed_ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/accessor_dt.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/accessor_str.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/alignment.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/arithmetic.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/array_api_compat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/combine.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/common.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/computation.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/concat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/coordinates.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/dask_array_compat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/dask_array_ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/dataarray.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/dataset.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/datatree.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/datatree_io.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/datatree_mapping.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/datatree_render.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/dtypes.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/duck_array_ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/extension_array.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/extensions.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/formatting.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/formatting_html.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/groupby.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/indexes.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/indexing.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/merge.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/missing.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/nanops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/npcompat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/nputils.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/options.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/parallel.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/pdcompat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/resample.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/resample_cftime.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/rolling.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/rolling_exp.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/treenode.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/types.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/utils.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/variable.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/core/weighted.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/groupers.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/indexes/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/_aggregations.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/_array_api.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/_typing.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/core.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/daskmanager.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/dtypes.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/parallelcompat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/pycompat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/namedarray/utils.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/plot/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/plot/accessor.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/plot/dataarray_plot.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/plot/dataset_plot.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/plot/facetgrid.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/plot/utils.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/py.typed +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/static/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/static/css/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/static/css/style.css +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/static/html/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/static/html/icons-svg-inline.html +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/testing/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/testing/assertions.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/testing/strategies.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/arrays.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/conftest.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/data/bears.nc +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/data/example.grib +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/data/example.ict +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/data/example.uamiv +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/data/example_1.nc +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/data/example_1.nc.gz +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_accessor_dt.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_accessor_str.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_array_api.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_assertions.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_backends_api.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_backends_common.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_backends_datatree.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_backends_file_manager.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_backends_locks.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_backends_lru_cache.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_calendar_ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_cftime_offsets.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_cftimeindex.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_cftimeindex_resample.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_coarsen.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_coding.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_coding_strings.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_combine.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_computation.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_concat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_coordinates.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_cupy.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_dask.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_dataset.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_datatree.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_datatree_mapping.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_deprecation_helpers.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_distributed.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_dtypes.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_duck_array_ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_duck_array_wrapping.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_error_messages.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_extensions.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_formatting.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_formatting_html.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_groupby.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_hashable.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_indexes.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_indexing.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_interp.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_merge.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_missing.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_namedarray.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_nputils.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_options.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_parallelcompat.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_plot.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_plugins.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_print_versions.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_rolling.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_sparse.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_strategies.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_treenode.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_tutorial.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_typed_ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_ufuncs.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_units.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_utils.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_variable.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tests/test_weighted.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/tutorial.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/ufuncs.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/util/__init__.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/util/deprecation_helpers.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/util/generate_aggregations.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/util/generate_ops.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray/util/print_versions.py +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray.egg-info/dependency_links.txt +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray.egg-info/entry_points.txt +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray.egg-info/requires.txt +0 -0
- {xarray-2025.1.0 → xarray-2025.1.1}/xarray.egg-info/top_level.txt +0 -0
|
@@ -25,7 +25,7 @@ repos:
|
|
|
25
25
|
- id: text-unicode-replacement-char
|
|
26
26
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
27
27
|
# Ruff version.
|
|
28
|
-
rev: v0.8.
|
|
28
|
+
rev: v0.8.6
|
|
29
29
|
hooks:
|
|
30
30
|
- id: ruff-format
|
|
31
31
|
- id: ruff
|
|
@@ -37,12 +37,12 @@ repos:
|
|
|
37
37
|
exclude: "generate_aggregations.py"
|
|
38
38
|
additional_dependencies: ["black==24.8.0"]
|
|
39
39
|
- repo: https://github.com/rbubley/mirrors-prettier
|
|
40
|
-
rev: v3.4.
|
|
40
|
+
rev: v3.4.2
|
|
41
41
|
hooks:
|
|
42
42
|
- id: prettier
|
|
43
43
|
args: [--cache-location=.prettier_cache/cache]
|
|
44
44
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
45
|
-
rev: v1.
|
|
45
|
+
rev: v1.14.1
|
|
46
46
|
hooks:
|
|
47
47
|
- id: mypy
|
|
48
48
|
# Copied from setup.cfg
|
|
@@ -1096,6 +1096,17 @@ DataTree methods
|
|
|
1096
1096
|
.. Missing:
|
|
1097
1097
|
.. ``open_mfdatatree``
|
|
1098
1098
|
|
|
1099
|
+
Encoding/Decoding
|
|
1100
|
+
=================
|
|
1101
|
+
|
|
1102
|
+
Coder objects
|
|
1103
|
+
-------------
|
|
1104
|
+
|
|
1105
|
+
.. autosummary::
|
|
1106
|
+
:toctree: generated/
|
|
1107
|
+
|
|
1108
|
+
coders.CFDatetimeCoder
|
|
1109
|
+
|
|
1099
1110
|
Coordinates objects
|
|
1100
1111
|
===================
|
|
1101
1112
|
|
|
@@ -14,6 +14,27 @@ What's New
|
|
|
14
14
|
|
|
15
15
|
np.random.seed(123456)
|
|
16
16
|
|
|
17
|
+
|
|
18
|
+
.. _whats-new.2025.01.1:
|
|
19
|
+
|
|
20
|
+
v2025.01.1 (Jan 9, 2025)
|
|
21
|
+
------------------------
|
|
22
|
+
|
|
23
|
+
This is a quick release to bring compatibility with the Zarr V3 release. It also includes an update to the time decoding
|
|
24
|
+
infrastructure as a step toward `enabling non-nanosecond datetime support <https://github.com/pydata/xarray/pull/9618>`_!
|
|
25
|
+
|
|
26
|
+
New Features
|
|
27
|
+
~~~~~~~~~~~~
|
|
28
|
+
- Split out :py:class:`coders.CFDatetimeCoder` as public API in ``xr.coders``, make ``decode_times`` keyword argument
|
|
29
|
+
consume :py:class:`coders.CFDatetimeCoder` (:pull:`9901`).
|
|
30
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
31
|
+
|
|
32
|
+
Deprecations
|
|
33
|
+
~~~~~~~~~~~~
|
|
34
|
+
- Time decoding related kwarg ``use_cftime`` is deprecated. Use keyword argument
|
|
35
|
+
``decode_times=CFDatetimeCoder(use_cftime=True)`` in :py:func:`~xarray.open_dataset`, :py:func:`~xarray.open_dataarray`, :py:func:`~xarray.open_datatree`, :py:func:`~xarray.open_groups`, :py:func:`~xarray.open_zarr` and :py:func:`~xarray.decode_cf` instead (:pull:`9901`).
|
|
36
|
+
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
37
|
+
|
|
17
38
|
.. _whats-new.2025.01.0:
|
|
18
39
|
|
|
19
40
|
v.2025.01.0 (Jan 3, 2025)
|
|
@@ -39,6 +60,7 @@ New Features
|
|
|
39
60
|
iso8601-parser (:pull:`9885`).
|
|
40
61
|
By `Kai Mühlbauer <https://github.com/kmuehlbauer>`_.
|
|
41
62
|
|
|
63
|
+
|
|
42
64
|
Breaking changes
|
|
43
65
|
~~~~~~~~~~~~~~~~
|
|
44
66
|
- Methods including ``dropna``, ``rank``, ``idxmax``, ``idxmin`` require
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from importlib.metadata import version as _version
|
|
2
2
|
|
|
3
|
-
from xarray import groupers, testing, tutorial, ufuncs
|
|
3
|
+
from xarray import coders, groupers, testing, tutorial, ufuncs
|
|
4
4
|
from xarray.backends.api import (
|
|
5
5
|
load_dataarray,
|
|
6
6
|
load_dataset,
|
|
@@ -66,6 +66,7 @@ except Exception:
|
|
|
66
66
|
# `mypy --strict` running in projects that import xarray.
|
|
67
67
|
__all__ = ( # noqa: RUF022
|
|
68
68
|
# Sub-packages
|
|
69
|
+
"coders",
|
|
69
70
|
"groupers",
|
|
70
71
|
"testing",
|
|
71
72
|
"tutorial",
|
|
@@ -33,6 +33,7 @@ from xarray.backends.common import (
|
|
|
33
33
|
_normalize_path,
|
|
34
34
|
)
|
|
35
35
|
from xarray.backends.locks import _get_scheduler
|
|
36
|
+
from xarray.coders import CFDatetimeCoder
|
|
36
37
|
from xarray.core import indexing
|
|
37
38
|
from xarray.core.combine import (
|
|
38
39
|
_infer_concat_order_from_positions,
|
|
@@ -481,7 +482,10 @@ def open_dataset(
|
|
|
481
482
|
cache: bool | None = None,
|
|
482
483
|
decode_cf: bool | None = None,
|
|
483
484
|
mask_and_scale: bool | Mapping[str, bool] | None = None,
|
|
484
|
-
decode_times: bool
|
|
485
|
+
decode_times: bool
|
|
486
|
+
| CFDatetimeCoder
|
|
487
|
+
| Mapping[str, bool | CFDatetimeCoder]
|
|
488
|
+
| None = None,
|
|
485
489
|
decode_timedelta: bool | Mapping[str, bool] | None = None,
|
|
486
490
|
use_cftime: bool | Mapping[str, bool] | None = None,
|
|
487
491
|
concat_characters: bool | Mapping[str, bool] | None = None,
|
|
@@ -543,9 +547,10 @@ def open_dataset(
|
|
|
543
547
|
be replaced by NA. Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
544
548
|
to toggle this feature per-variable individually.
|
|
545
549
|
This keyword may not be supported by all the backends.
|
|
546
|
-
decode_times : bool or dict-like, optional
|
|
550
|
+
decode_times : bool, CFDatetimeCoder or dict-like, optional
|
|
547
551
|
If True, decode times encoded in the standard NetCDF datetime format
|
|
548
|
-
into datetime objects. Otherwise,
|
|
552
|
+
into datetime objects. Otherwise, use :py:class:`coders.CFDatetimeCoder` or leave them
|
|
553
|
+
encoded as numbers.
|
|
549
554
|
Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
550
555
|
to toggle this feature per-variable individually.
|
|
551
556
|
This keyword may not be supported by all the backends.
|
|
@@ -569,6 +574,10 @@ def open_dataset(
|
|
|
569
574
|
raise an error. Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
570
575
|
to toggle this feature per-variable individually.
|
|
571
576
|
This keyword may not be supported by all the backends.
|
|
577
|
+
|
|
578
|
+
.. deprecated:: 2025.01.1
|
|
579
|
+
Please pass a :py:class:`coders.CFDatetimeCoder` instance initialized with ``use_cftime`` to the ``decode_times`` kwarg instead.
|
|
580
|
+
|
|
572
581
|
concat_characters : bool or dict-like, optional
|
|
573
582
|
If True, concatenate along the last dimension of character arrays to
|
|
574
583
|
form string arrays. Dimensions will only be concatenated over (and
|
|
@@ -698,7 +707,10 @@ def open_dataarray(
|
|
|
698
707
|
cache: bool | None = None,
|
|
699
708
|
decode_cf: bool | None = None,
|
|
700
709
|
mask_and_scale: bool | None = None,
|
|
701
|
-
decode_times: bool
|
|
710
|
+
decode_times: bool
|
|
711
|
+
| CFDatetimeCoder
|
|
712
|
+
| Mapping[str, bool | CFDatetimeCoder]
|
|
713
|
+
| None = None,
|
|
702
714
|
decode_timedelta: bool | None = None,
|
|
703
715
|
use_cftime: bool | None = None,
|
|
704
716
|
concat_characters: bool | None = None,
|
|
@@ -761,9 +773,11 @@ def open_dataarray(
|
|
|
761
773
|
`missing_value` attribute contains multiple values a warning will be
|
|
762
774
|
issued and all array values matching one of the multiple values will
|
|
763
775
|
be replaced by NA. This keyword may not be supported by all the backends.
|
|
764
|
-
decode_times : bool, optional
|
|
776
|
+
decode_times : bool, CFDatetimeCoder or dict-like, optional
|
|
765
777
|
If True, decode times encoded in the standard NetCDF datetime format
|
|
766
|
-
into datetime objects. Otherwise, leave them encoded as numbers.
|
|
778
|
+
into datetime objects. Otherwise, use :py:class:`coders.CFDatetimeCoder` or leave them encoded as numbers.
|
|
779
|
+
Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
780
|
+
to toggle this feature per-variable individually.
|
|
767
781
|
This keyword may not be supported by all the backends.
|
|
768
782
|
decode_timedelta : bool, optional
|
|
769
783
|
If True, decode variables and coordinates with time units in
|
|
@@ -781,6 +795,10 @@ def open_dataarray(
|
|
|
781
795
|
represented using ``np.datetime64[ns]`` objects. If False, always
|
|
782
796
|
decode times to ``np.datetime64[ns]`` objects; if this is not possible
|
|
783
797
|
raise an error. This keyword may not be supported by all the backends.
|
|
798
|
+
|
|
799
|
+
.. deprecated:: 2025.01.1
|
|
800
|
+
Please pass a :py:class:`coders.CFDatetimeCoder` instance initialized with ``use_cftime`` to the ``decode_times`` kwarg instead.
|
|
801
|
+
|
|
784
802
|
concat_characters : bool, optional
|
|
785
803
|
If True, concatenate along the last dimension of character arrays to
|
|
786
804
|
form string arrays. Dimensions will only be concatenated over (and
|
|
@@ -903,7 +921,10 @@ def open_datatree(
|
|
|
903
921
|
cache: bool | None = None,
|
|
904
922
|
decode_cf: bool | None = None,
|
|
905
923
|
mask_and_scale: bool | Mapping[str, bool] | None = None,
|
|
906
|
-
decode_times: bool
|
|
924
|
+
decode_times: bool
|
|
925
|
+
| CFDatetimeCoder
|
|
926
|
+
| Mapping[str, bool | CFDatetimeCoder]
|
|
927
|
+
| None = None,
|
|
907
928
|
decode_timedelta: bool | Mapping[str, bool] | None = None,
|
|
908
929
|
use_cftime: bool | Mapping[str, bool] | None = None,
|
|
909
930
|
concat_characters: bool | Mapping[str, bool] | None = None,
|
|
@@ -961,9 +982,9 @@ def open_datatree(
|
|
|
961
982
|
be replaced by NA. Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
962
983
|
to toggle this feature per-variable individually.
|
|
963
984
|
This keyword may not be supported by all the backends.
|
|
964
|
-
decode_times : bool or dict-like, optional
|
|
985
|
+
decode_times : bool, CFDatetimeCoder or dict-like, optional
|
|
965
986
|
If True, decode times encoded in the standard NetCDF datetime format
|
|
966
|
-
into datetime objects. Otherwise, leave them encoded as numbers.
|
|
987
|
+
into datetime objects. Otherwise, use :py:class:`coders.CFDatetimeCoder` or leave them encoded as numbers.
|
|
967
988
|
Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
968
989
|
to toggle this feature per-variable individually.
|
|
969
990
|
This keyword may not be supported by all the backends.
|
|
@@ -987,6 +1008,10 @@ def open_datatree(
|
|
|
987
1008
|
raise an error. Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
988
1009
|
to toggle this feature per-variable individually.
|
|
989
1010
|
This keyword may not be supported by all the backends.
|
|
1011
|
+
|
|
1012
|
+
.. deprecated:: 2025.01.1
|
|
1013
|
+
Please pass a :py:class:`coders.CFDatetimeCoder` instance initialized with ``use_cftime`` to the ``decode_times`` kwarg instead.
|
|
1014
|
+
|
|
990
1015
|
concat_characters : bool or dict-like, optional
|
|
991
1016
|
If True, concatenate along the last dimension of character arrays to
|
|
992
1017
|
form string arrays. Dimensions will only be concatenated over (and
|
|
@@ -1118,7 +1143,10 @@ def open_groups(
|
|
|
1118
1143
|
cache: bool | None = None,
|
|
1119
1144
|
decode_cf: bool | None = None,
|
|
1120
1145
|
mask_and_scale: bool | Mapping[str, bool] | None = None,
|
|
1121
|
-
decode_times: bool
|
|
1146
|
+
decode_times: bool
|
|
1147
|
+
| CFDatetimeCoder
|
|
1148
|
+
| Mapping[str, bool | CFDatetimeCoder]
|
|
1149
|
+
| None = None,
|
|
1122
1150
|
decode_timedelta: bool | Mapping[str, bool] | None = None,
|
|
1123
1151
|
use_cftime: bool | Mapping[str, bool] | None = None,
|
|
1124
1152
|
concat_characters: bool | Mapping[str, bool] | None = None,
|
|
@@ -1180,9 +1208,9 @@ def open_groups(
|
|
|
1180
1208
|
be replaced by NA. Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
1181
1209
|
to toggle this feature per-variable individually.
|
|
1182
1210
|
This keyword may not be supported by all the backends.
|
|
1183
|
-
decode_times : bool or dict-like, optional
|
|
1211
|
+
decode_times : bool, CFDatetimeCoder or dict-like, optional
|
|
1184
1212
|
If True, decode times encoded in the standard NetCDF datetime format
|
|
1185
|
-
into datetime objects. Otherwise, leave them encoded as numbers.
|
|
1213
|
+
into datetime objects. Otherwise, use :py:class:`coders.CFDatetimeCoder` or leave them encoded as numbers.
|
|
1186
1214
|
Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
1187
1215
|
to toggle this feature per-variable individually.
|
|
1188
1216
|
This keyword may not be supported by all the backends.
|
|
@@ -1206,6 +1234,10 @@ def open_groups(
|
|
|
1206
1234
|
raise an error. Pass a mapping, e.g. ``{"my_variable": False}``,
|
|
1207
1235
|
to toggle this feature per-variable individually.
|
|
1208
1236
|
This keyword may not be supported by all the backends.
|
|
1237
|
+
|
|
1238
|
+
.. deprecated:: 2025.01.1
|
|
1239
|
+
Please pass a :py:class:`coders.CFDatetimeCoder` instance initialized with ``use_cftime`` to the ``decode_times`` kwarg instead.
|
|
1240
|
+
|
|
1209
1241
|
concat_characters : bool or dict-like, optional
|
|
1210
1242
|
If True, concatenate along the last dimension of character arrays to
|
|
1211
1243
|
form string arrays. Dimensions will only be concatenated over (and
|
|
@@ -447,10 +447,11 @@ def extract_zarr_variable_encoding(
|
|
|
447
447
|
|
|
448
448
|
safe_to_drop = {"source", "original_shape", "preferred_chunks"}
|
|
449
449
|
valid_encodings = {
|
|
450
|
-
"codecs",
|
|
451
450
|
"chunks",
|
|
452
|
-
"compressor",
|
|
451
|
+
"compressor", # TODO: delete when min zarr >=3
|
|
452
|
+
"compressors",
|
|
453
453
|
"filters",
|
|
454
|
+
"serializer",
|
|
454
455
|
"cache_metadata",
|
|
455
456
|
"write_empty_chunks",
|
|
456
457
|
}
|
|
@@ -480,6 +481,8 @@ def extract_zarr_variable_encoding(
|
|
|
480
481
|
mode=mode,
|
|
481
482
|
shape=shape,
|
|
482
483
|
)
|
|
484
|
+
if _zarr_v3() and chunks is None:
|
|
485
|
+
chunks = "auto"
|
|
483
486
|
encoding["chunks"] = chunks
|
|
484
487
|
return encoding
|
|
485
488
|
|
|
@@ -816,24 +819,20 @@ class ZarrStore(AbstractWritableDataStore):
|
|
|
816
819
|
)
|
|
817
820
|
attributes = dict(attributes)
|
|
818
821
|
|
|
819
|
-
# TODO: this should not be needed once
|
|
820
|
-
# https://github.com/zarr-developers/zarr-python/issues/1269 is resolved.
|
|
821
|
-
attributes.pop("filters", None)
|
|
822
|
-
|
|
823
822
|
encoding = {
|
|
824
823
|
"chunks": zarr_array.chunks,
|
|
825
824
|
"preferred_chunks": dict(zip(dimensions, zarr_array.chunks, strict=True)),
|
|
826
825
|
}
|
|
827
826
|
|
|
828
|
-
if _zarr_v3()
|
|
829
|
-
encoding["codecs"] = [x.to_dict() for x in zarr_array.metadata.codecs]
|
|
830
|
-
elif _zarr_v3():
|
|
827
|
+
if _zarr_v3():
|
|
831
828
|
encoding.update(
|
|
832
829
|
{
|
|
833
|
-
"
|
|
834
|
-
"filters": zarr_array.
|
|
830
|
+
"compressors": zarr_array.compressors,
|
|
831
|
+
"filters": zarr_array.filters,
|
|
835
832
|
}
|
|
836
833
|
)
|
|
834
|
+
if self.zarr_group.metadata.zarr_format == 3:
|
|
835
|
+
encoding.update({"serializer": zarr_array.serializer})
|
|
837
836
|
else:
|
|
838
837
|
encoding.update(
|
|
839
838
|
{
|
|
@@ -286,7 +286,10 @@ def _unpack_time_unit_and_ref_date(
|
|
|
286
286
|
|
|
287
287
|
|
|
288
288
|
def _decode_cf_datetime_dtype(
|
|
289
|
-
data,
|
|
289
|
+
data,
|
|
290
|
+
units: str,
|
|
291
|
+
calendar: str | None,
|
|
292
|
+
use_cftime: bool | None,
|
|
290
293
|
) -> np.dtype:
|
|
291
294
|
# Verify that at least the first and last date can be decoded
|
|
292
295
|
# successfully. Otherwise, tracebacks end up swallowed by
|
|
@@ -421,7 +424,10 @@ def _decode_datetime_with_pandas(
|
|
|
421
424
|
|
|
422
425
|
|
|
423
426
|
def decode_cf_datetime(
|
|
424
|
-
num_dates,
|
|
427
|
+
num_dates,
|
|
428
|
+
units: str,
|
|
429
|
+
calendar: str | None = None,
|
|
430
|
+
use_cftime: bool | None = None,
|
|
425
431
|
) -> np.ndarray:
|
|
426
432
|
"""Given an array of numeric dates in netCDF format, convert it into a
|
|
427
433
|
numpy array of date time objects.
|
|
@@ -1093,7 +1099,10 @@ def _lazily_encode_cf_timedelta(
|
|
|
1093
1099
|
|
|
1094
1100
|
|
|
1095
1101
|
class CFDatetimeCoder(VariableCoder):
|
|
1096
|
-
def __init__(
|
|
1102
|
+
def __init__(
|
|
1103
|
+
self,
|
|
1104
|
+
use_cftime: bool | None = None,
|
|
1105
|
+
) -> None:
|
|
1097
1106
|
self.use_cftime = use_cftime
|
|
1098
1107
|
|
|
1099
1108
|
def encode(self, variable: Variable, name: T_Name = None) -> Variable:
|
|
@@ -7,6 +7,7 @@ from typing import TYPE_CHECKING, Any, Literal, TypeVar, Union
|
|
|
7
7
|
|
|
8
8
|
import numpy as np
|
|
9
9
|
|
|
10
|
+
from xarray.coders import CFDatetimeCoder
|
|
10
11
|
from xarray.coding import strings, times, variables
|
|
11
12
|
from xarray.coding.variables import SerializationWarning, pop_to
|
|
12
13
|
from xarray.core import indexing
|
|
@@ -88,7 +89,7 @@ def encode_cf_variable(
|
|
|
88
89
|
ensure_not_multiindex(var, name=name)
|
|
89
90
|
|
|
90
91
|
for coder in [
|
|
91
|
-
|
|
92
|
+
CFDatetimeCoder(),
|
|
92
93
|
times.CFTimedeltaCoder(),
|
|
93
94
|
variables.CFScaleOffsetCoder(),
|
|
94
95
|
variables.CFMaskCoder(),
|
|
@@ -109,7 +110,7 @@ def decode_cf_variable(
|
|
|
109
110
|
var: Variable,
|
|
110
111
|
concat_characters: bool = True,
|
|
111
112
|
mask_and_scale: bool = True,
|
|
112
|
-
decode_times: bool = True,
|
|
113
|
+
decode_times: bool | CFDatetimeCoder = True,
|
|
113
114
|
decode_endianness: bool = True,
|
|
114
115
|
stack_char_dim: bool = True,
|
|
115
116
|
use_cftime: bool | None = None,
|
|
@@ -136,7 +137,7 @@ def decode_cf_variable(
|
|
|
136
137
|
Lazily scale (using scale_factor and add_offset) and mask
|
|
137
138
|
(using _FillValue). If the _Unsigned attribute is present
|
|
138
139
|
treat integer arrays as unsigned.
|
|
139
|
-
decode_times : bool
|
|
140
|
+
decode_times : bool or CFDatetimeCoder
|
|
140
141
|
Decode cf times ("hours since 2000-01-01") to np.datetime64.
|
|
141
142
|
decode_endianness : bool
|
|
142
143
|
Decode arrays from non-native to native endianness.
|
|
@@ -155,6 +156,9 @@ def decode_cf_variable(
|
|
|
155
156
|
decode times to ``np.datetime64[ns]`` objects; if this is not possible
|
|
156
157
|
raise an error.
|
|
157
158
|
|
|
159
|
+
.. deprecated:: 2025.01.1
|
|
160
|
+
Please pass a :py:class:`coders.CFDatetimeCoder` instance initialized with ``use_cftime`` to the ``decode_times`` kwarg instead.
|
|
161
|
+
|
|
158
162
|
Returns
|
|
159
163
|
-------
|
|
160
164
|
out : Variable
|
|
@@ -167,7 +171,7 @@ def decode_cf_variable(
|
|
|
167
171
|
original_dtype = var.dtype
|
|
168
172
|
|
|
169
173
|
if decode_timedelta is None:
|
|
170
|
-
decode_timedelta = decode_times
|
|
174
|
+
decode_timedelta = True if decode_times else False
|
|
171
175
|
|
|
172
176
|
if concat_characters:
|
|
173
177
|
if stack_char_dim:
|
|
@@ -191,7 +195,31 @@ def decode_cf_variable(
|
|
|
191
195
|
if decode_timedelta:
|
|
192
196
|
var = times.CFTimedeltaCoder().decode(var, name=name)
|
|
193
197
|
if decode_times:
|
|
194
|
-
|
|
198
|
+
# remove checks after end of deprecation cycle
|
|
199
|
+
if not isinstance(decode_times, CFDatetimeCoder):
|
|
200
|
+
if use_cftime is not None:
|
|
201
|
+
emit_user_level_warning(
|
|
202
|
+
"Usage of 'use_cftime' as a kwarg is deprecated. "
|
|
203
|
+
"Please pass a 'CFDatetimeCoder' instance initialized "
|
|
204
|
+
"with 'use_cftime' to the 'decode_times' kwarg instead.\n"
|
|
205
|
+
"Example usage:\n"
|
|
206
|
+
" time_coder = xr.coders.CFDatetimeCoder(use_cftime=True)\n"
|
|
207
|
+
" ds = xr.open_dataset(decode_times=time_coder)\n",
|
|
208
|
+
DeprecationWarning,
|
|
209
|
+
)
|
|
210
|
+
decode_times = CFDatetimeCoder(use_cftime=use_cftime)
|
|
211
|
+
else:
|
|
212
|
+
if use_cftime is not None:
|
|
213
|
+
raise TypeError(
|
|
214
|
+
"Usage of 'use_cftime' as a kwarg is not allowed "
|
|
215
|
+
"if a 'CFDatetimeCoder' instance is passed to "
|
|
216
|
+
"'decode_times'. Please set 'use_cftime' "
|
|
217
|
+
"when initializing 'CFDatetimeCoder' instead.\n"
|
|
218
|
+
"Example usage:\n"
|
|
219
|
+
" time_coder = xr.coders.CFDatetimeCoder(use_cftime=True)\n"
|
|
220
|
+
" ds = xr.open_dataset(decode_times=time_coder)\n",
|
|
221
|
+
)
|
|
222
|
+
var = decode_times.decode(var, name=name)
|
|
195
223
|
|
|
196
224
|
if decode_endianness and not var.dtype.isnative:
|
|
197
225
|
var = variables.EndianCoder().decode(var)
|
|
@@ -288,9 +316,10 @@ def _update_bounds_encoding(variables: T_Variables) -> None:
|
|
|
288
316
|
|
|
289
317
|
|
|
290
318
|
T = TypeVar("T")
|
|
319
|
+
U = TypeVar("U")
|
|
291
320
|
|
|
292
321
|
|
|
293
|
-
def _item_or_default(obj: Mapping[Any, T] | T, key: Hashable, default: T) -> T:
|
|
322
|
+
def _item_or_default(obj: Mapping[Any, T | U] | T, key: Hashable, default: T) -> T | U:
|
|
294
323
|
"""
|
|
295
324
|
Return item by key if obj is mapping and key is present, else return default value.
|
|
296
325
|
"""
|
|
@@ -302,7 +331,7 @@ def decode_cf_variables(
|
|
|
302
331
|
attributes: T_Attrs,
|
|
303
332
|
concat_characters: bool | Mapping[str, bool] = True,
|
|
304
333
|
mask_and_scale: bool | Mapping[str, bool] = True,
|
|
305
|
-
decode_times: bool | Mapping[str, bool] = True,
|
|
334
|
+
decode_times: bool | CFDatetimeCoder | Mapping[str, bool | CFDatetimeCoder] = True,
|
|
306
335
|
decode_coords: bool | Literal["coordinates", "all"] = True,
|
|
307
336
|
drop_variables: T_DropVariables = None,
|
|
308
337
|
use_cftime: bool | Mapping[str, bool] | None = None,
|
|
@@ -439,7 +468,7 @@ def decode_cf(
|
|
|
439
468
|
obj: T_DatasetOrAbstractstore,
|
|
440
469
|
concat_characters: bool = True,
|
|
441
470
|
mask_and_scale: bool = True,
|
|
442
|
-
decode_times: bool = True,
|
|
471
|
+
decode_times: bool | CFDatetimeCoder | Mapping[str, bool | CFDatetimeCoder] = True,
|
|
443
472
|
decode_coords: bool | Literal["coordinates", "all"] = True,
|
|
444
473
|
drop_variables: T_DropVariables = None,
|
|
445
474
|
use_cftime: bool | None = None,
|
|
@@ -458,7 +487,7 @@ def decode_cf(
|
|
|
458
487
|
mask_and_scale : bool, optional
|
|
459
488
|
Lazily scale (using scale_factor and add_offset) and mask
|
|
460
489
|
(using _FillValue).
|
|
461
|
-
decode_times : bool, optional
|
|
490
|
+
decode_times : bool | CFDatetimeCoder | Mapping[str, bool | CFDatetimeCoder], optional
|
|
462
491
|
Decode cf times (e.g., integers since "hours since 2000-01-01") to
|
|
463
492
|
np.datetime64.
|
|
464
493
|
decode_coords : bool or {"coordinates", "all"}, optional
|
|
@@ -483,6 +512,10 @@ def decode_cf(
|
|
|
483
512
|
represented using ``np.datetime64[ns]`` objects. If False, always
|
|
484
513
|
decode times to ``np.datetime64[ns]`` objects; if this is not possible
|
|
485
514
|
raise an error.
|
|
515
|
+
|
|
516
|
+
.. deprecated:: 2025.01.1
|
|
517
|
+
Please pass a :py:class:`coders.CFDatetimeCoder` instance initialized with ``use_cftime`` to the ``decode_times`` kwarg instead.
|
|
518
|
+
|
|
486
519
|
decode_timedelta : bool, optional
|
|
487
520
|
If True, decode variables and coordinates with time units in
|
|
488
521
|
{"days", "hours", "minutes", "seconds", "milliseconds", "microseconds"}
|
|
@@ -536,7 +569,7 @@ def cf_decoder(
|
|
|
536
569
|
attributes: T_Attrs,
|
|
537
570
|
concat_characters: bool = True,
|
|
538
571
|
mask_and_scale: bool = True,
|
|
539
|
-
decode_times: bool = True,
|
|
572
|
+
decode_times: bool | CFDatetimeCoder | Mapping[str, bool | CFDatetimeCoder] = True,
|
|
540
573
|
) -> tuple[T_Variables, T_Attrs]:
|
|
541
574
|
"""
|
|
542
575
|
Decode a set of CF encoded variables and attributes.
|
|
@@ -553,7 +586,7 @@ def cf_decoder(
|
|
|
553
586
|
mask_and_scale : bool
|
|
554
587
|
Lazily scale (using scale_factor and add_offset) and mask
|
|
555
588
|
(using _FillValue).
|
|
556
|
-
decode_times : bool
|
|
589
|
+
decode_times : bool | CFDatetimeCoder | Mapping[str, bool | CFDatetimeCoder]
|
|
557
590
|
Decode cf times ("hours since 2000-01-01") to np.datetime64.
|
|
558
591
|
|
|
559
592
|
Returns
|
|
@@ -4,7 +4,8 @@ from collections import Counter
|
|
|
4
4
|
|
|
5
5
|
import numpy as np
|
|
6
6
|
|
|
7
|
-
from xarray.
|
|
7
|
+
from xarray.coders import CFDatetimeCoder
|
|
8
|
+
from xarray.coding.times import CFTimedeltaCoder
|
|
8
9
|
from xarray.conventions import decode_cf
|
|
9
10
|
from xarray.core import duck_array_ops
|
|
10
11
|
from xarray.core.dataarray import DataArray
|