unstructured grids
See original GitHub issueHas anyone used xesmf
to regrid from unstructured grids like ICON, MPAS or FESOM?
Unstructured grids like ICON just have one spatial dimension like ncells
and 2 spatial coordinates clon
and clat
.
I tried and failed.
https://gist.github.com/aaronspring/fd54970f71a39e26ab54a8b47170533d
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Unstructured Grid - an overview
The use of unstructured grid offers several advantages over structured grids. These lie in the ability to deal with arbitrary complex geometries and...
Read more >UNSTRUCTURED GRID TECHNIQUES
An overview of the current state of the art in unstructured mesh techniques for computational fluid dynamics is given. The topics of mesh...
Read more >Grid Systems | CFD-101 | What Are the Advantages and ...
A popular type of unstructured grid consists of tetrahedral elements. These grids tend to be easier to generate than those composed of hexahedral...
Read more >Chapter 11: Unstructured Grids Introduction
To generate curvilinear meshes it is necessary to map the physical geometry into a computational geometry. (a) physical grid in x-y co-ordinates. (b)...
Read more >Smoothing of Unstructured Grids
Abstract. Two mesh smoothing techniques applied to unstructured grids are compared. These are based on the solution of elliptic equations,.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Using locstream to at least offer nearest neighbour remapping is a nice idea, since apparently the data on unstructured grids of the CMIP models is stored in this locstream-like format. I tested it for CMIP6 published ICON-OES and FESOM data: https://nbviewer.jupyter.org/github/roocs/regrid-prototype/blob/main/docs/notebooks/xESMF_unstructured_locstream_ref.ipynb
The only problem I encountered originates from the following lines in xesmf/backend.py:
Due to an ESMF bug masks are ignored when generating the weights. I tried then to apply a mask for target grid, by manipulating the weights after their creation and by applying the mask on the regridded data. Both options worked. So one could
frontend.BaseRegridder.__call__
to be able to call it like:ds_out=regridder(ds, keep_attrs, skipna, na_thres, mask_out)
ok thanks.