JiaweiZhuang / xESMF

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

Regridding introduces missing values at wraparound longitude #10

Closed spencerahill closed 6 years ago

spencerahill commented 6 years ago

See this gist for details: https://gist.github.com/anonymous/7e5dcfc3d84938266ddc1c2159770823

Entirely possible I'm making a silly mistake, but I can't figure it out so far at least. Thanks in advance for help.

JiaweiZhuang commented 6 years ago

Oops, xESMF has some issue with periodic boundary conditions right now. Sorry for the trouble.

There are two quick ways to fix that:

spencerahill commented 6 years ago

Thanks. I will try one or both of these and let you know how it goes.

JiaweiZhuang commented 6 years ago

Periodic boundary option is now included in v0.1.1. Just set regridder = xe.Regridder(..., periodic=True)

The option is used in this demo.