xarray 2024.6.0__tar.gz → 2024.7.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.
Files changed (375) hide show
  1. xarray-2024.7.0/.github/release.yml +5 -0
  2. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/ci-additional.yaml +4 -4
  3. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/ci.yaml +1 -1
  4. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/pypi-release.yaml +2 -2
  5. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/upstream-dev-ci.yaml +1 -1
  6. {xarray-2024.6.0 → xarray-2024.7.0}/.pre-commit-config.yaml +2 -2
  7. {xarray-2024.6.0 → xarray-2024.7.0}/HOW_TO_RELEASE.md +5 -6
  8. {xarray-2024.6.0/xarray.egg-info → xarray-2024.7.0}/PKG-INFO +12 -12
  9. {xarray-2024.6.0 → xarray-2024.7.0}/README.md +11 -11
  10. xarray-2024.7.0/asv_bench/benchmarks/coding.py +18 -0
  11. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataset_io.py +112 -1
  12. {xarray-2024.6.0 → xarray-2024.7.0}/ci/install-upstream-wheels.sh +2 -3
  13. xarray-2024.7.0/ci/release_contributors.py +49 -0
  14. {xarray-2024.6.0 → xarray-2024.7.0}/ci/requirements/all-but-dask.yml +1 -1
  15. {xarray-2024.6.0 → xarray-2024.7.0}/ci/requirements/doc.yml +2 -1
  16. {xarray-2024.6.0 → xarray-2024.7.0}/ci/requirements/environment-windows.yml +1 -1
  17. {xarray-2024.6.0 → xarray-2024.7.0}/ci/requirements/environment.yml +1 -1
  18. {xarray-2024.6.0 → xarray-2024.7.0}/doc/api-hidden.rst +4 -0
  19. {xarray-2024.6.0 → xarray-2024.7.0}/doc/api.rst +21 -4
  20. {xarray-2024.6.0 → xarray-2024.7.0}/doc/conf.py +10 -1
  21. {xarray-2024.6.0 → xarray-2024.7.0}/doc/getting-started-guide/faq.rst +2 -2
  22. xarray-2024.7.0/doc/help-diagram.rst +75 -0
  23. {xarray-2024.6.0 → xarray-2024.7.0}/doc/index.rst +3 -1
  24. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/how-to-add-new-backend.rst +1 -1
  25. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/computation.rst +2 -2
  26. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/dask.rst +16 -0
  27. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/groupby.rst +82 -11
  28. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/interpolation.rst +2 -2
  29. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/io.rst +166 -84
  30. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/terminology.rst +1 -1
  31. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/testing.rst +3 -2
  32. {xarray-2024.6.0 → xarray-2024.7.0}/doc/whats-new.rst +94 -1
  33. {xarray-2024.6.0 → xarray-2024.7.0}/properties/test_pandas_roundtrip.py +23 -16
  34. xarray-2024.7.0/properties/test_properties.py +17 -0
  35. {xarray-2024.6.0 → xarray-2024.7.0}/pyproject.toml +2 -7
  36. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/__init__.py +2 -1
  37. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/api.py +55 -32
  38. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/file_manager.py +2 -2
  39. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/h5netcdf_.py +14 -0
  40. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/netCDF4_.py +12 -0
  41. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/zarr.py +14 -8
  42. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/coding/calendar_ops.py +11 -1
  43. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/coding/cftime_offsets.py +83 -72
  44. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/coding/cftimeindex.py +41 -24
  45. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/coding/strings.py +3 -3
  46. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/coding/times.py +34 -29
  47. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/coding/variables.py +20 -6
  48. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/conventions.py +23 -13
  49. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/_aggregations.py +52 -104
  50. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/_typed_ops.py +67 -67
  51. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/alignment.py +3 -3
  52. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/common.py +15 -49
  53. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/computation.py +3 -46
  54. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/concat.py +27 -22
  55. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/dataarray.py +121 -99
  56. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/dataset.py +192 -83
  57. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/datatree.py +257 -237
  58. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/datatree_io.py +2 -2
  59. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/datatree_render.py +6 -5
  60. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/extension_array.py +6 -6
  61. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/formatting.py +41 -19
  62. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/formatting_html.py +1 -1
  63. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/groupby.py +69 -626
  64. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/indexes.py +41 -30
  65. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/indexing.py +10 -3
  66. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/iterators.py +10 -9
  67. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/missing.py +3 -1
  68. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/npcompat.py +21 -8
  69. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/nputils.py +1 -1
  70. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/pdcompat.py +0 -22
  71. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/resample.py +13 -52
  72. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/resample_cftime.py +18 -31
  73. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/treenode.py +9 -7
  74. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/types.py +30 -11
  75. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/utils.py +19 -26
  76. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/variable.py +5 -4
  77. xarray-2024.7.0/xarray/groupers.py +409 -0
  78. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/_typing.py +7 -4
  79. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/core.py +9 -4
  80. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/daskmanager.py +4 -4
  81. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/plot/dataset_plot.py +10 -5
  82. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/plot/facetgrid.py +2 -2
  83. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/plot/utils.py +3 -3
  84. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/static/css/style.css +1 -0
  85. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/testing/assertions.py +1 -1
  86. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/testing/strategies.py +5 -1
  87. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_assertions.py +5 -0
  88. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_backends.py +52 -6
  89. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_backends_datatree.py +37 -5
  90. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_calendar_ops.py +24 -1
  91. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_cftime_offsets.py +1 -1
  92. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_cftimeindex.py +20 -20
  93. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_cftimeindex_resample.py +20 -93
  94. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_coding_strings.py +2 -2
  95. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_coding_times.py +79 -63
  96. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_computation.py +12 -10
  97. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_concat.py +12 -8
  98. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_conventions.py +3 -3
  99. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_dask.py +11 -1
  100. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_dataarray.py +68 -54
  101. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_dataset.py +136 -30
  102. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_datatree.py +305 -14
  103. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_dtypes.py +3 -3
  104. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_duck_array_ops.py +1 -1
  105. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_formatting.py +110 -84
  106. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_groupby.py +156 -219
  107. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_indexes.py +13 -12
  108. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_missing.py +22 -31
  109. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_namedarray.py +1 -1
  110. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_plot.py +76 -19
  111. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_rolling.py +14 -8
  112. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_strategies.py +1 -1
  113. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_utils.py +5 -1
  114. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_variable.py +32 -25
  115. xarray-2024.7.0/xarray/util/__init__.py +0 -0
  116. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/util/generate_aggregations.py +2 -28
  117. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/util/generate_ops.py +13 -10
  118. {xarray-2024.6.0 → xarray-2024.7.0/xarray.egg-info}/PKG-INFO +12 -12
  119. {xarray-2024.6.0 → xarray-2024.7.0}/xarray.egg-info/SOURCES.txt +7 -0
  120. {xarray-2024.6.0 → xarray-2024.7.0}/.binder/environment.yml +0 -0
  121. {xarray-2024.6.0 → xarray-2024.7.0}/.codecov.yml +0 -0
  122. {xarray-2024.6.0 → xarray-2024.7.0}/.git-blame-ignore-revs +0 -0
  123. {xarray-2024.6.0 → xarray-2024.7.0}/.git_archival.txt +0 -0
  124. {xarray-2024.6.0 → xarray-2024.7.0}/.gitattributes +0 -0
  125. {xarray-2024.6.0 → xarray-2024.7.0}/.github/FUNDING.yml +0 -0
  126. {xarray-2024.6.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/bugreport.yml +0 -0
  127. {xarray-2024.6.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  128. {xarray-2024.6.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/misc.yml +0 -0
  129. {xarray-2024.6.0 → xarray-2024.7.0}/.github/ISSUE_TEMPLATE/newfeature.yml +0 -0
  130. {xarray-2024.6.0 → xarray-2024.7.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  131. {xarray-2024.6.0 → xarray-2024.7.0}/.github/config.yml +0 -0
  132. {xarray-2024.6.0 → xarray-2024.7.0}/.github/dependabot.yml +0 -0
  133. {xarray-2024.6.0 → xarray-2024.7.0}/.github/stale.yml +0 -0
  134. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/benchmarks-last-release.yml +0 -0
  135. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/benchmarks.yml +0 -0
  136. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/configure-testpypi-version.py +0 -0
  137. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/hypothesis.yaml +0 -0
  138. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/nightly-wheels.yml +0 -0
  139. {xarray-2024.6.0 → xarray-2024.7.0}/.github/workflows/publish-test-results.yaml +0 -0
  140. {xarray-2024.6.0 → xarray-2024.7.0}/.gitignore +0 -0
  141. {xarray-2024.6.0 → xarray-2024.7.0}/.pep8speaks.yml +0 -0
  142. {xarray-2024.6.0 → xarray-2024.7.0}/.readthedocs.yaml +0 -0
  143. {xarray-2024.6.0 → xarray-2024.7.0}/CITATION.cff +0 -0
  144. {xarray-2024.6.0 → xarray-2024.7.0}/CODE_OF_CONDUCT.md +0 -0
  145. {xarray-2024.6.0 → xarray-2024.7.0}/CONTRIBUTING.md +0 -0
  146. {xarray-2024.6.0 → xarray-2024.7.0}/CORE_TEAM_GUIDE.md +0 -0
  147. {xarray-2024.6.0 → xarray-2024.7.0}/LICENSE +0 -0
  148. {xarray-2024.6.0 → xarray-2024.7.0}/MANIFEST.in +0 -0
  149. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/asv.conf.json +0 -0
  150. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/README_CI.md +0 -0
  151. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/__init__.py +0 -0
  152. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/accessors.py +0 -0
  153. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/alignment.py +0 -0
  154. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/combine.py +0 -0
  155. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataarray_missing.py +0 -0
  156. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/dataset.py +0 -0
  157. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/groupby.py +0 -0
  158. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/import.py +0 -0
  159. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/indexing.py +0 -0
  160. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/interp.py +0 -0
  161. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/merge.py +0 -0
  162. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/pandas.py +0 -0
  163. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/polyfit.py +0 -0
  164. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/reindexing.py +0 -0
  165. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/renaming.py +0 -0
  166. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/repr.py +0 -0
  167. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/rolling.py +0 -0
  168. {xarray-2024.6.0 → xarray-2024.7.0}/asv_bench/benchmarks/unstacking.py +0 -0
  169. {xarray-2024.6.0 → xarray-2024.7.0}/ci/min_deps_check.py +0 -0
  170. {xarray-2024.6.0 → xarray-2024.7.0}/ci/requirements/bare-minimum.yml +0 -0
  171. {xarray-2024.6.0 → xarray-2024.7.0}/ci/requirements/environment-3.13.yml +0 -0
  172. {xarray-2024.6.0 → xarray-2024.7.0}/ci/requirements/environment-windows-3.13.yml +0 -0
  173. {xarray-2024.6.0 → xarray-2024.7.0}/ci/requirements/min-all-deps.yml +0 -0
  174. {xarray-2024.6.0 → xarray-2024.7.0}/conftest.py +0 -0
  175. {xarray-2024.6.0 → xarray-2024.7.0}/design_notes/flexible_indexes_notes.md +0 -0
  176. {xarray-2024.6.0 → xarray-2024.7.0}/design_notes/grouper_objects.md +0 -0
  177. {xarray-2024.6.0 → xarray-2024.7.0}/design_notes/named_array_design_doc.md +0 -0
  178. {xarray-2024.6.0 → xarray-2024.7.0}/doc/Makefile +0 -0
  179. {xarray-2024.6.0 → xarray-2024.7.0}/doc/README.rst +0 -0
  180. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/.gitignore +0 -0
  181. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/advanced_selection_interpolation.svg +0 -0
  182. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/ci.png +0 -0
  183. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/dask_array.png +0 -0
  184. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/dataset-diagram.png +0 -0
  185. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/index_api.svg +0 -0
  186. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/index_contribute.svg +0 -0
  187. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/index_getting_started.svg +0 -0
  188. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/index_user_guide.svg +0 -0
  189. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Icon_Final.png +0 -0
  190. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Icon_Final.svg +0 -0
  191. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.png +0 -0
  192. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_FullColor_InverseRGB_Final.svg +0 -0
  193. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_RGB_Final.png +0 -0
  194. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/logos/Xarray_Logo_RGB_Final.svg +0 -0
  195. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/numfocus_logo.png +0 -0
  196. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/opendap-prism-tmax.png +0 -0
  197. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/style.css +0 -0
  198. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/thumbnails/ERA5-GRIB-example.png +0 -0
  199. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/thumbnails/ROMS_ocean_model.png +0 -0
  200. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/thumbnails/area_weighted_temperature.png +0 -0
  201. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/thumbnails/monthly-means.png +0 -0
  202. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/thumbnails/multidimensional-coords.png +0 -0
  203. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/thumbnails/toy-weather-data.png +0 -0
  204. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/thumbnails/visualization_gallery.png +0 -0
  205. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_static/view-docs.png +0 -0
  206. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor.rst +0 -0
  207. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_attribute.rst +0 -0
  208. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_callable.rst +0 -0
  209. {xarray-2024.6.0 → xarray-2024.7.0}/doc/_templates/autosummary/accessor_method.rst +0 -0
  210. {xarray-2024.6.0 → xarray-2024.7.0}/doc/contributing.rst +0 -0
  211. {xarray-2024.6.0 → xarray-2024.7.0}/doc/developers-meeting.rst +0 -0
  212. {xarray-2024.6.0 → xarray-2024.7.0}/doc/ecosystem.rst +0 -0
  213. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/ERA5-GRIB-example.ipynb +0 -0
  214. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/ROMS_ocean_model.ipynb +0 -0
  215. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/_code/accessor_example.py +0 -0
  216. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/apply_ufunc_vectorize_1d.ipynb +0 -0
  217. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/area_weighted_temperature.ipynb +0 -0
  218. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/blank_template.ipynb +0 -0
  219. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/monthly-means.ipynb +0 -0
  220. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/monthly_means_output.png +0 -0
  221. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/multidimensional-coords.ipynb +0 -0
  222. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/visualization_gallery.ipynb +0 -0
  223. {xarray-2024.6.0 → xarray-2024.7.0}/doc/examples/weather-data.ipynb +0 -0
  224. {xarray-2024.6.0 → xarray-2024.7.0}/doc/gallery/README.txt +0 -0
  225. {xarray-2024.6.0 → xarray-2024.7.0}/doc/gallery/plot_cartopy_facetgrid.py +0 -0
  226. {xarray-2024.6.0 → xarray-2024.7.0}/doc/gallery/plot_colorbar_center.py +0 -0
  227. {xarray-2024.6.0 → xarray-2024.7.0}/doc/gallery/plot_control_colorbar.py +0 -0
  228. {xarray-2024.6.0 → xarray-2024.7.0}/doc/gallery/plot_lines_from_2d.py +0 -0
  229. {xarray-2024.6.0 → xarray-2024.7.0}/doc/gallery.rst +0 -0
  230. {xarray-2024.6.0 → xarray-2024.7.0}/doc/gallery.yml +0 -0
  231. {xarray-2024.6.0 → xarray-2024.7.0}/doc/getting-started-guide/index.rst +0 -0
  232. {xarray-2024.6.0 → xarray-2024.7.0}/doc/getting-started-guide/installing.rst +0 -0
  233. {xarray-2024.6.0 → xarray-2024.7.0}/doc/getting-started-guide/quick-overview.rst +0 -0
  234. {xarray-2024.6.0 → xarray-2024.7.0}/doc/getting-started-guide/why-xarray.rst +0 -0
  235. {xarray-2024.6.0 → xarray-2024.7.0}/doc/howdoi.rst +0 -0
  236. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/chunked-arrays.rst +0 -0
  237. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/duck-arrays-integration.rst +0 -0
  238. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/extending-xarray.rst +0 -0
  239. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/how-to-create-custom-index.rst +0 -0
  240. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/index.rst +0 -0
  241. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/internal-design.rst +0 -0
  242. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/interoperability.rst +0 -0
  243. {xarray-2024.6.0 → xarray-2024.7.0}/doc/internals/zarr-encoding-spec.rst +0 -0
  244. {xarray-2024.6.0 → xarray-2024.7.0}/doc/roadmap.rst +0 -0
  245. {xarray-2024.6.0 → xarray-2024.7.0}/doc/tutorials-and-videos.rst +0 -0
  246. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/combining.rst +0 -0
  247. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/data-structures.rst +0 -0
  248. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/duckarrays.rst +0 -0
  249. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/index.rst +0 -0
  250. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/indexing.rst +0 -0
  251. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/options.rst +0 -0
  252. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/pandas.rst +0 -0
  253. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/plotting.rst +0 -0
  254. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/reshaping.rst +0 -0
  255. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/time-series.rst +0 -0
  256. {xarray-2024.6.0 → xarray-2024.7.0}/doc/user-guide/weather-climate.rst +0 -0
  257. {xarray-2024.6.0 → xarray-2024.7.0}/doc/videos.yml +0 -0
  258. {xarray-2024.6.0 → xarray-2024.7.0}/licenses/ANYTREE_LICENSE +0 -0
  259. {xarray-2024.6.0 → xarray-2024.7.0}/licenses/DASK_LICENSE +0 -0
  260. {xarray-2024.6.0 → xarray-2024.7.0}/licenses/ICOMOON_LICENSE +0 -0
  261. {xarray-2024.6.0 → xarray-2024.7.0}/licenses/NUMPY_LICENSE +0 -0
  262. {xarray-2024.6.0 → xarray-2024.7.0}/licenses/PANDAS_LICENSE +0 -0
  263. {xarray-2024.6.0 → xarray-2024.7.0}/licenses/PYTHON_LICENSE +0 -0
  264. {xarray-2024.6.0 → xarray-2024.7.0}/licenses/SCIKIT_LEARN_LICENSE +0 -0
  265. {xarray-2024.6.0 → xarray-2024.7.0}/licenses/SEABORN_LICENSE +0 -0
  266. {xarray-2024.6.0 → xarray-2024.7.0}/properties/README.md +0 -0
  267. {xarray-2024.6.0/xarray/coding → xarray-2024.7.0/properties}/__init__.py +0 -0
  268. {xarray-2024.6.0 → xarray-2024.7.0}/properties/conftest.py +0 -0
  269. {xarray-2024.6.0 → xarray-2024.7.0}/properties/test_encode_decode.py +0 -0
  270. {xarray-2024.6.0 → xarray-2024.7.0}/properties/test_index_manipulation.py +0 -0
  271. {xarray-2024.6.0 → xarray-2024.7.0}/setup.cfg +0 -0
  272. {xarray-2024.6.0 → xarray-2024.7.0}/setup.py +0 -0
  273. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/__init__.py +0 -0
  274. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/common.py +0 -0
  275. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/locks.py +0 -0
  276. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/lru_cache.py +0 -0
  277. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/memory.py +0 -0
  278. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/netcdf3.py +0 -0
  279. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/plugins.py +0 -0
  280. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/pydap_.py +0 -0
  281. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/scipy_.py +0 -0
  282. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/backends/store.py +0 -0
  283. {xarray-2024.6.0/xarray/core → xarray-2024.7.0/xarray/coding}/__init__.py +0 -0
  284. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/coding/frequencies.py +0 -0
  285. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/convert.py +0 -0
  286. {xarray-2024.6.0/xarray/namedarray → xarray-2024.7.0/xarray/core}/__init__.py +0 -0
  287. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/accessor_dt.py +0 -0
  288. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/accessor_str.py +0 -0
  289. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/arithmetic.py +0 -0
  290. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/array_api_compat.py +0 -0
  291. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/combine.py +0 -0
  292. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/coordinates.py +0 -0
  293. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/dask_array_ops.py +0 -0
  294. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/datatree_mapping.py +0 -0
  295. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/datatree_ops.py +0 -0
  296. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/dtypes.py +0 -0
  297. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/duck_array_ops.py +0 -0
  298. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/extensions.py +0 -0
  299. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/merge.py +0 -0
  300. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/nanops.py +0 -0
  301. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/ops.py +0 -0
  302. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/options.py +0 -0
  303. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/parallel.py +0 -0
  304. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/rolling.py +0 -0
  305. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/rolling_exp.py +0 -0
  306. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/core/weighted.py +0 -0
  307. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/datatree_/datatree/__init__.py +0 -0
  308. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/indexes/__init__.py +0 -0
  309. {xarray-2024.6.0/xarray/static → xarray-2024.7.0/xarray/namedarray}/__init__.py +0 -0
  310. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/_aggregations.py +0 -0
  311. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/_array_api.py +0 -0
  312. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/dtypes.py +0 -0
  313. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/parallelcompat.py +0 -0
  314. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/pycompat.py +0 -0
  315. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/namedarray/utils.py +0 -0
  316. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/plot/__init__.py +0 -0
  317. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/plot/accessor.py +0 -0
  318. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/plot/dataarray_plot.py +0 -0
  319. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/py.typed +0 -0
  320. {xarray-2024.6.0/xarray/static/css → xarray-2024.7.0/xarray/static}/__init__.py +0 -0
  321. {xarray-2024.6.0/xarray/static/html → xarray-2024.7.0/xarray/static/css}/__init__.py +0 -0
  322. {xarray-2024.6.0/xarray/util → xarray-2024.7.0/xarray/static/html}/__init__.py +0 -0
  323. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/static/html/icons-svg-inline.html +0 -0
  324. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/testing/__init__.py +0 -0
  325. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/__init__.py +0 -0
  326. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/arrays.py +0 -0
  327. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/conftest.py +0 -0
  328. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/data/bears.nc +0 -0
  329. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/data/example.grib +0 -0
  330. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/data/example.ict +0 -0
  331. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/data/example.uamiv +0 -0
  332. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/data/example_1.nc +0 -0
  333. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/data/example_1.nc.gz +0 -0
  334. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_accessor_dt.py +0 -0
  335. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_accessor_str.py +0 -0
  336. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_array_api.py +0 -0
  337. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_backends_api.py +0 -0
  338. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_backends_common.py +0 -0
  339. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_backends_file_manager.py +0 -0
  340. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_backends_locks.py +0 -0
  341. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_backends_lru_cache.py +0 -0
  342. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_coarsen.py +0 -0
  343. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_coding.py +0 -0
  344. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_combine.py +0 -0
  345. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_coordinates.py +0 -0
  346. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_cupy.py +0 -0
  347. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_datatree_mapping.py +0 -0
  348. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_deprecation_helpers.py +0 -0
  349. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_distributed.py +0 -0
  350. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_error_messages.py +0 -0
  351. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_extensions.py +0 -0
  352. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_formatting_html.py +0 -0
  353. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_hashable.py +0 -0
  354. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_indexing.py +0 -0
  355. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_interp.py +0 -0
  356. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_merge.py +0 -0
  357. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_nputils.py +0 -0
  358. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_options.py +0 -0
  359. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_parallelcompat.py +0 -0
  360. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_plugins.py +0 -0
  361. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_print_versions.py +0 -0
  362. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_sparse.py +0 -0
  363. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_treenode.py +0 -0
  364. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_tutorial.py +0 -0
  365. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_typed_ops.py +0 -0
  366. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_ufuncs.py +0 -0
  367. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_units.py +0 -0
  368. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tests/test_weighted.py +0 -0
  369. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/tutorial.py +0 -0
  370. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/util/deprecation_helpers.py +0 -0
  371. {xarray-2024.6.0 → xarray-2024.7.0}/xarray/util/print_versions.py +0 -0
  372. {xarray-2024.6.0 → xarray-2024.7.0}/xarray.egg-info/dependency_links.txt +0 -0
  373. {xarray-2024.6.0 → xarray-2024.7.0}/xarray.egg-info/entry_points.txt +0 -0
  374. {xarray-2024.6.0 → xarray-2024.7.0}/xarray.egg-info/requires.txt +0 -0
  375. {xarray-2024.6.0 → xarray-2024.7.0}/xarray.egg-info/top_level.txt +0 -0
@@ -0,0 +1,5 @@
1
+ changelog:
2
+ exclude:
3
+ authors:
4
+ - dependabot
5
+ - pre-commit-ci
@@ -130,7 +130,7 @@ jobs:
130
130
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
131
131
 
132
132
  - name: Upload mypy coverage to Codecov
133
- uses: codecov/codecov-action@v4.4.1
133
+ uses: codecov/codecov-action@v4.5.0
134
134
  with:
135
135
  file: mypy_report/cobertura.xml
136
136
  flags: mypy
@@ -184,7 +184,7 @@ jobs:
184
184
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report xarray/
185
185
 
186
186
  - name: Upload mypy coverage to Codecov
187
- uses: codecov/codecov-action@v4.4.1
187
+ uses: codecov/codecov-action@v4.5.0
188
188
  with:
189
189
  file: mypy_report/cobertura.xml
190
190
  flags: mypy39
@@ -245,7 +245,7 @@ jobs:
245
245
  python -m pyright xarray/
246
246
 
247
247
  - name: Upload pyright coverage to Codecov
248
- uses: codecov/codecov-action@v4.4.1
248
+ uses: codecov/codecov-action@v4.5.0
249
249
  with:
250
250
  file: pyright_report/cobertura.xml
251
251
  flags: pyright
@@ -304,7 +304,7 @@ jobs:
304
304
  python -m pyright xarray/
305
305
 
306
306
  - name: Upload pyright coverage to Codecov
307
- uses: codecov/codecov-action@v4.4.1
307
+ uses: codecov/codecov-action@v4.5.0
308
308
  with:
309
309
  file: pyright_report/cobertura.xml
310
310
  flags: pyright39
@@ -159,7 +159,7 @@ jobs:
159
159
  path: pytest.xml
160
160
 
161
161
  - name: Upload code coverage to Codecov
162
- uses: codecov/codecov-action@v4.4.1
162
+ uses: codecov/codecov-action@v4.5.0
163
163
  with:
164
164
  file: ./coverage.xml
165
165
  flags: unittests
@@ -88,7 +88,7 @@ jobs:
88
88
  path: dist
89
89
  - name: Publish package to TestPyPI
90
90
  if: github.event_name == 'push'
91
- uses: pypa/gh-action-pypi-publish@v1.8.14
91
+ uses: pypa/gh-action-pypi-publish@v1.9.0
92
92
  with:
93
93
  repository_url: https://test.pypi.org/legacy/
94
94
  verbose: true
@@ -111,6 +111,6 @@ jobs:
111
111
  name: releases
112
112
  path: dist
113
113
  - name: Publish package to PyPI
114
- uses: pypa/gh-action-pypi-publish@v1.8.14
114
+ uses: pypa/gh-action-pypi-publish@v1.9.0
115
115
  with:
116
116
  verbose: true
@@ -146,7 +146,7 @@ jobs:
146
146
  run: |
147
147
  python -m mypy --install-types --non-interactive --cobertura-xml-report mypy_report
148
148
  - name: Upload mypy coverage to Codecov
149
- uses: codecov/codecov-action@v4.4.1
149
+ uses: codecov/codecov-action@v4.5.0
150
150
  with:
151
151
  file: mypy_report/cobertura.xml
152
152
  flags: mypy
@@ -13,7 +13,7 @@ repos:
13
13
  - id: mixed-line-ending
14
14
  - repo: https://github.com/astral-sh/ruff-pre-commit
15
15
  # Ruff version.
16
- rev: 'v0.4.7'
16
+ rev: 'v0.5.0'
17
17
  hooks:
18
18
  - id: ruff
19
19
  args: ["--fix", "--show-fixes"]
@@ -30,7 +30,7 @@ repos:
30
30
  additional_dependencies: ["black==24.4.2"]
31
31
  - id: blackdoc-autoupdate-black
32
32
  - repo: https://github.com/pre-commit/mirrors-mypy
33
- rev: v1.10.0
33
+ rev: v1.10.1
34
34
  hooks:
35
35
  - id: mypy
36
36
  # Copied from setup.cfg
@@ -23,14 +23,13 @@ upstream https://github.com/pydata/xarray (push)
23
23
  ```sh
24
24
  git fetch upstream --tags
25
25
  ```
26
- This will return a list of all the contributors since the last release:
26
+ Then run
27
27
  ```sh
28
- git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | perl -pe 's/\n/$1, /'
29
- ```
30
- This will return the total number of contributors:
31
- ```sh
32
- git log "$(git tag --sort=v:refname | tail -1).." --format=%aN | sort -u | wc -l
28
+ python ci/release_contributors.py
33
29
  ```
30
+ (needs `gitpython` and `toolz` / `cytoolz`)
31
+
32
+ and copy the output.
34
33
  3. Write a release summary: ~50 words describing the high level features. This
35
34
  will be used in the release emails, tweets, GitHub release notes, etc.
36
35
  4. Look over whats-new.rst and the docs. Make sure "What's New" is complete
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xarray
3
- Version: 2024.6.0
3
+ Version: 2024.7.0
4
4
  Summary: N-D labeled arrays and datasets in Python
5
5
  Author-email: xarray Developers <xarray@googlegroups.com>
6
6
  License: Apache-2.0
@@ -70,7 +70,7 @@ Requires-Dist: nc-time-axis; extra == "viz"
70
70
  [![Available on pypi](https://img.shields.io/pypi/v/xarray.svg)](https://pypi.python.org/pypi/xarray/)
71
71
  [![Formatted with black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
72
72
  [![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
73
- [![Mirror on zendoo](https://zenodo.org/badge/DOI/10.5281/zenodo.598201.svg)](https://doi.org/10.5281/zenodo.598201)
73
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11183201.svg)](https://doi.org/10.5281/zenodo.11183201)
74
74
  [![Examples on binder](https://img.shields.io/badge/launch-binder-579ACA.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFkAAABZCAMAAABi1XidAAAB8lBMVEX///9XmsrmZYH1olJXmsr1olJXmsrmZYH1olJXmsr1olJXmsrmZYH1olL1olJXmsr1olJXmsrmZYH1olL1olJXmsrmZYH1olJXmsr1olL1olJXmsrmZYH1olL1olJXmsrmZYH1olL1olL0nFf1olJXmsrmZYH1olJXmsq8dZb1olJXmsrmZYH1olJXmspXmspXmsr1olL1olJXmsrmZYH1olJXmsr1olL1olJXmsrmZYH1olL1olLeaIVXmsrmZYH1olL1olL1olJXmsrmZYH1olLna31Xmsr1olJXmsr1olJXmsrmZYH1olLqoVr1olJXmsr1olJXmsrmZYH1olL1olKkfaPobXvviGabgadXmsqThKuofKHmZ4Dobnr1olJXmsr1olJXmspXmsr1olJXmsrfZ4TuhWn1olL1olJXmsqBi7X1olJXmspZmslbmMhbmsdemsVfl8ZgmsNim8Jpk8F0m7R4m7F5nLB6jbh7jbiDirOEibOGnKaMhq+PnaCVg6qWg6qegKaff6WhnpKofKGtnomxeZy3noG6dZi+n3vCcpPDcpPGn3bLb4/Mb47UbIrVa4rYoGjdaIbeaIXhoWHmZYHobXvpcHjqdHXreHLroVrsfG/uhGnuh2bwj2Hxk17yl1vzmljzm1j0nlX1olL3AJXWAAAAbXRSTlMAEBAQHx8gICAuLjAwMDw9PUBAQEpQUFBXV1hgYGBkcHBwcXl8gICAgoiIkJCQlJicnJ2goKCmqK+wsLC4usDAwMjP0NDQ1NbW3Nzg4ODi5+3v8PDw8/T09PX29vb39/f5+fr7+/z8/Pz9/v7+zczCxgAABC5JREFUeAHN1ul3k0UUBvCb1CTVpmpaitAGSLSpSuKCLWpbTKNJFGlcSMAFF63iUmRccNG6gLbuxkXU66JAUef/9LSpmXnyLr3T5AO/rzl5zj137p136BISy44fKJXuGN/d19PUfYeO67Znqtf2KH33Id1psXoFdW30sPZ1sMvs2D060AHqws4FHeJojLZqnw53cmfvg+XR8mC0OEjuxrXEkX5ydeVJLVIlV0e10PXk5k7dYeHu7Cj1j+49uKg7uLU61tGLw1lq27ugQYlclHC4bgv7VQ+TAyj5Zc/UjsPvs1sd5cWryWObtvWT2EPa4rtnWW3JkpjggEpbOsPr7F7EyNewtpBIslA7p43HCsnwooXTEc3UmPmCNn5lrqTJxy6nRmcavGZVt/3Da2pD5NHvsOHJCrdc1G2r3DITpU7yic7w/7Rxnjc0kt5GC4djiv2Sz3Fb2iEZg41/ddsFDoyuYrIkmFehz0HR2thPgQqMyQYb2OtB0WxsZ3BeG3+wpRb1vzl2UYBog8FfGhttFKjtAclnZYrRo9ryG9uG/FZQU4AEg8ZE9LjGMzTmqKXPLnlWVnIlQQTvxJf8ip7VgjZjyVPrjw1te5otM7RmP7xm+sK2Gv9I8Gi++BRbEkR9EBw8zRUcKxwp73xkaLiqQb+kGduJTNHG72zcW9LoJgqQxpP3/Tj//c3yB0tqzaml05/+orHLksVO+95kX7/7qgJvnjlrfr2Ggsyx0eoy9uPzN5SPd86aXggOsEKW2Prz7du3VID3/tzs/sSRs2w7ovVHKtjrX2pd7ZMlTxAYfBAL9jiDwfLkq55Tm7ifhMlTGPyCAs7RFRhn47JnlcB9RM5T97ASuZXIcVNuUDIndpDbdsfrqsOppeXl5Y+XVKdjFCTh+zGaVuj0d9zy05PPK3QzBamxdwtTCrzyg/2Rvf2EstUjordGwa/kx9mSJLr8mLLtCW8HHGJc2R5hS219IiF6PnTusOqcMl57gm0Z8kanKMAQg0qSyuZfn7zItsbGyO9QlnxY0eCuD1XL2ys/MsrQhltE7Ug0uFOzufJFE2PxBo/YAx8XPPdDwWN0MrDRYIZF0mSMKCNHgaIVFoBbNoLJ7tEQDKxGF0kcLQimojCZopv0OkNOyWCCg9XMVAi7ARJzQdM2QUh0gmBozjc3Skg6dSBRqDGYSUOu66Zg+I2fNZs/M3/f/Grl/XnyF1Gw3VKCez0PN5IUfFLqvgUN4C0qNqYs5YhPL+aVZYDE4IpUk57oSFnJm4FyCqqOE0jhY2SMyLFoo56zyo6becOS5UVDdj7Vih0zp+tcMhwRpBeLyqtIjlJKAIZSbI8SGSF3k0pA3mR5tHuwPFoa7N7reoq2bqCsAk1HqCu5uvI1n6JuRXI+S1Mco54YmYTwcn6Aeic+kssXi8XpXC4V3t7/ADuTNKaQJdScAAAAAElFTkSuQmCC)](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
75
75
  [![Twitter](https://img.shields.io/twitter/follow/xarray_dev?style=social)](https://twitter.com/xarray_dev)
76
76
 
@@ -109,15 +109,15 @@ provide a powerful and concise interface. For example:
109
109
 
110
110
  - Apply operations over dimensions by name: `x.sum('time')`.
111
111
  - Select values by label instead of integer location:
112
- `x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
112
+ `x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
113
113
  - Mathematical operations (e.g., `x - y`) vectorize across multiple
114
- dimensions (array broadcasting) based on dimension names, not shape.
114
+ dimensions (array broadcasting) based on dimension names, not shape.
115
115
  - Flexible split-apply-combine operations with groupby:
116
- `x.groupby('time.dayofyear').mean()`.
116
+ `x.groupby('time.dayofyear').mean()`.
117
117
  - Database like alignment based on coordinate labels that smoothly
118
- handles missing values: `x, y = xr.align(x, y, join='outer')`.
118
+ handles missing values: `x, y = xr.align(x, y, join='outer')`.
119
119
  - Keep track of arbitrary metadata in the form of a Python dictionary:
120
- `x.attrs`.
120
+ `x.attrs`.
121
121
 
122
122
  ## Documentation
123
123
 
@@ -136,12 +136,12 @@ page](https://docs.xarray.dev/en/stable/contributing.html).
136
136
  ## Get in touch
137
137
 
138
138
  - Ask usage questions ("How do I?") on
139
- [GitHub Discussions](https://github.com/pydata/xarray/discussions).
139
+ [GitHub Discussions](https://github.com/pydata/xarray/discussions).
140
140
  - Report bugs, suggest features or view the source code [on
141
- GitHub](https://github.com/pydata/xarray).
141
+ GitHub](https://github.com/pydata/xarray).
142
142
  - For less well defined questions or ideas, or to announce other
143
- projects of interest to xarray users, use the [mailing
144
- list](https://groups.google.com/forum/#!forum/xarray).
143
+ projects of interest to xarray users, use the [mailing
144
+ list](https://groups.google.com/forum/#!forum/xarray).
145
145
 
146
146
  ## NumFOCUS
147
147
 
@@ -177,7 +177,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you
177
177
  may not use this file except in compliance with the License. You may
178
178
  obtain a copy of the License at
179
179
 
180
- <https://www.apache.org/licenses/LICENSE-2.0>
180
+ <https://www.apache.org/licenses/LICENSE-2.0>
181
181
 
182
182
  Unless required by applicable law or agreed to in writing, software
183
183
  distributed under the License is distributed on an "AS IS" BASIS,
@@ -7,7 +7,7 @@
7
7
  [![Available on pypi](https://img.shields.io/pypi/v/xarray.svg)](https://pypi.python.org/pypi/xarray/)
8
8
  [![Formatted with black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/python/black)
9
9
  [![Checked with mypy](http://www.mypy-lang.org/static/mypy_badge.svg)](http://mypy-lang.org/)
10
- [![Mirror on zendoo](https://zenodo.org/badge/DOI/10.5281/zenodo.598201.svg)](https://doi.org/10.5281/zenodo.598201)
10
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.11183201.svg)](https://doi.org/10.5281/zenodo.11183201)
11
11
  [![Examples on binder](https://img.shields.io/badge/launch-binder-579ACA.svg?logo=data:image/png;base64,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)](https://mybinder.org/v2/gh/pydata/xarray/main?urlpath=lab/tree/doc/examples/weather-data.ipynb)
12
12
  [![Twitter](https://img.shields.io/twitter/follow/xarray_dev?style=social)](https://twitter.com/xarray_dev)
13
13
 
@@ -46,15 +46,15 @@ provide a powerful and concise interface. For example:
46
46
 
47
47
  - Apply operations over dimensions by name: `x.sum('time')`.
48
48
  - Select values by label instead of integer location:
49
- `x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
49
+ `x.loc['2014-01-01']` or `x.sel(time='2014-01-01')`.
50
50
  - Mathematical operations (e.g., `x - y`) vectorize across multiple
51
- dimensions (array broadcasting) based on dimension names, not shape.
51
+ dimensions (array broadcasting) based on dimension names, not shape.
52
52
  - Flexible split-apply-combine operations with groupby:
53
- `x.groupby('time.dayofyear').mean()`.
53
+ `x.groupby('time.dayofyear').mean()`.
54
54
  - Database like alignment based on coordinate labels that smoothly
55
- handles missing values: `x, y = xr.align(x, y, join='outer')`.
55
+ handles missing values: `x, y = xr.align(x, y, join='outer')`.
56
56
  - Keep track of arbitrary metadata in the form of a Python dictionary:
57
- `x.attrs`.
57
+ `x.attrs`.
58
58
 
59
59
  ## Documentation
60
60
 
@@ -73,12 +73,12 @@ page](https://docs.xarray.dev/en/stable/contributing.html).
73
73
  ## Get in touch
74
74
 
75
75
  - Ask usage questions ("How do I?") on
76
- [GitHub Discussions](https://github.com/pydata/xarray/discussions).
76
+ [GitHub Discussions](https://github.com/pydata/xarray/discussions).
77
77
  - Report bugs, suggest features or view the source code [on
78
- GitHub](https://github.com/pydata/xarray).
78
+ GitHub](https://github.com/pydata/xarray).
79
79
  - For less well defined questions or ideas, or to announce other
80
- projects of interest to xarray users, use the [mailing
81
- list](https://groups.google.com/forum/#!forum/xarray).
80
+ projects of interest to xarray users, use the [mailing
81
+ list](https://groups.google.com/forum/#!forum/xarray).
82
82
 
83
83
  ## NumFOCUS
84
84
 
@@ -114,7 +114,7 @@ Licensed under the Apache License, Version 2.0 (the "License"); you
114
114
  may not use this file except in compliance with the License. You may
115
115
  obtain a copy of the License at
116
116
 
117
- <https://www.apache.org/licenses/LICENSE-2.0>
117
+ <https://www.apache.org/licenses/LICENSE-2.0>
118
118
 
119
119
  Unless required by applicable law or agreed to in writing, software
120
120
  distributed under the License is distributed on an "AS IS" BASIS,
@@ -0,0 +1,18 @@
1
+ import numpy as np
2
+
3
+ import xarray as xr
4
+
5
+ from . import parameterized
6
+
7
+
8
+ @parameterized(["calendar"], [("standard", "noleap")])
9
+ class EncodeCFDatetime:
10
+ def setup(self, calendar):
11
+ self.units = "days since 2000-01-01"
12
+ self.dtype = np.dtype("int64")
13
+ self.times = xr.date_range(
14
+ "2000", freq="D", periods=10000, calendar=calendar
15
+ ).values
16
+
17
+ def time_encode_cf_datetime(self, calendar):
18
+ xr.coding.times.encode_cf_datetime(self.times, self.units, calendar, self.dtype)
@@ -7,6 +7,8 @@ import numpy as np
7
7
  import pandas as pd
8
8
 
9
9
  import xarray as xr
10
+ from xarray.backends.api import open_datatree
11
+ from xarray.core.datatree import DataTree
10
12
 
11
13
  from . import _skip_slow, parameterized, randint, randn, requires_dask
12
14
 
@@ -16,7 +18,6 @@ try:
16
18
  except ImportError:
17
19
  pass
18
20
 
19
-
20
21
  os.environ["HDF5_USE_FILE_LOCKING"] = "FALSE"
21
22
 
22
23
  _ENGINES = tuple(xr.backends.list_engines().keys() - {"store"})
@@ -469,6 +470,116 @@ def create_delayed_write():
469
470
  return ds.to_netcdf("file.nc", engine="netcdf4", compute=False)
470
471
 
471
472
 
473
+ class IONestedDataTree:
474
+ """
475
+ A few examples that benchmark reading/writing a heavily nested netCDF datatree with
476
+ xarray
477
+ """
478
+
479
+ timeout = 300.0
480
+ repeat = 1
481
+ number = 5
482
+
483
+ def make_datatree(self, nchildren=10):
484
+ # multiple Dataset
485
+ self.ds = xr.Dataset()
486
+ self.nt = 1000
487
+ self.nx = 90
488
+ self.ny = 45
489
+ self.nchildren = nchildren
490
+
491
+ self.block_chunks = {
492
+ "time": self.nt / 4,
493
+ "lon": self.nx / 3,
494
+ "lat": self.ny / 3,
495
+ }
496
+
497
+ self.time_chunks = {"time": int(self.nt / 36)}
498
+
499
+ times = pd.date_range("1970-01-01", periods=self.nt, freq="D")
500
+ lons = xr.DataArray(
501
+ np.linspace(0, 360, self.nx),
502
+ dims=("lon",),
503
+ attrs={"units": "degrees east", "long_name": "longitude"},
504
+ )
505
+ lats = xr.DataArray(
506
+ np.linspace(-90, 90, self.ny),
507
+ dims=("lat",),
508
+ attrs={"units": "degrees north", "long_name": "latitude"},
509
+ )
510
+ self.ds["foo"] = xr.DataArray(
511
+ randn((self.nt, self.nx, self.ny), frac_nan=0.2),
512
+ coords={"lon": lons, "lat": lats, "time": times},
513
+ dims=("time", "lon", "lat"),
514
+ name="foo",
515
+ attrs={"units": "foo units", "description": "a description"},
516
+ )
517
+ self.ds["bar"] = xr.DataArray(
518
+ randn((self.nt, self.nx, self.ny), frac_nan=0.2),
519
+ coords={"lon": lons, "lat": lats, "time": times},
520
+ dims=("time", "lon", "lat"),
521
+ name="bar",
522
+ attrs={"units": "bar units", "description": "a description"},
523
+ )
524
+ self.ds["baz"] = xr.DataArray(
525
+ randn((self.nx, self.ny), frac_nan=0.2).astype(np.float32),
526
+ coords={"lon": lons, "lat": lats},
527
+ dims=("lon", "lat"),
528
+ name="baz",
529
+ attrs={"units": "baz units", "description": "a description"},
530
+ )
531
+
532
+ self.ds.attrs = {"history": "created for xarray benchmarking"}
533
+
534
+ self.oinds = {
535
+ "time": randint(0, self.nt, 120),
536
+ "lon": randint(0, self.nx, 20),
537
+ "lat": randint(0, self.ny, 10),
538
+ }
539
+ self.vinds = {
540
+ "time": xr.DataArray(randint(0, self.nt, 120), dims="x"),
541
+ "lon": xr.DataArray(randint(0, self.nx, 120), dims="x"),
542
+ "lat": slice(3, 20),
543
+ }
544
+ root = {f"group_{group}": self.ds for group in range(self.nchildren)}
545
+ nested_tree1 = {
546
+ f"group_{group}/subgroup_1": xr.Dataset() for group in range(self.nchildren)
547
+ }
548
+ nested_tree2 = {
549
+ f"group_{group}/subgroup_2": xr.DataArray(np.arange(1, 10)).to_dataset(
550
+ name="a"
551
+ )
552
+ for group in range(self.nchildren)
553
+ }
554
+ nested_tree3 = {
555
+ f"group_{group}/subgroup_2/sub-subgroup_1": self.ds
556
+ for group in range(self.nchildren)
557
+ }
558
+ dtree = root | nested_tree1 | nested_tree2 | nested_tree3
559
+ self.dtree = DataTree.from_dict(dtree)
560
+
561
+
562
+ class IOReadDataTreeNetCDF4(IONestedDataTree):
563
+ def setup(self):
564
+ # TODO: Lazily skipped in CI as it is very demanding and slow.
565
+ # Improve times and remove errors.
566
+ _skip_slow()
567
+
568
+ requires_dask()
569
+
570
+ self.make_datatree()
571
+ self.format = "NETCDF4"
572
+ self.filepath = "datatree.nc4.nc"
573
+ dtree = self.dtree
574
+ dtree.to_netcdf(filepath=self.filepath)
575
+
576
+ def time_load_datatree_netcdf4(self):
577
+ open_datatree(self.filepath, engine="netcdf4").load()
578
+
579
+ def time_open_datatree_netcdf4(self):
580
+ open_datatree(self.filepath, engine="netcdf4")
581
+
582
+
472
583
  class IOWriteNetCDFDask:
473
584
  timeout = 60
474
585
  repeat = 1
@@ -13,7 +13,7 @@ $conda remove -y numba numbagg sparse
13
13
  # temporarily remove numexpr
14
14
  $conda remove -y numexpr
15
15
  # temporarily remove backends
16
- $conda remove -y cf_units hdf5 h5py netcdf4 pydap
16
+ $conda remove -y pydap
17
17
  # forcibly remove packages to avoid artifacts
18
18
  $conda remove -y --force \
19
19
  numpy \
@@ -37,8 +37,7 @@ python -m pip install \
37
37
  numpy \
38
38
  scipy \
39
39
  matplotlib \
40
- pandas \
41
- h5py
40
+ pandas
42
41
  # for some reason pandas depends on pyarrow already.
43
42
  # Remove once a `pyarrow` version compiled with `numpy>=2.0` is on `conda-forge`
44
43
  python -m pip install \
@@ -0,0 +1,49 @@
1
+ import re
2
+ import textwrap
3
+
4
+ import git
5
+ from tlz.itertoolz import last, unique
6
+
7
+ co_author_re = re.compile(r"Co-authored-by: (?P<name>[^<]+?) <(?P<email>.+)>")
8
+
9
+
10
+ def main():
11
+ repo = git.Repo(".")
12
+
13
+ most_recent_release = last(repo.tags)
14
+
15
+ # extract information from commits
16
+ contributors = {}
17
+ for commit in repo.iter_commits(f"{most_recent_release.name}.."):
18
+ matches = co_author_re.findall(commit.message)
19
+ if matches:
20
+ contributors.update({email: name for name, email in matches})
21
+ contributors[commit.author.email] = commit.author.name
22
+
23
+ # deduplicate and ignore
24
+ # TODO: extract ignores from .github/release.yml
25
+ ignored = ["dependabot", "pre-commit-ci"]
26
+ unique_contributors = unique(
27
+ contributor
28
+ for contributor in contributors.values()
29
+ if contributor.removesuffix("[bot]") not in ignored
30
+ )
31
+
32
+ sorted_ = sorted(unique_contributors)
33
+ if len(sorted_) > 1:
34
+ names = f"{', '.join(sorted_[:-1])} and {sorted_[-1]}"
35
+ else:
36
+ names = "".join(sorted_)
37
+
38
+ statement = textwrap.dedent(
39
+ f"""\
40
+ Thanks to the {len(sorted_)} contributors to this release:
41
+ {names}
42
+ """.rstrip()
43
+ )
44
+
45
+ print(statement)
46
+
47
+
48
+ if __name__ == "__main__":
49
+ main()
@@ -27,7 +27,7 @@ dependencies:
27
27
  - pandas
28
28
  - pint>=0.22
29
29
  - pip
30
- - pydap
30
+ # - pydap
31
31
  - pytest
32
32
  - pytest-cov
33
33
  - pytest-env
@@ -21,7 +21,7 @@ dependencies:
21
21
  - nbsphinx
22
22
  - netcdf4>=1.5
23
23
  - numba
24
- - numpy>=1.21
24
+ - numpy>=2
25
25
  - packaging>=21.3
26
26
  - pandas>=1.4,!=2.1.0
27
27
  - pooch
@@ -42,5 +42,6 @@ dependencies:
42
42
  - sphinxext-rediraffe
43
43
  - zarr>=2.10
44
44
  - pip:
45
+ - sphinxcontrib-mermaid
45
46
  # relative to this file. Needs to be editable to be accepted.
46
47
  - -e ../..
@@ -29,7 +29,7 @@ dependencies:
29
29
  # - pint>=0.22
30
30
  - pip
31
31
  - pre-commit
32
- - pydap
32
+ # - pydap
33
33
  - pytest
34
34
  - pytest-cov
35
35
  - pytest-env
@@ -35,7 +35,7 @@ dependencies:
35
35
  - pooch
36
36
  - pre-commit
37
37
  - pyarrow # pandas raises a deprecation warning without this, breaking doctests
38
- - pydap
38
+ # - pydap
39
39
  - pytest
40
40
  - pytest-cov
41
41
  - pytest-env
@@ -693,3 +693,7 @@
693
693
 
694
694
  coding.times.CFTimedeltaCoder
695
695
  coding.times.CFDatetimeCoder
696
+
697
+ groupers.Grouper
698
+ groupers.Resampler
699
+ groupers.EncodedGroups
@@ -111,6 +111,7 @@ Dataset contents
111
111
  Dataset.drop_duplicates
112
112
  Dataset.drop_dims
113
113
  Dataset.drop_encoding
114
+ Dataset.drop_attrs
114
115
  Dataset.set_coords
115
116
  Dataset.reset_coords
116
117
  Dataset.convert_calendar
@@ -306,6 +307,7 @@ DataArray contents
306
307
  DataArray.drop_indexes
307
308
  DataArray.drop_duplicates
308
309
  DataArray.drop_encoding
310
+ DataArray.drop_attrs
309
311
  DataArray.reset_coords
310
312
  DataArray.copy
311
313
  DataArray.convert_calendar
@@ -801,6 +803,18 @@ DataArray
801
803
  DataArrayGroupBy.dims
802
804
  DataArrayGroupBy.groups
803
805
 
806
+ Grouper Objects
807
+ ---------------
808
+
809
+ .. currentmodule:: xarray
810
+
811
+ .. autosummary::
812
+ :toctree: generated/
813
+
814
+ groupers.BinGrouper
815
+ groupers.UniqueGrouper
816
+ groupers.TimeResampler
817
+
804
818
 
805
819
  Rolling objects
806
820
  ===============
@@ -1026,17 +1040,20 @@ DataArray
1026
1040
  Accessors
1027
1041
  =========
1028
1042
 
1029
- .. currentmodule:: xarray
1043
+ .. currentmodule:: xarray.core
1030
1044
 
1031
1045
  .. autosummary::
1032
1046
  :toctree: generated/
1033
1047
 
1034
- core.accessor_dt.DatetimeAccessor
1035
- core.accessor_dt.TimedeltaAccessor
1036
- core.accessor_str.StringAccessor
1048
+ accessor_dt.DatetimeAccessor
1049
+ accessor_dt.TimedeltaAccessor
1050
+ accessor_str.StringAccessor
1051
+
1037
1052
 
1038
1053
  Custom Indexes
1039
1054
  ==============
1055
+ .. currentmodule:: xarray
1056
+
1040
1057
  .. autosummary::
1041
1058
  :toctree: generated/
1042
1059
 
@@ -59,6 +59,7 @@ except ImportError:
59
59
  )
60
60
 
61
61
  nbsphinx_allow_errors = False
62
+ nbsphinx_requirejs_path = ""
62
63
 
63
64
  # -- General configuration ------------------------------------------------
64
65
 
@@ -68,7 +69,9 @@ nbsphinx_allow_errors = False
68
69
  # Add any Sphinx extension module names here, as strings. They can be
69
70
  # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
70
71
  # ones.
72
+
71
73
  extensions = [
74
+ "sphinxcontrib.mermaid",
72
75
  "sphinx.ext.autodoc",
73
76
  "sphinx.ext.autosummary",
74
77
  "sphinx.ext.intersphinx",
@@ -91,10 +94,11 @@ extensions = [
91
94
  extlinks = {
92
95
  "issue": ("https://github.com/pydata/xarray/issues/%s", "GH%s"),
93
96
  "pull": ("https://github.com/pydata/xarray/pull/%s", "PR%s"),
97
+ "discussion": ("https://github.com/pydata/xarray/discussions/%s", "D%s"),
94
98
  }
95
99
 
96
100
  # sphinx-copybutton configurations
97
- copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
101
+ copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.{3,}: | {5,8}: "
98
102
  copybutton_prompt_is_regexp = True
99
103
 
100
104
  # nbsphinx configurations
@@ -155,6 +159,8 @@ napoleon_type_aliases = {
155
159
  "Variable": "~xarray.Variable",
156
160
  "DatasetGroupBy": "~xarray.core.groupby.DatasetGroupBy",
157
161
  "DataArrayGroupBy": "~xarray.core.groupby.DataArrayGroupBy",
162
+ "Grouper": "~xarray.groupers.Grouper",
163
+ "Resampler": "~xarray.groupers.Resampler",
158
164
  # objects without namespace: numpy
159
165
  "ndarray": "~numpy.ndarray",
160
166
  "MaskedArray": "~numpy.ma.MaskedArray",
@@ -166,6 +172,7 @@ napoleon_type_aliases = {
166
172
  "CategoricalIndex": "~pandas.CategoricalIndex",
167
173
  "TimedeltaIndex": "~pandas.TimedeltaIndex",
168
174
  "DatetimeIndex": "~pandas.DatetimeIndex",
175
+ "IntervalIndex": "~pandas.IntervalIndex",
169
176
  "Series": "~pandas.Series",
170
177
  "DataFrame": "~pandas.DataFrame",
171
178
  "Categorical": "~pandas.Categorical",
@@ -175,6 +182,8 @@ napoleon_type_aliases = {
175
182
  "pd.NaT": "~pandas.NaT",
176
183
  }
177
184
 
185
+ # mermaid config
186
+ mermaid_version = "10.9.1"
178
187
 
179
188
  # Add any paths that contain templates here, relative to this directory.
180
189
  templates_path = ["_templates", sphinx_autosummary_accessors.templates_path]
@@ -352,9 +352,9 @@ Some packages may have additional functionality beyond what is shown here. You c
352
352
  How does xarray handle missing values?
353
353
  --------------------------------------
354
354
 
355
- **xarray can handle missing values using ``np.NaN``**
355
+ **xarray can handle missing values using ``np.nan``**
356
356
 
357
- - ``np.NaN`` is used to represent missing values in labeled arrays and datasets. It is a commonly used standard for representing missing or undefined numerical data in scientific computing. ``np.NaN`` is a constant value in NumPy that represents "Not a Number" or missing values.
357
+ - ``np.nan`` is used to represent missing values in labeled arrays and datasets. It is a commonly used standard for representing missing or undefined numerical data in scientific computing. ``np.nan`` is a constant value in NumPy that represents "Not a Number" or missing values.
358
358
 
359
359
  - Most of xarray's computation methods are designed to automatically handle missing values appropriately.
360
360