Skip to content

Commit

Permalink
Make this even simpler, remove link to same section
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuehlbauer committed Oct 17, 2024
1 parent 5e61ffa commit f9d0f9b
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions doc/user-guide/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,9 @@ format (recommended).
np.random.seed(123456)
ds = xr.Dataset(
{"foo": (("x", "y"), np.random.rand(4, 5))},
)
ds.to_netcdf("example.nc")
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
import xarray as xr
.. code:: python
xr.open_dataset("example.nc", engine="netcdf4")
Expand Down

0 comments on commit f9d0f9b

Please sign in to comment.