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
This package is designed to be used in conjunction with [`xarray`](https://xarray.dev/). Given a [CF Compliant](https://cfconventions.org/)`xarray` dataset named `ds`, this package can be accessed using the `xsg` accessor:
24
24
25
25
```python
26
-
# Get the interprested grid class
26
+
import numpy as np
27
+
28
+
# Get the interpreted grid class
27
29
grid = ds.xsg
28
30
29
31
# subset to only include temperature
@@ -45,7 +47,7 @@ poly = np.array(
45
47
ds_subset_poly = ds.xsg.subset_polygon(poly)
46
48
```
47
49
48
-
For full usage, see the [example notebooks](./docs/examples/)
50
+
For full usage, see the [example notebooks](https://github.com/ioos/xarray-subset-grid/tree/main/docs/examples) and the [Sphinx documentation on Read the Docs](https://xarray-subset-grid.readthedocs.io/).
49
51
50
52
## Development
51
53
@@ -55,7 +57,9 @@ First, create a new `virtualenv` and activate it:
0 commit comments