You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'main' into pre-commit-ci-update-config
* main:
add backend intro and how-to diagram (#9175)
Fix copybutton for multi line examples in double digit ipython cells (#9264)
Update signature for _arrayfunction.__array__ (#9237)
Add encode_cf_datetime benchmark (#9262)
groupby, resample: Deprecate some positional args (#9236)
Delete ``base`` and ``loffset`` parameters to resample (#9233)
Update dropna docstring (#9257)
Grouper, Resampler as public api (#8840)
Fix mypy on main (#9252)
fix fallback isdtype method (#9250)
Enable pandas type checking (#9213)
Per-variable specification of boolean parameters in open_dataset (#9218)
test push
Added a space to the documentation (#9247)
Fix typing for test_plot.py (#9234)
Copy file name to clipboardExpand all lines: doc/user-guide/io.rst
+75Lines changed: 75 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,81 @@ format (recommended).
19
19
20
20
np.random.seed(123456)
21
21
22
+
You can `read different types of files <https://docs.xarray.dev/en/stable/user-guide/io.html>`_
23
+
in `xr.open_dataset` by specifying the engine to be used:
24
+
25
+
.. ipython:: python
26
+
:okexcept:
27
+
:suppress:
28
+
29
+
import xarray as xr
30
+
31
+
xr.open_dataset("my_file.grib", engine="cfgrib")
32
+
33
+
The "engine" provides a set of instructions that tells xarray how
34
+
to read the data and pack them into a `dataset` (or `dataarray`).
35
+
These instructions are stored in an underlying "backend".
36
+
37
+
Xarray comes with several backends that cover many common data formats.
38
+
Many more backends are available via external libraries, or you can `write your own <https://docs.xarray.dev/en/stable/internals/how-to-add-new-backend.html>`_.
39
+
This diagram aims to help you determine - based on the format of the file you'd like to read -
40
+
which type of backend you're using and how to use it.
41
+
42
+
Text and boxes are clickable for more information.
43
+
Following the diagram is detailed information on many popular backends.
44
+
You can learn more about using and developing backends in the
Copy file name to clipboardExpand all lines: doc/whats-new.rst
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,15 @@ v2024.06.1 (unreleased)
22
22
23
23
New Features
24
24
~~~~~~~~~~~~
25
+
- Introduce new :py:class:`groupers.UniqueGrouper`, :py:class:`groupers.BinGrouper`, and
26
+
:py:class:`groupers.TimeResampler` objects as a step towards supporting grouping by
27
+
multiple variables. See the `docs <groupby.groupers_>` and the
28
+
`grouper design doc <https://github.com/pydata/xarray/blob/main/design_notes/grouper_objects.md>`_ for more.
29
+
(:issue:`6610`, :pull:`8840`).
30
+
By `Deepak Cherian <https://github.com/dcherian>`_.
31
+
- Allow per-variable specification of ``mask_and_scale``, ``decode_times``, ``decode_timedelta``
32
+
``use_cftime`` and ``concat_characters`` params in :py:func:`~xarray.open_dataset` (:pull:`9218`).
33
+
By `Mathijs Verhaegh <https://github.com/Ostheer>`_.
25
34
- Allow chunking for arrays with duplicated dimension names (:issue:`8759`, :pull:`9099`).
26
35
By `Martin Raspaud <https://github.com/mraspaud>`_.
27
36
- Extract the source url from fsspec objects (:issue:`9142`, :pull:`8923`).
@@ -33,6 +42,11 @@ New Features
33
42
34
43
Breaking changes
35
44
~~~~~~~~~~~~~~~~
45
+
- The ``base`` and ``loffset`` parameters to :py:meth:`Dataset.resample` and :py:meth:`DataArray.resample`
46
+
is now removed. These parameters has been deprecated since v2023.03.0. Using the
47
+
``origin`` or ``offset`` parameters is recommended as a replacement for using
48
+
the ``base`` parameter and using time offset arithmetic is recommended as a
49
+
replacement for using the ``loffset`` parameter.
36
50
37
51
38
52
Deprecations
@@ -70,15 +84,20 @@ Bug fixes
70
84
Documentation
71
85
~~~~~~~~~~~~~
72
86
73
-
- Adds a flow-chart diagram to help users navigate help resources (`Discussion #8990 <https://github.com/pydata/xarray/discussions/8990>`_).
87
+
- Adds intro to backend section of docs, including a flow-chart to navigate types of backends (:pull:`9175`).
88
+
By `Jessica Scheick <https://github.com/jessicas11>`_.
89
+
- Adds a flow-chart diagram to help users navigate help resources (`Discussion #8990 <https://github.com/pydata/xarray/discussions/8990>`_, :pull:`9147`).
74
90
By `Jessica Scheick <https://github.com/jessicas11>`_.
75
91
- Improvements to Zarr & chunking docs (:pull:`9139`, :pull:`9140`, :pull:`9132`)
76
92
By `Maximilian Roos <https://github.com/max-sixty>`_.
77
-
93
+
- Fix copybutton for multi line examples and double digit ipython cell numbers (:pull:`9264`).
94
+
By `Moritz Schreiber <https://github.com/mosc9575>`_.
78
95
79
96
Internal Changes
80
97
~~~~~~~~~~~~~~~~
81
98
99
+
- Enable typing checks of pandas (:pull:`9213`).
100
+
By `Michael Niklas <https://github.com/headtr1ck>`_.
0 commit comments