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

Regrid from icosahedral (triangular) grid to rectangular #367

Open
albertotb opened this issue Jun 14, 2024 · 4 comments
Open

Regrid from icosahedral (triangular) grid to rectangular #367

albertotb opened this issue Jun 14, 2024 · 4 comments

Comments

@albertotb
Copy link

Is this package able to regrid from a triangular grid to a rectangular one? As an use case the data from this model
https://www.dwd.de/EN/ourservices/nwp_forecast_data/nwp_forecast_data.html is distributed as a triangular grid. They provide instructions to transform it into a rectangular grid using CDO (https://www.dwd.de/DE/leistungen/opendata/help/modelle/Opendata_cdo_EN.pdf?__blob=publicationFile&v=3), but I was curious if this package could provide an alternative.

@huard
Copy link
Contributor

huard commented Jun 14, 2024

xESMF supports unstructured grids, so I suspect it should indeed be possible.

See https://xesmf.readthedocs.io/en/latest/notebooks/Using_LocStream.html

@albertotb
Copy link
Author

Thanks, I will take a look!. If you are looking for examples for the documentation the data for that particular model is distributed openly. In any case feel free to close the issue whenever.

@aulemahal
Copy link
Collaborator

@huard I don't think a LocStream is an unstructrued grid, it rather is a list of points, i.e. there is no relation between each point.
ESMF supports this with its MeshGrid, but the implementation is not yet available though xESMF because there is no standard / data structure in the xarray world that supports those. Or at least, not that we were aware of when we last looked.

ESMpy however, is capable of doing it. @albertotb I would suggest you take a look there :https://earthsystemmodeling.org/esmpy_doc/release/latest/html/index.html
It will be quite more complicated than with all the xESMF goodies, but at least you'll stay in python...

@huard
Copy link
Contributor

huard commented Jun 14, 2024

You're right, sorry about the misdirection.

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