xarray 2025.4.0__tar.gz → 2025.6.0__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.4.0 → xarray-2025.6.0}/.github/workflows/ci-additional.yaml +4 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/ci.yaml +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/upstream-dev-ci.yaml +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/.gitignore +0 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/.pre-commit-config.yaml +2 -2
- xarray-2025.6.0/CONTRIBUTING.md +1 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/CORE_TEAM_GUIDE.md +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/HOW_TO_RELEASE.md +1 -1
- {xarray-2025.4.0/xarray.egg-info → xarray-2025.6.0}/PKG-INFO +3 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/README.md +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/indexing.py +38 -12
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/environment.yml +1 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/design_notes/named_array_design_doc.md +2 -2
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/style.css +8 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/api-hidden.rst +1 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/api.rst +3 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/conf.py +11 -9
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/contribute/contributing.rst +9 -10
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/ROMS_ocean_model.ipynb +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/get-help/faq.rst +5 -5
- xarray-2025.6.0/doc/get-help/help-diagram.rst +104 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/get-help/howdoi.rst +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/duck-arrays-integration.rst +8 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/extending-xarray.rst +9 -5
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/how-to-add-new-backend.rst +45 -20
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/internal-design.rst +10 -10
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/time-coding.rst +64 -49
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/zarr-encoding-spec.rst +58 -7
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/combining.rst +48 -33
- xarray-2025.6.0/doc/user-guide/complex-numbers.rst +128 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/computation.rst +121 -75
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/dask.rst +68 -69
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/data-structures.rst +104 -59
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/duckarrays.rst +20 -12
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/ecosystem.rst +3 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/groupby.rst +38 -21
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/hierarchical-data.rst +131 -106
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/index.rst +2 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/indexing.rst +130 -59
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/interpolation.rst +46 -26
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/io.rst +164 -149
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/pandas.rst +27 -17
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/plotting.rst +136 -272
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/reshaping.rst +73 -40
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/terminology.rst +16 -13
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/testing.rst +39 -20
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/time-series.rst +145 -49
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/weather-climate.rst +53 -22
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/whats-new.rst +257 -145
- xarray-2025.6.0/properties/test_properties.py +63 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/pyproject.toml +23 -14
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/__init__.py +2 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/api.py +12 -6
- xarray-2025.6.0/xarray/backends/chunks.py +273 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/common.py +7 -5
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/h5netcdf_.py +10 -11
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/locks.py +1 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/netcdf3.py +4 -5
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/zarr.py +62 -92
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/cftime_offsets.py +16 -20
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/frequencies.py +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/times.py +200 -82
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/variables.py +11 -1
- xarray-2025.6.0/xarray/compat/toolzcompat.py +56 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/apply_ufunc.py +20 -24
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/computation.py +4 -6
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/ops.py +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/rolling.py +16 -13
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/conventions.py +31 -29
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/convert.py +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/accessor_dt.py +2 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/accessor_str.py +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/common.py +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/coordinate_transform.py +27 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/coordinates.py +60 -19
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/dataarray.py +25 -26
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/dataset.py +117 -100
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/datatree_render.py +6 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/duck_array_ops.py +39 -16
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/extension_array.py +32 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/formatting.py +12 -5
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/groupby.py +24 -13
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/indexes.py +118 -25
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/indexing.py +10 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/missing.py +5 -6
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/parallel.py +8 -6
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/resample_cftime.py +22 -23
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/treenode.py +11 -13
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/types.py +4 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/utils.py +5 -5
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/variable.py +29 -24
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/groupers.py +395 -13
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/indexes/range_index.py +4 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/_typing.py +1 -2
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/dtypes.py +4 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/plot/facetgrid.py +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/plot/utils.py +17 -18
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/static/css/style.css +92 -19
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/structure/alignment.py +155 -83
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/structure/chunks.py +3 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/structure/concat.py +15 -8
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/structure/merge.py +11 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/testing/assertions.py +4 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/__init__.py +12 -1
- xarray-2025.6.0/xarray/tests/indexes.py +73 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_accessor_dt.py +4 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_accessor_str.py +8 -8
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_backends.py +111 -30
- xarray-2025.6.0/xarray/tests/test_backends_chunks.py +114 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_backends_datatree.py +2 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_cftime_offsets.py +10 -12
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_coding_times.py +216 -26
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_combine.py +2 -2
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_computation.py +21 -7
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_concat.py +65 -15
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_coordinate_transform.py +3 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_dask.py +14 -6
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_dataarray.py +57 -9
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_dataset.py +121 -53
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_datatree.py +1 -1
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_distributed.py +22 -18
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_duck_array_ops.py +28 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_formatting_html.py +2 -2
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_groupby.py +326 -8
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_interp.py +2 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_merge.py +20 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_missing.py +28 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_plot.py +4 -8
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_rolling.py +14 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_sparse.py +6 -7
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_ufuncs.py +13 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_units.py +2 -3
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_variable.py +68 -0
- xarray-2025.6.0/xarray/typing.py +23 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/util/generate_aggregations.py +9 -2
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/util/print_versions.py +2 -3
- {xarray-2025.4.0 → xarray-2025.6.0/xarray.egg-info}/PKG-INFO +3 -4
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray.egg-info/SOURCES.txt +6 -0
- xarray-2025.4.0/CONTRIBUTING.md +0 -1
- xarray-2025.4.0/doc/get-help/help-diagram.rst +0 -90
- xarray-2025.4.0/properties/test_properties.py +0 -17
- {xarray-2025.4.0 → xarray-2025.6.0}/.binder/environment.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.codecov.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.git-blame-ignore-revs +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.git_archival.txt +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.gitattributes +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/FUNDING.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/config.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/dependabot.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/labeler.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/release.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/stale.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/benchmarks-last-release.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/benchmarks.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/configure-testpypi-version.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/hypothesis.yaml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/label-prs.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/nightly-wheels.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/publish-test-results.yaml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.github/workflows/pypi-release.yaml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/.readthedocs.yaml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/CITATION.cff +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/CODE_OF_CONDUCT.md +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/DATATREE_MIGRATION_GUIDE.md +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/asv.conf.json +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/README_CI.md +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/accessors.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/alignment.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/coding.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/combine.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/dataarray_missing.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/dataset.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/dataset_io.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/datatree.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/groupby.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/import.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/interp.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/merge.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/pandas.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/polyfit.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/reindexing.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/renaming.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/repr.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/rolling.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/asv_bench/benchmarks/unstacking.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/install-upstream-wheels.sh +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/minimum_versions.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/release_contributors.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/all-but-dask.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/all-but-numba.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/bare-minimum.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/doc.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/environment-3.14.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/environment-windows-3.14.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/environment-windows.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/ci/requirements/min-all-deps.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/conftest.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/design_notes/flexible_indexes_notes.md +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/design_notes/grouper_objects.md +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/Makefile +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/README.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/.gitignore +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/advanced_selection_interpolation.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/ci.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/dask-array.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/dataset-diagram.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/index_api.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/index_contribute.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/index_getting_started.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/index_user_guide.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/numfocus_logo.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/opendap-prism-tmax.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/thumbnails/monthly-means.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/thumbnails/toy-weather-data.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/thumbnails/visualization_gallery.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_static/view-docs.png +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_templates/autosummary/accessor.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_templates/autosummary/accessor_callable.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/_templates/autosummary/accessor_method.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/combined.json +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/contribute/developers-meeting.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/contribute/index.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/_code/accessor_example.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/area_weighted_temperature.ipynb +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/blank_template.ipynb +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/monthly-means.ipynb +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/multidimensional-coords.ipynb +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/visualization_gallery.ipynb +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/examples/weather-data.ipynb +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/gallery/README.txt +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/gallery/plot_colorbar_center.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/gallery/plot_control_colorbar.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/gallery/plot_lines_from_2d.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/gallery.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/gallery.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/get-help/socials.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/getting-started-guide/index.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/getting-started-guide/installing.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/getting-started-guide/quick-overview.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/getting-started-guide/tutorials-and-videos.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/getting-started-guide/why-xarray.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/index.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/chunked-arrays.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/how-to-create-custom-index.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/index.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/internals/interoperability.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/roadmap.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/user-guide/options.rst +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/doc/videos.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/licenses/ANYTREE_LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/licenses/DASK_LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/licenses/ICOMOON_LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/licenses/NUMPY_LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/licenses/PANDAS_LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/licenses/PYTHON_LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/licenses/SCIKIT_LEARN_LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/licenses/SEABORN_LICENSE +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/properties/README.md +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/properties/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/properties/conftest.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/properties/test_encode_decode.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/properties/test_index_manipulation.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/properties/test_pandas_roundtrip.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/setup.cfg +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/setup.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/file_manager.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/lru_cache.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/memory.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/netCDF4_.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/plugins.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/pydap_.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/scipy_.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/backends/store.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coders.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/calendar_ops.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/cftimeindex.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/common.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/coding/strings.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/compat/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/compat/array_api_compat.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/compat/dask_array_compat.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/compat/dask_array_ops.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/compat/npcompat.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/compat/pdcompat.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/arithmetic.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/fit.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/nanops.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/rolling_exp.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/computation/weighted.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/_aggregations.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/_typed_ops.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/dataset_utils.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/dataset_variables.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/datatree.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/datatree_io.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/datatree_mapping.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/dtypes.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/extensions.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/formatting_html.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/nputils.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/options.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/core/resample.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/indexes/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/_aggregations.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/_array_api.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/core.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/daskmanager.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/parallelcompat.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/pycompat.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/namedarray/utils.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/plot/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/plot/accessor.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/plot/dataarray_plot.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/plot/dataset_plot.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/py.typed +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/static/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/static/css/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/static/html/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/static/html/icons-svg-inline.html +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/structure/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/structure/combine.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/testing/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/testing/strategies.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/arrays.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/conftest.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/data/bears.nc +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/data/example.grib +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/data/example.ict +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/data/example.uamiv +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/data/example_1.nc +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/data/example_1.nc.gz +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/namespace.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_array_api.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_assertions.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_backends_api.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_backends_common.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_backends_file_manager.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_backends_locks.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_backends_lru_cache.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_calendar_ops.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_cftimeindex.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_cftimeindex_resample.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_coarsen.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_coding.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_coding_strings.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_conventions.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_coordinates.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_cupy.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_dataarray_typing.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_dataset_typing.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_datatree_mapping.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_datatree_typing.yml +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_deprecation_helpers.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_dtypes.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_duck_array_wrapping.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_error_messages.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_extensions.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_formatting.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_hashable.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_indexes.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_indexing.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_namedarray.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_nputils.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_options.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_pandas_to_xarray.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_parallelcompat.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_plugins.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_print_versions.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_range_index.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_strategies.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_treenode.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_tutorial.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_typed_ops.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_utils.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tests/test_weighted.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/tutorial.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/ufuncs.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/util/__init__.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/util/deprecation_helpers.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray/util/generate_ops.py +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray.egg-info/dependency_links.txt +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray.egg-info/entry_points.txt +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray.egg-info/requires.txt +0 -0
- {xarray-2025.4.0 → xarray-2025.6.0}/xarray.egg-info/top_level.txt +0 -0
|
@@ -123,7 +123,7 @@ jobs:
|
|
|
123
123
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
124
124
|
|
|
125
125
|
- name: Upload mypy coverage to Codecov
|
|
126
|
-
uses: codecov/codecov-action@v5.4.
|
|
126
|
+
uses: codecov/codecov-action@v5.4.3
|
|
127
127
|
with:
|
|
128
128
|
file: mypy_report/cobertura.xml
|
|
129
129
|
flags: mypy
|
|
@@ -174,7 +174,7 @@ jobs:
|
|
|
174
174
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
175
175
|
|
|
176
176
|
- name: Upload mypy coverage to Codecov
|
|
177
|
-
uses: codecov/codecov-action@v5.4.
|
|
177
|
+
uses: codecov/codecov-action@v5.4.3
|
|
178
178
|
with:
|
|
179
179
|
file: mypy_report/cobertura.xml
|
|
180
180
|
flags: mypy-min
|
|
@@ -230,7 +230,7 @@ jobs:
|
|
|
230
230
|
python -m pyright xarray/
|
|
231
231
|
|
|
232
232
|
- name: Upload pyright coverage to Codecov
|
|
233
|
-
uses: codecov/codecov-action@v5.4.
|
|
233
|
+
uses: codecov/codecov-action@v5.4.3
|
|
234
234
|
with:
|
|
235
235
|
file: pyright_report/cobertura.xml
|
|
236
236
|
flags: pyright
|
|
@@ -286,7 +286,7 @@ jobs:
|
|
|
286
286
|
python -m pyright xarray/
|
|
287
287
|
|
|
288
288
|
- name: Upload pyright coverage to Codecov
|
|
289
|
-
uses: codecov/codecov-action@v5.4.
|
|
289
|
+
uses: codecov/codecov-action@v5.4.3
|
|
290
290
|
with:
|
|
291
291
|
file: pyright_report/cobertura.xml
|
|
292
292
|
flags: pyright39
|
|
@@ -140,7 +140,7 @@ jobs:
|
|
|
140
140
|
run: |
|
|
141
141
|
python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
|
|
142
142
|
- name: Upload mypy coverage to Codecov
|
|
143
|
-
uses: codecov/codecov-action@v5.4.
|
|
143
|
+
uses: codecov/codecov-action@v5.4.3
|
|
144
144
|
with:
|
|
145
145
|
file: mypy_report/cobertura.xml
|
|
146
146
|
flags: mypy
|
|
@@ -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.11.
|
|
28
|
+
rev: v0.11.12
|
|
29
29
|
hooks:
|
|
30
30
|
- id: ruff-format
|
|
31
31
|
- id: ruff
|
|
@@ -42,7 +42,7 @@ repos:
|
|
|
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.16.0
|
|
46
46
|
hooks:
|
|
47
47
|
- id: mypy
|
|
48
48
|
# Copied from setup.cfg
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Xarray's contributor guidelines [can be found in our online documentation](https://docs.xarray.dev/en/stable/contribute/contributing.html)
|
|
@@ -272,7 +272,7 @@ resources such as:
|
|
|
272
272
|
- [`pre-commit`](https://pre-commit.com) hooks for autoformatting.
|
|
273
273
|
- [`ruff`](https://github.com/astral-sh/ruff) autoformatting and linting.
|
|
274
274
|
- [python-xarray](https://stackoverflow.com/questions/tagged/python-xarray) on Stack Overflow.
|
|
275
|
-
- [@xarray_dev](https://
|
|
275
|
+
- [@xarray_dev](https://x.com/xarray_dev) on X.
|
|
276
276
|
- [xarray-dev](https://discord.gg/bsSGdwBn) discord community (normally only used for remote synchronous chat during sprints).
|
|
277
277
|
|
|
278
278
|
You are not required to monitor any of the social resources.
|
|
@@ -114,7 +114,7 @@ upstream https://github.com/pydata/xarray (push)
|
|
|
114
114
|
- SHA256 hash (Click "Show Hashes" next to the link to the wheel)
|
|
115
115
|
- Open a pull request to pyodide
|
|
116
116
|
|
|
117
|
-
14. Issue the release announcement to mailing lists & Twitter. For bug fix releases, I
|
|
117
|
+
14. Issue the release announcement to mailing lists & Twitter (X). For bug fix releases, I
|
|
118
118
|
usually only email xarray@googlegroups.com. For major/feature releases, I will email a broader
|
|
119
119
|
list (no more than once every 3-6 months):
|
|
120
120
|
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xarray
|
|
3
|
-
Version: 2025.
|
|
3
|
+
Version: 2025.6.0
|
|
4
4
|
Summary: N-D labeled arrays and datasets in Python
|
|
5
5
|
Author-email: xarray Developers <xarray@googlegroups.com>
|
|
6
|
-
License: Apache-2.0
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
7
|
Project-URL: Documentation, https://docs.xarray.dev
|
|
8
8
|
Project-URL: SciPy2015-talk, https://www.youtube.com/watch?v=X0pAhJgySxk
|
|
9
9
|
Project-URL: homepage, https://xarray.dev/
|
|
10
10
|
Project-URL: issue-tracker, https://github.com/pydata/xarray/issues
|
|
11
11
|
Project-URL: source-code, https://github.com/pydata/xarray
|
|
12
12
|
Classifier: Development Status :: 5 - Production/Stable
|
|
13
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
13
|
Classifier: Operating System :: OS Independent
|
|
15
14
|
Classifier: Intended Audience :: Science/Research
|
|
16
15
|
Classifier: Programming Language :: Python
|
|
@@ -85,7 +84,7 @@ Dynamic: license-file
|
|
|
85
84
|
[](https://anaconda.org/anaconda/xarray)
|
|
86
85
|
[](https://doi.org/10.5281/zenodo.11183201)
|
|
87
86
|
[](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
|
|
88
|
-
[](https://
|
|
87
|
+
[](https://x.com/xarray_dev)
|
|
89
88
|
|
|
90
89
|
**xarray** (pronounced "ex-array", formerly known as **xray**) is an open source project and Python
|
|
91
90
|
package that makes working with labelled multi-dimensional arrays
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
[](https://anaconda.org/anaconda/xarray)
|
|
12
12
|
[](https://doi.org/10.5281/zenodo.11183201)
|
|
13
13
|
[](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
|
|
14
|
-
[](https://
|
|
14
|
+
[](https://x.com/xarray_dev)
|
|
15
15
|
|
|
16
16
|
**xarray** (pronounced "ex-array", formerly known as **xray**) is an open source project and Python
|
|
17
17
|
package that makes working with labelled multi-dimensional arrays
|
|
@@ -39,18 +39,30 @@ outer_assignment_values = {
|
|
|
39
39
|
"2d-1scalar": xr.DataArray(randn(100, frac_nan=0.1), dims=["x"]),
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"x": xr.DataArray(randint(0, nx,
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
|
|
43
|
+
def make_vectorized_indexes(n_index):
|
|
44
|
+
return {
|
|
45
|
+
"1-1d": {"x": xr.DataArray(randint(0, nx, n_index), dims="a")},
|
|
46
|
+
"2-1d": {
|
|
47
|
+
"x": xr.DataArray(randint(0, nx, n_index), dims="a"),
|
|
48
|
+
"y": xr.DataArray(randint(0, ny, n_index), dims="a"),
|
|
49
|
+
},
|
|
50
|
+
"3-2d": {
|
|
51
|
+
"x": xr.DataArray(
|
|
52
|
+
randint(0, nx, n_index).reshape(n_index // 100, 100), dims=["a", "b"]
|
|
53
|
+
),
|
|
54
|
+
"y": xr.DataArray(
|
|
55
|
+
randint(0, ny, n_index).reshape(n_index // 100, 100), dims=["a", "b"]
|
|
56
|
+
),
|
|
57
|
+
"t": xr.DataArray(
|
|
58
|
+
randint(0, nt, n_index).reshape(n_index // 100, 100), dims=["a", "b"]
|
|
59
|
+
),
|
|
60
|
+
},
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
vectorized_indexes = make_vectorized_indexes(400)
|
|
65
|
+
big_vectorized_indexes = make_vectorized_indexes(400_000)
|
|
54
66
|
|
|
55
67
|
vectorized_assignment_values = {
|
|
56
68
|
"1-1d": xr.DataArray(randn((400, ny)), dims=["a", "y"], coords={"a": randn(400)}),
|
|
@@ -101,6 +113,20 @@ class Indexing(Base):
|
|
|
101
113
|
self.ds_large.isel(**basic_indexes[key]).load()
|
|
102
114
|
|
|
103
115
|
|
|
116
|
+
class IndexingOnly(Base):
|
|
117
|
+
@parameterized(["key"], [list(basic_indexes.keys())])
|
|
118
|
+
def time_indexing_basic(self, key):
|
|
119
|
+
self.ds.isel(**basic_indexes[key])
|
|
120
|
+
|
|
121
|
+
@parameterized(["key"], [list(outer_indexes.keys())])
|
|
122
|
+
def time_indexing_outer(self, key):
|
|
123
|
+
self.ds.isel(**outer_indexes[key])
|
|
124
|
+
|
|
125
|
+
@parameterized(["key"], [list(big_vectorized_indexes.keys())])
|
|
126
|
+
def time_indexing_big_vectorized(self, key):
|
|
127
|
+
self.ds.isel(**big_vectorized_indexes[key])
|
|
128
|
+
|
|
129
|
+
|
|
104
130
|
class Assignment(Base):
|
|
105
131
|
@parameterized(["key"], [list(basic_indexes.keys())])
|
|
106
132
|
def time_assignment_basic(self, key):
|
|
@@ -167,8 +167,8 @@ We plan to publicize this document on :
|
|
|
167
167
|
|
|
168
168
|
- [x] `Xarray dev call`
|
|
169
169
|
- [ ] `Scientific Python discourse`
|
|
170
|
-
- [ ] `Xarray
|
|
171
|
-
- [ ] `Twitter`
|
|
170
|
+
- [ ] `Xarray GitHub`
|
|
171
|
+
- [ ] `Twitter (X)`
|
|
172
172
|
- [ ] `Respond to NamedTensor and Scikit-Learn issues?`
|
|
173
173
|
- [ ] `Pangeo Discourse`
|
|
174
174
|
- [ ] `Numpy, SciPy email lists?`
|
|
@@ -44,3 +44,11 @@ html[data-theme="dark"] .sd-card img[src*=".svg"] {
|
|
|
44
44
|
.bd-content .sd-card .sd-card-body {
|
|
45
45
|
background-color: unset !important;
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
/* workaround Pydata Sphinx theme using light colors for widget cell outputs in dark-mode */
|
|
49
|
+
/* works for many widgets but not for Xarray html reprs */
|
|
50
|
+
/* https://github.com/pydata/pydata-sphinx-theme/issues/2189 */
|
|
51
|
+
html[data-theme="dark"] div.cell_output .text_html:has(div.xr-wrap) {
|
|
52
|
+
background-color: var(--pst-color-on-background) !important;
|
|
53
|
+
color: var(--pst-color-text-base) !important;
|
|
54
|
+
}
|
|
@@ -1329,6 +1329,8 @@ Grouper Objects
|
|
|
1329
1329
|
groupers.BinGrouper
|
|
1330
1330
|
groupers.UniqueGrouper
|
|
1331
1331
|
groupers.TimeResampler
|
|
1332
|
+
groupers.SeasonGrouper
|
|
1333
|
+
groupers.SeasonResampler
|
|
1332
1334
|
|
|
1333
1335
|
|
|
1334
1336
|
Rolling objects
|
|
@@ -1645,6 +1647,7 @@ Exceptions
|
|
|
1645
1647
|
:toctree: generated/
|
|
1646
1648
|
|
|
1647
1649
|
AlignmentError
|
|
1650
|
+
CoordinateValidationError
|
|
1648
1651
|
MergeError
|
|
1649
1652
|
SerializationWarning
|
|
1650
1653
|
|
|
@@ -6,7 +6,7 @@ import subprocess
|
|
|
6
6
|
import sys
|
|
7
7
|
from contextlib import suppress
|
|
8
8
|
from textwrap import dedent, indent
|
|
9
|
-
|
|
9
|
+
import packaging.version
|
|
10
10
|
import sphinx_autosummary_accessors
|
|
11
11
|
import yaml
|
|
12
12
|
from sphinx.application import Sphinx
|
|
@@ -61,8 +61,6 @@ extensions = [
|
|
|
61
61
|
"sphinx.ext.extlinks",
|
|
62
62
|
"sphinx.ext.mathjax",
|
|
63
63
|
"sphinx.ext.napoleon",
|
|
64
|
-
"IPython.sphinxext.ipython_directive",
|
|
65
|
-
"IPython.sphinxext.ipython_console_highlighting",
|
|
66
64
|
"jupyter_sphinx",
|
|
67
65
|
"nbsphinx",
|
|
68
66
|
"sphinx_autosummary_accessors",
|
|
@@ -182,8 +180,10 @@ napoleon_type_aliases = {
|
|
|
182
180
|
"pd.NaT": "~pandas.NaT",
|
|
183
181
|
}
|
|
184
182
|
|
|
183
|
+
autodoc_type_aliases = napoleon_type_aliases # Keep both in sync
|
|
184
|
+
|
|
185
185
|
# mermaid config
|
|
186
|
-
mermaid_version = "
|
|
186
|
+
mermaid_version = "11.6.0"
|
|
187
187
|
|
|
188
188
|
# Add any paths that contain templates here, relative to this directory.
|
|
189
189
|
templates_path = ["_templates", sphinx_autosummary_accessors.templates_path]
|
|
@@ -199,10 +199,9 @@ language = "en"
|
|
|
199
199
|
project = "xarray"
|
|
200
200
|
copyright = f"2014-{datetime.datetime.now().year}, xarray Developers"
|
|
201
201
|
|
|
202
|
-
# The short
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
release = xarray.__version__
|
|
202
|
+
# The short Y.M.D version.
|
|
203
|
+
v = packaging.version.parse(xarray.__version__)
|
|
204
|
+
version = ".".join(str(p) for p in v.release)
|
|
206
205
|
|
|
207
206
|
# There are two options for replacing |today|: either, you set today to some
|
|
208
207
|
# non-false value, then it is used:
|
|
@@ -212,7 +211,7 @@ today_fmt = "%Y-%m-%d"
|
|
|
212
211
|
|
|
213
212
|
# List of patterns, relative to source directory, that match files and
|
|
214
213
|
# directories to ignore when looking for source files.
|
|
215
|
-
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
|
|
214
|
+
exclude_patterns = ["_build", "debug.ipynb", "**.ipynb_checkpoints"]
|
|
216
215
|
|
|
217
216
|
|
|
218
217
|
# The name of the Pygments (syntax highlighting) style to use.
|
|
@@ -311,6 +310,8 @@ rediraffe_redirects = {
|
|
|
311
310
|
"why-xarray.rst": "getting-started-guide/why-xarray.rst",
|
|
312
311
|
"installing.rst": "getting-started-guide/installing.rst",
|
|
313
312
|
"quick-overview.rst": "getting-started-guide/quick-overview.rst",
|
|
313
|
+
"contributing.rst": "contribute/contributing.rst",
|
|
314
|
+
"developers-meeting.rst": "contribute/developers-meeting.rst",
|
|
314
315
|
}
|
|
315
316
|
|
|
316
317
|
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
|
@@ -338,6 +339,7 @@ intersphinx_mapping = {
|
|
|
338
339
|
"sparse": ("https://sparse.pydata.org/en/latest/", None),
|
|
339
340
|
"xarray-tutorial": ("https://tutorial.xarray.dev/", None),
|
|
340
341
|
"zarr": ("https://zarr.readthedocs.io/en/stable/", None),
|
|
342
|
+
"xarray-lmfit": ("https://xarray-lmfit.readthedocs.io/stable", None),
|
|
341
343
|
}
|
|
342
344
|
|
|
343
345
|
# based on numpy doc/source/conf.py
|
|
@@ -387,24 +387,24 @@ Some other important things to know about the docs:
|
|
|
387
387
|
for a detailed explanation, or look at some of the existing functions to
|
|
388
388
|
extend it in a similar manner.
|
|
389
389
|
|
|
390
|
-
- The
|
|
391
|
-
<https://
|
|
392
|
-
|
|
390
|
+
- The documentation makes heavy use of the `jupyter-sphinx extension
|
|
391
|
+
<https://jupyter-sphinx.readthedocs.io>`_.
|
|
392
|
+
The ``jupyter-execute`` directive lets you put code in the documentation which will be run
|
|
393
393
|
during the doc build. For example:
|
|
394
394
|
|
|
395
395
|
.. code:: rst
|
|
396
396
|
|
|
397
|
-
..
|
|
397
|
+
.. jupyter-execute::
|
|
398
398
|
|
|
399
399
|
x = 2
|
|
400
400
|
x**3
|
|
401
401
|
|
|
402
|
-
will be rendered as
|
|
402
|
+
will be rendered as:
|
|
403
403
|
|
|
404
|
-
|
|
404
|
+
.. jupyter-execute::
|
|
405
405
|
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
x = 2
|
|
407
|
+
x**3
|
|
408
408
|
|
|
409
409
|
Almost all code examples in the docs are run (and the output saved) during the
|
|
410
410
|
doc build. This approach means that code examples will always be up to date,
|
|
@@ -549,8 +549,7 @@ Code Formatting
|
|
|
549
549
|
|
|
550
550
|
xarray uses several tools to ensure a consistent code format throughout the project:
|
|
551
551
|
|
|
552
|
-
- `ruff <https://github.com/astral-sh/ruff>`_ for formatting, code quality checks and standardized order in imports
|
|
553
|
-
- `absolufy-imports <https://github.com/MarcoGorelli/absolufy-imports>`_ for absolute instead of relative imports from different files,
|
|
552
|
+
- `ruff <https://github.com/astral-sh/ruff>`_ for formatting, code quality checks and standardized order in imports, and
|
|
554
553
|
- `mypy <https://mypy-lang.org/>`_ for static type checking on `type hints
|
|
555
554
|
<https://docs.python.org/3/library/typing.html>`_.
|
|
556
555
|
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"source": [
|
|
88
88
|
"### Add a lazilly calculated vertical coordinates\n",
|
|
89
89
|
"\n",
|
|
90
|
-
"Write equations to calculate the vertical coordinate. These will be only evaluated when data is requested. Information about the ROMS vertical coordinate can be found (
|
|
90
|
+
"Write equations to calculate the vertical coordinate. These will be only evaluated when data is requested. Information about the ROMS vertical coordinate can be found [here](https://www.myroms.org/wiki/Vertical_S-coordinate).\n",
|
|
91
91
|
"\n",
|
|
92
92
|
"In short, for `Vtransform==2` as used in this example, \n",
|
|
93
93
|
"\n",
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Frequently Asked Questions
|
|
4
4
|
==========================
|
|
5
5
|
|
|
6
|
-
..
|
|
7
|
-
:
|
|
6
|
+
.. jupyter-execute::
|
|
7
|
+
:hide-code:
|
|
8
8
|
|
|
9
9
|
import numpy as np
|
|
10
10
|
import pandas as pd
|
|
@@ -101,7 +101,7 @@ Unfortunately, this means we sometimes have to explicitly cast our results from
|
|
|
101
101
|
xarray when using them in other libraries. As an illustration, the following
|
|
102
102
|
code fragment
|
|
103
103
|
|
|
104
|
-
..
|
|
104
|
+
.. jupyter-execute::
|
|
105
105
|
|
|
106
106
|
arr = xr.DataArray([1, 2, 3])
|
|
107
107
|
pd.Series({"x": arr[0], "mean": arr.mean(), "std": arr.std()})
|
|
@@ -109,14 +109,14 @@ code fragment
|
|
|
109
109
|
does not yield the pandas DataFrame we expected. We need to specify the type
|
|
110
110
|
conversion ourselves:
|
|
111
111
|
|
|
112
|
-
..
|
|
112
|
+
.. jupyter-execute::
|
|
113
113
|
|
|
114
114
|
pd.Series({"x": arr[0], "mean": arr.mean(), "std": arr.std()}, dtype=float)
|
|
115
115
|
|
|
116
116
|
Alternatively, we could use the ``item`` method or the ``float`` constructor to
|
|
117
117
|
convert values one at a time
|
|
118
118
|
|
|
119
|
-
..
|
|
119
|
+
.. jupyter-execute::
|
|
120
120
|
|
|
121
121
|
pd.Series({"x": arr[0].item(), "mean": float(arr.mean())})
|
|
122
122
|
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
Getting Help
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
Navigating the wealth of resources available for Xarray can be overwhelming.
|
|
5
|
+
We've created this flow chart to help guide you towards the best way to get help, depending on what you're working towards.
|
|
6
|
+
|
|
7
|
+
Also be sure to check out our :ref:`faq`. and :ref:`howdoi` pages for solutions to common questions.
|
|
8
|
+
|
|
9
|
+
A major strength of Xarray is in the user community. Sometimes you might not yet have a concrete question but would simply like to connect with other Xarray users. We have a few accounts on different social platforms for that! :ref:`socials`.
|
|
10
|
+
|
|
11
|
+
We look forward to hearing from you!
|
|
12
|
+
|
|
13
|
+
Help Flowchart
|
|
14
|
+
--------------
|
|
15
|
+
..
|
|
16
|
+
_comment: mermaid Flowcharg "link" text gets secondary color background, SVG icon fill gets primary color
|
|
17
|
+
|
|
18
|
+
.. raw:: html
|
|
19
|
+
|
|
20
|
+
<style>
|
|
21
|
+
/* Ensure PST link colors don't override mermaid text colors */
|
|
22
|
+
.mermaid a {
|
|
23
|
+
color: white;
|
|
24
|
+
}
|
|
25
|
+
.mermaid a:hover {
|
|
26
|
+
color: magenta;
|
|
27
|
+
text-decoration-color: magenta;
|
|
28
|
+
}
|
|
29
|
+
.mermaid a:visited {
|
|
30
|
+
color: white;
|
|
31
|
+
text-decoration-color: white;
|
|
32
|
+
}
|
|
33
|
+
</style>
|
|
34
|
+
|
|
35
|
+
.. mermaid::
|
|
36
|
+
:config: {"theme":"base","themeVariables":{"fontSize":"20px","primaryColor":"#fff","primaryTextColor":"#fff","primaryBorderColor":"#59c7d6","lineColor":"#e28126","secondaryColor":"#767985"}}
|
|
37
|
+
:alt: Flowchart illustrating the different ways to access help using or contributing to Xarray.
|
|
38
|
+
|
|
39
|
+
flowchart TD
|
|
40
|
+
intro[Welcome to Xarray! How can we help?]:::quesNodefmt
|
|
41
|
+
usage([fa:fa-chalkboard-user <a href="https://tutorial.xarray.dev">Xarray Tutorial</a>
|
|
42
|
+
fab:fa-readme <a href="https://docs.xarray.dev">Xarray Docs</a>
|
|
43
|
+
fab:fa-stack-overflow <a href="https://stackoverflow.com/questions/tagged/python-xarray">Stack Exchange</a>
|
|
44
|
+
fab:fa-google <a href="https://www.google.com">Ask Google</a>
|
|
45
|
+
fa:fa-robot Ask AI ChatBot]):::ansNodefmt
|
|
46
|
+
extensions([Extension docs:
|
|
47
|
+
fab:fa-readme <a href="https://docs.dask.org">Dask</a>
|
|
48
|
+
fab:fa-readme <a href="https://corteva.github.io/rioxarray">Rioxarray</a>]):::ansNodefmt
|
|
49
|
+
help([fab:fa-github <a href="https://github.com/pydata/xarray/discussions">Xarray Discussions</a>
|
|
50
|
+
fab:fa-discord <a href="https://discord.com/invite/wEKPCt4PDu">Xarray Discord</a>
|
|
51
|
+
fa:fa-globe <a href="https://discourse.pangeo.io">Pangeo Discourse</a>]):::ansNodefmt
|
|
52
|
+
bug([Let us know:
|
|
53
|
+
fab:fa-github <a href="https://github.com/pydata/xarray/issues">Xarray Issues</a>]):::ansNodefmt
|
|
54
|
+
contrib([fa:fa-book-open <a href="https://docs.xarray.dev/en/latest/contribute">Xarray Contributor's Guide</a>]):::ansNodefmt
|
|
55
|
+
pr([fab:fa-github <a href="https://github.com/pydata/xarray/pulls">Pull Request</a>]):::ansNodefmt
|
|
56
|
+
dev([fab:fa-github Add PR Comment
|
|
57
|
+
fa:fa-users <a href="https://docs.xarray.dev/en/stable/contribute/developers-meeting.html">Attend Developer's Meeting</a> ]):::ansNodefmt
|
|
58
|
+
report[Thanks for letting us know!]:::quesNodefmt
|
|
59
|
+
merged[fa:fa-hands-clapping Thanks for contributing to Xarray!]:::quesNodefmt
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
intro -->|How do I use Xarray?| usage
|
|
63
|
+
usage -->|"With extensions (like Dask, Rioxarray, etc.)"| extensions
|
|
64
|
+
|
|
65
|
+
usage -->|I still have questions or could use some guidance | help
|
|
66
|
+
intro -->|I think I found a bug| bug
|
|
67
|
+
bug
|
|
68
|
+
contrib
|
|
69
|
+
bug -->|I just wanted to tell you| report
|
|
70
|
+
bug<-->|I'd like to fix the bug!| contrib
|
|
71
|
+
pr -->|my PR was approved| merged
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
intro -->|I wish Xarray could...| bug
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
pr <-->|my PR is quiet| dev
|
|
78
|
+
contrib -->pr
|
|
79
|
+
|
|
80
|
+
classDef quesNodefmt font-size:20pt,fill:#0e4666,stroke:#59c7d6,stroke-width:3
|
|
81
|
+
classDef ansNodefmt font-size:18pt,fill:#4a4a4a,stroke:#17afb4,stroke-width:3
|
|
82
|
+
linkStyle default font-size:16pt,stroke-width:4
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
Flowchart links
|
|
86
|
+
---------------
|
|
87
|
+
- `Xarray Tutorials <https://tutorial.xarray.dev/>`__
|
|
88
|
+
- `Xarray Docs <https://docs.xarray.dev>`__
|
|
89
|
+
- `Stack Exchange <https://stackoverflow.com/questions/tagged/python-xarray>`__
|
|
90
|
+
- `Xarray Discussions <https://github.com/pydata/xarray/discussions>`__
|
|
91
|
+
- `Xarray Discord <https://discord.com/invite/wEKPCt4PDu>`__
|
|
92
|
+
- `Xarray Office Hours <https://github.com/pydata/xarray/discussions/categories/office-hours>`__
|
|
93
|
+
- `Pangeo Discourse <https://discourse.pangeo.io/>`__
|
|
94
|
+
- `Xarray Issues <https://github.com/pydata/xarray/issues>`__
|
|
95
|
+
- :ref:`contributing`
|
|
96
|
+
- :ref:`developers-meeting`
|
|
97
|
+
|
|
98
|
+
.. toctree::
|
|
99
|
+
:maxdepth: 1
|
|
100
|
+
:hidden:
|
|
101
|
+
|
|
102
|
+
faq
|
|
103
|
+
howdoi
|
|
104
|
+
socials
|
|
@@ -69,7 +69,7 @@ How do I ...
|
|
|
69
69
|
- ``obj.dt.month`` for example where ``obj`` is a :py:class:`~xarray.DataArray` containing ``datetime64`` or ``cftime`` values. See :ref:`dt_accessor` for more.
|
|
70
70
|
* - round off time values to a specified frequency
|
|
71
71
|
- ``obj.dt.ceil``, ``obj.dt.floor``, ``obj.dt.round``. See :ref:`dt_accessor` for more.
|
|
72
|
-
* - make a mask that is ``True`` where an object contains any of the values in
|
|
72
|
+
* - make a mask that is ``True`` where an object contains any of the values in an array
|
|
73
73
|
- :py:meth:`Dataset.isin`, :py:meth:`DataArray.isin`
|
|
74
74
|
* - Index using a boolean mask
|
|
75
75
|
- :py:meth:`Dataset.query`, :py:meth:`DataArray.query`, :py:meth:`Dataset.where`, :py:meth:`DataArray.where`
|
|
@@ -70,18 +70,25 @@ To avoid duplicated information, this method must omit information about the sha
|
|
|
70
70
|
:term:`dtype`. For example, the string representation of a ``dask`` array or a
|
|
71
71
|
``sparse`` matrix would be:
|
|
72
72
|
|
|
73
|
-
..
|
|
73
|
+
.. jupyter-execute::
|
|
74
74
|
|
|
75
75
|
import dask.array as da
|
|
76
76
|
import xarray as xr
|
|
77
|
+
import numpy as np
|
|
77
78
|
import sparse
|
|
78
79
|
|
|
80
|
+
.. jupyter-execute::
|
|
81
|
+
|
|
79
82
|
a = da.linspace(0, 1, 20, chunks=2)
|
|
80
83
|
a
|
|
81
84
|
|
|
85
|
+
.. jupyter-execute::
|
|
86
|
+
|
|
82
87
|
b = np.eye(10)
|
|
83
88
|
b[[5, 7, 3, 0], [6, 8, 2, 9]] = 2
|
|
84
89
|
b = sparse.COO.from_numpy(b)
|
|
85
90
|
b
|
|
86
91
|
|
|
92
|
+
.. jupyter-execute::
|
|
93
|
+
|
|
87
94
|
xr.Dataset(dict(a=("x", a), b=(("y", "z"), b)))
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
Extending xarray using accessors
|
|
5
5
|
================================
|
|
6
6
|
|
|
7
|
-
..
|
|
8
|
-
:
|
|
7
|
+
.. jupyter-execute::
|
|
8
|
+
:hide-code:
|
|
9
9
|
|
|
10
10
|
import xarray as xr
|
|
11
|
+
import numpy as np
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
Xarray is designed as a general purpose library and hence tries to avoid
|
|
@@ -89,15 +90,18 @@ reasons:
|
|
|
89
90
|
|
|
90
91
|
Back in an interactive IPython session, we can use these properties:
|
|
91
92
|
|
|
92
|
-
..
|
|
93
|
-
:
|
|
93
|
+
.. jupyter-execute::
|
|
94
|
+
:hide-code:
|
|
94
95
|
|
|
95
96
|
exec(open("examples/_code/accessor_example.py").read())
|
|
96
97
|
|
|
97
|
-
..
|
|
98
|
+
.. jupyter-execute::
|
|
98
99
|
|
|
99
100
|
ds = xr.Dataset({"longitude": np.linspace(0, 10), "latitude": np.linspace(0, 20)})
|
|
100
101
|
ds.geo.center
|
|
102
|
+
|
|
103
|
+
.. jupyter-execute::
|
|
104
|
+
|
|
101
105
|
ds.geo.plot()
|
|
102
106
|
|
|
103
107
|
The intent here is that libraries that extend xarray could add such an accessor
|