Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regridding introduces missing values at wraparound longitude #10

Closed
spencerahill opened this issue Nov 11, 2017 · 3 comments
Closed

Regridding introduces missing values at wraparound longitude #10

spencerahill opened this issue Nov 11, 2017 · 3 comments

Comments

@spencerahill
Copy link

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
Copy link
Owner

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

There are two quick ways to fix that:

  • Use conservative regridding. It uses cell corner information and won't miss any cells.
  • Manually extend one more grid point in the longitude direction. For example, let lon = [-180, -175..., 175, 180] and use the same data at -180 and 180

@spencerahill
Copy link
Author

spencerahill commented Nov 11, 2017 via email

@JiaweiZhuang
Copy link
Owner

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

The option is used in this demo.

raphaeldussin added a commit to raphaeldussin/xESMF that referenced this issue Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants