pangeo-data / scikit-downscale

Statistical climate downscaling in Python
https://scikit-downscale.readthedocs.io/en/latest/
Apache License 2.0
185 stars 47 forks source link

Dimensions {'member_id'} do not exist in 2020ECAHM-scikit-downscale #86

Closed haris021 closed 2 years ago

haris021 commented 2 years ago

Hello,

Hope you are doing great. I have been trying to run the code for downscaling and have been able to run it except for last cell.when i reach the last cell of model.predict i receive an error "Dimensions {'member_id'} do not exist. Expected one or more of ('time', 'lat', 'lon')". As far as i understand when we access the cmip6 data, member_id becomes part of xarray dataarray, and when i apply model.predict i get this error. I shall be highly obliged if you could look into this.

haris021 commented 2 years ago

When i run this : predicted = model.predict(holdout_subset).load() display(predicted) predicted.isel(time=0).plot()

Following error comes: ValueError: Dimensions {'member_id'} do not exist. Expected one or more of ('time', 'lat', 'lon')

haris021 commented 2 years ago

I have figured out the issue. So in my case member_id was 2. I then did catalog column search for 1 member_id='r1i1p1f1'. And it worked. So the notebook takes up 1 member_id at a time.