JiaweiZhuang/xESMF

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

nuvolet opened this issue · 0 comments

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