Skip to content

Instantly share code, notes, and snippets.

@aaronspring
Created September 6, 2022 07:21
Show Gist options
  • Save aaronspring/ec2b7050d8afe1e2ebb551076c6ccfe5 to your computer and use it in GitHub Desktop.
Save aaronspring/ec2b7050d8afe1e2ebb551076c6ccfe5 to your computer and use it in GitHub Desktop.
`climpred` example for ROC-AUC for `ai4s2s`
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@fipoucat
Copy link

I am facing error running the example:

obs.isel(valid_time=-1).to_array().plot(robust=True)
Traceback (most recent call last):

Cell In[13], line 1
obs.isel(valid_time=-1).to_array().plot(robust=True)

File /opt/anaconda3/lib/python3.11/site-packages/xarray/core/dataset.py:2948 in isel
indexers = drop_dims_from_indexers(indexers, self.dims, missing_dims)

File /opt/anaconda3/lib/python3.11/site-packages/xarray/core/utils.py:824 in drop_dims_from_indexers
raise ValueError(

ValueError: Dimensions {'valid_time'} do not exist. Expected one or more of FrozenMappingWarningOnValuesAccess({'latitude': 400, 'longitude': 1440, 'time': 365})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment