Open jvandens opened 3 months ago
write_mdim()
will write out the geometries to e.g. a netCDF file with discrete geometries (polygons); I don't know how the mesh stuff in qgis handles those, but it seems they could be quads. Any ideas or suggestions, @mdsumner ?
Thanks @edzer ,if it helps @mdsumner , attached is the above star saved with write_mdim()
. When loaded into QGIS, it seems to recognize some of the data that is in there, but is confused by the geometry and other dimensions (see first 2 screenshots)
For reference, the mesh are polygon quads, see last screenshot for what they should look like.
There should be 5 faces, 12 vertices repeated over 10 depths/elevations and 8 timesteps. With 2 datasets (entero and Fcoli) at each face.
any thoughts on this?
Could you show (or sketch) a graph that shows what you would want to get?
Hi @edzer
I think the main issue is just a question of file format. I'm looking for a way that I can save a stars
object into some format that can be read in as a "mesh layer" in QGIS (and from there, leverage all of the visualization tools in QGIS). This video has a really great overview of all those features, but it's missing the critical one of how to load the data in!
From what I gather, QGIS mesh's should be able to read any of the mdal formats described here (but not all formats support all features). I think netCDF would do it but I'm not sure how it needs to be structured (and QGIS documentation doesn't seem to provide any examples and/or has broken links to them)
Here are two screenshots from that video that gives the idea.
at 3:34: Mesh's support polygons with data described at faces and can be extruded over Depth/elevation and time dimensions (as my stars
example in the OP)
at 11:31: attached to each mesh can be any number of "datasets" which I think map to the attributes of the stars
object.
Thanks!
Consider the star object below, is there a way to save this using
write_mdim()
or other method that is compatible with viewing in QGIS as a Mesh Layer? https://docs.qgis.org/3.34/en/docs/user_manual/working_with_mesh/mesh.html#For reference, this star object contains a polygon geometry stacked in z (depth) dimension and time dimension with 2 attributes (dataset groups in Mesh layer terminology)