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
* add backend intro and how-to diagram
* update what's new
* fix link style [skip-ci]
* update numpy nan syntax to address docs build fail [skip-ci]
* improve some spacing on diagram
* fix items not rendering properly due to typos [skip-ci]
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* update python syntax
* use html code blocks to fix spacing [skip-ci]
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* suppress ipython block output
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* change to okexcept [skip-ci]
* re-add supress so error output is ignored [skip-ci]
* Update doc/user-guide/io.rst
* add per-line links to diagram [skip-ci]
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Roos <[email protected]>
Copy file name to clipboardExpand all lines: doc/user-guide/io.rst
+75
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
+3-1
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,9 @@ Bug fixes
84
84
Documentation
85
85
~~~~~~~~~~~~~
86
86
87
-
- 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`).
88
90
By `Jessica Scheick <https://github.com/jessicas11>`_.
89
91
- Improvements to Zarr & chunking docs (:pull:`9139`, :pull:`9140`, :pull:`9132`)
90
92
By `Maximilian Roos <https://github.com/max-sixty>`_.
0 commit comments