0

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

enter image description here

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.

enter image description here

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

2
  • 1
    You should provide the file, as the CRS, the grid properties, the NaN distribution are not clear enough with just the two screenshots. Commented Feb 10 at 11:34
  • This would be a lot easier to answer if you could provide an example of the dataset you're using. Like @cyril says, at least the CRS and grid properties. Also would be good to see the code you used to plot the figures. Commented Feb 19 at 19:53

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.