Skip to content

Commit

Permalink
Fix error and missing code cell in io.rst (#9641)
Browse files Browse the repository at this point in the history
* Fix error and probably missing code cell in io.rst

* Make this even simpler, remove link to same section
  • Loading branch information
kmuehlbauer authored Oct 17, 2024
1 parent 7046255 commit 1e579fb
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions doc/user-guide/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,11 @@ format (recommended).
np.random.seed(123456)
You can `read different types of files <https://docs.xarray.dev/en/stable/user-guide/io.html>`_
in `xr.open_dataset` by specifying the engine to be used:
You can read different types of files in `xr.open_dataset` by specifying the engine to be used:

.. ipython:: python
:okexcept:
:suppress:
import xarray as xr
.. code:: python
xr.open_dataset("my_file.grib", engine="cfgrib")
xr.open_dataset("example.nc", engine="netcdf4")
The "engine" provides a set of instructions that tells xarray how
to read the data and pack them into a `dataset` (or `dataarray`).
Expand Down

0 comments on commit 1e579fb

Please sign in to comment.