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

UGRID support? #214

Closed
jveeramon opened this issue May 20, 2021 · 2 comments · Fixed by #698
Closed

UGRID support? #214

jveeramon opened this issue May 20, 2021 · 2 comments · Fixed by #698
Labels
question General question

Comments

@jveeramon
Copy link

Does cf support UGrid convention? I am trying to regrid data from a UGrid to a structured grid. Here is what my field looks like:

In [3]: print(f)
Field: sea_surface_height (ncvar%mesh2d_s1)

Data : sea_surface_height(time(193), ncdim%mesh2d_nFaces(285665)) m
Cell methods : ncdim%mesh2d_nFaces(285665): mean
Dimension coords: time(193) = [2018-10-07 18:00:00, ..., 2018-10-11 18:00:00]
Auxiliary coords: longitude(ncdim%mesh2d_nFaces(285665)) = [-83.24000000000001, ..., -87.38800000000002] degrees_east
: latitude(ncdim%mesh2d_nFaces(285665)) = [30.191999984826857, ..., 30.62799975515764] degrees_north
Cell measures : measure:area(ncdim%mesh2d_nFaces(285665)) = [171375.81883366389, ..., 2729793.5635016114] m2
Coord references: grid_mapping_name:latitude_longitude

@jveeramon jveeramon added the question General question label May 20, 2021
@sadielbartholomew
Copy link
Member

Hi, sorry cf-python does not currently support UGRID because the CF Conventions do not presently and formally include support for UGRID as a complementary standard. However, this is likely to change in the future because there are long-standing plans to unite the URGID (and SGRID) Conventions with the CF Conventions by tying given versions of each together (for more detail, please consult for example the proposal with discussion for tying UGRID and CF together from the CF Conventions perspective). If (but probably 'when') CF officially supports UGRID, the CF data model will be required too, so corresponding versions of cf-python, via its dependency cfdm, will do too.

As for the field in question you have referenced with a UGRID, I don't think there is a way at present to manipulate the UGRID mesh so it can be regridded. @davidhassell will know for sure...

@davidhassell
Copy link
Collaborator

Hi - UGRID will finally be in CF-1.11 (released December 2023), and cf-python v3.16.0 will have UGRID support for everything except writing to netCDF files. I.e. it will support reading, collapsing, regridding, arithmetic, etc. cf-plot will also be updated.

cf-python v3.16.0 will also be released in December 2023

@davidhassell davidhassell linked a pull request Nov 22, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants