RE: Create netCDF from a text based triangular mesh with(out) Quickplot - General - Delft3D Flexible Mesh
At this page you can post questions or start discussions on general topics related to Delft3D Flexible Mesh.
Please select a proper category below (if possible), to post your message or reply to an existing post. Please add tags to your posts to simplify searching.
** PLEASE TAG YOUR POST! **
RE: Create netCDF from a text based triangular mesh with(out) Quickplot
Julius Schlumberger, modified 14 Days ago.Youngling Posts: 4 Join Date: 12/20/20 Recent Posts
I have a flexible triangular mesh grid (from SHYFEM (https://sites.google.com/site/shyfem/home)) , a text file with an extension .grd that contains all the information on nodes, elements and lines (and water depth). When trying to use Quickplot in both Suite version 2020.02 and 2021.03, it mentions that the netCDF export is still under development. It still produces a .nc file. And this can be read by QGIS when loading as a mesh but not when loaded into Delft3D-FM.
Is there any code available that explains what Quickplot is doing and what might go wrong?
Thanks and all the best,
Bert Jagers, modified 13 Days ago.Youngling Posts: 5 Join Date: 12/22/10 Recent Posts
QUICKPLOT writes a netCDF file containing the minimum amount of data for a UGRID compliant file. The MATLAB code for writing the netCDF file is located in the
Monica Bellucci, modified 12 Days ago.Youngling Posts: 1 Join Date: 2/25/20 Recent Posts
Bert Jagers, modified 11 Days ago.Youngling Posts: 5 Join Date: 12/22/10 Recent Posts
For a 2D mesh, the UGRID conventions don't require a definition of the mesh edges ... only the face (triangles) need to be defined.
However, since the beginning of the Delft3D FM code the mesh edges (or mesh links) have played an important role. It seems that as a result FM currently when reading a UGRID file always the edge_node_connectivity attribute (and associated array) requires.
I'll adjust the netCDF UGRID export code in QUICKPLOT to (always or optionally) create and write the edge-node connectivity even if the original data set didn't have an explicit numbering of the edges.
Julius Schlumberger, modified 10 Days ago.Youngling Posts: 4 Join Date: 12/20/20 Recent Posts
thanks you very much for your replies.
It would be great if you could give a heads up as soon the QUICKPLOT code is updated, but it seems to be a bit trickier than I hoped, so I will probably have to rebuild the grid in RGFGRID.