Python Xarray Interpolate rotated grid to regular latlon grid - Stack Overflow

admin2025-04-21  0

I have an xarray dataset that contains data on a rotated grid:

I want to regrid it to a regular grid. I am using:

dat.interp(latitude=np.arange(8, 24, 0.001), longitude=np.arange(102, 110, 0.001), method="nearest")

But now I have missing points and the grid still isn't regular.

How can I do that? I would normally use Xesmf but I am currently on windows and can't use that package.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745241722a292049.html

最新回复(0)