pangeo-data / xESMF

Universal Regridder for Geospatial Data
http://xesmf.readthedocs.io/
MIT License
182 stars 32 forks source link

Regridding error with non-sequence output #343

Closed angus-g closed 4 months ago

angus-g commented 4 months ago

The recent release of xESMF 0.8.3 incorporates #332, which seems to have a bit of a logic bug in the case of a non-sequence output. With reference to the following code, the horizontal/vertical dimensions get renamed to x_out and y_out respectively. This means they differ from the original values in the out_coords dictionary, so the newly-added rename operation fails (ValueError: cannot rename 'lon' because it is not a variable or dimension in this dataset)

https://github.com/pangeo-data/xESMF/blob/d32b5f4629bde494b8d347f778b45b3133db87a1/xesmf/frontend.py#L1023-L1034

huard commented 4 months ago

@charlesgauthier-udm