Skip to content

Commit 5e2045b

Browse files
committed
add draft chart to markdown file
1 parent a5f63f3 commit 5e2045b

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

advanced/backends/backends.md

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,51 @@
22

33
## Introduction
44

5-
You can [read different type of files](https://docs.xarray.dev/en/stable/user-guide/io.html)) in `xr.open_dataset` by specifying the engine to be used:
5+
6+
```mermaid
7+
---
8+
title: "Xarray Engines: Opening Your Data with xr.open_dataset()"
9+
---
10+
11+
12+
flowchart TD
13+
built-in-eng([Is your data stored in one of these formats?
14+
netCDF4
15+
netCDF3
16+
Zarr
17+
DAP
18+
])
19+
20+
built-in("`You're in luck! Xarray bundles a backend for this format.
21+
Open data using *xr.open_dataset()* as normal.`")
22+
23+
installed-eng(["`One of these formats?
24+
GRIB (**cfgrib**)
25+
TileDB (**tiledb**)
26+
GeoTIFF, JPEG-2000, ESRI-hdf (**rioxarray**, via GDAL)
27+
Sentinel-1 SAFE (**xarray-sentinel**)
28+
`"])
29+
30+
installed("`Install the package indicated in parentheses
31+
to your Python environment. Restart the kernel
32+
and use *xr.open_dataset(files, engine='rioxarray')*`")
33+
34+
other("`You can't use *open_dataset()* with an engine.
35+
This page shows how to open your data with Xarray.`")
36+
37+
built-in-eng -->|Yes| built-in
38+
built-in-eng -->|No| installed-eng
39+
40+
installed-eng -->|Yes| installed
41+
installed-eng -->|No| other
42+
43+
click built-in-eng "https://tutorial.xarray.dev/advanced/backends/backends.html"
44+
click installed-eng "https://tutorial.xarray.dev/advanced/backends/backends.html#why-using-the-xarray-backend-api"
45+
46+
```
47+
48+
49+
You can [read different type of files](https://docs.xarray.dev/en/stable/user-guide/io.html) in `xr.open_dataset` by specifying the engine to be used:
650

751
```python
852
import xarray as xr

0 commit comments

Comments
 (0)