The second line in the docs here fails:
ds_bottom = ds.selafin.get_dataset_as_2d(plan=0) # bottom layer
ds_top = ds.selafin.get_dataset_as_2d(plan=-1) # top layer
Simply because the following assertion:
|
assert 0 <= plan <= self._ds.sizes.get("plan") - 1 |
Didn't take into account negative plan values.
Taking the absolute value shoud fix it.
The second line in the docs here fails:
Simply because the following assertion:
xarray-selafin/xarray_selafin/xarray_backend.py
Line 262 in 01d7ab9
Didn't take into account negative plan values.
Taking the absolute value shoud fix it.