roocs / clisops

Climate Simulation Operations
https://clisops.readthedocs.io/en/latest/
Other
21 stars 9 forks source link

fix subset level by values with method=nearest #262

Closed cehbrecht closed 1 year ago

cehbrecht commented 1 year ago

Pull Request Checklist:

subset_level_by_values didn't work for CMIP6 dataset. Needed to add method="nearest" to ds.sel to make it work.

The example notebook (Process error: Requested levels include some not found in the dataset: 1000.0): https://nbviewer.org/github/roocs/rooki/blob/master/notebooks/demo/rook-errors-2022-12-08.ipynb