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

Generate boundary automatically based on centers #180

Closed
zxdawn opened this issue Jul 5, 2022 · 3 comments
Closed

Generate boundary automatically based on centers #180

zxdawn opened this issue Jul 5, 2022 · 3 comments

Comments

@zxdawn
Copy link

zxdawn commented Jul 5, 2022

Usually the satellite data only have the pixel center data, it would be nice to generate the boundary automatically. Here's one example using xgcm to create the boundary arrays.

BTW, we want to support xESMF conservative regridder in pyresample. The auto boundary could make it easier.

@aulemahal
Copy link
Collaborator

aulemahal commented Jul 5, 2022

If you data is using a regular lat and lon grid (both coordinates being 1D), then cf-xarray has a function for that! Moreover, this function is already used by xESMF when bounds are missing.

There is an issue there for extending the function to 2D coordinates : xarray-contrib/cf-xarray#71.
Maybe the code from xgcm could be adapted and transposed there?

@zxdawn
Copy link
Author

zxdawn commented Jul 5, 2022

Thanks. I have mentioned the xgcm to cf-xarray issue. Should I keep this open until it's supported?

@huard
Copy link
Contributor

huard commented Jul 8, 2022

I suggest to close this and open a new issue once there is functionality ready in cf-xarray that can be integrated here.

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

3 participants