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
You don't need to import this package in user code. Once `pip install`-ed, xarray should automatically become aware of this package via the magic of entrypoints.
20
+
21
+
## Usage
22
+
23
+
Xarray objects backed by cubed arrays can be created either by:
24
+
25
+
1. Passing existing `cubed.Array` objects to the `data` argument of xarray constructors,
26
+
2. Calling `.chunk` on xarray objects,
27
+
3. Passing a `chunks` argument to `xarray.open_dataset`.
28
+
29
+
In (2) and (3) the choice to use `cubed.Array` instead of `dask.array.Array` is made by passing the keyword argument `manager='cubed'`.
30
+
31
+
If cubed and cubed-xarray are installed but dask is not, then specifying the parallel array type to use is not necessary.
32
+
33
+
## Tests
34
+
35
+
Integration tests for wrapping cubed with xarray also live in this repository.
0 commit comments