JiaweiZhuang / xESMF

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

Using xesmf to efficiently regrid data to another resolution including vertical dimension #133

Open nuvolet opened 1 year ago

nuvolet commented 1 year ago

Greetings,

I found a very useful reference this website to use xesmf to regrid data to another resolution:

https://climate-cms.org/posts/2021-04-09-xesmf-regrid.html

Nevertheless, here it is also detailed to do it for horizontal coordinates (lat, lon).

ds_out = xe.util.grid_2d(-180.0, 180.0, 2.5, -90.0, 90.0, 2.5) regridder = xe.Regridder(ds, ds_out, 'bilinear', periodic=True)

I was wondering if is possible do it for vertical coordinates (vertical levels) by specifying by an array the number and intervals?.

Thanks in advance