<div dir="ltr">Hi Matt, <div><br></div><div>MDAL basically supports a bunch of data formats that are mostly defined by the suppliers of the results. It comes with the fileformat (e.g. ASCII or netCDF, ...) + data spec (which arrays are defined/expected with which properties). So either you need to replicate one of the supported formats or </div><div>alternatively we can write a data reader for your format in MDAL.</div><div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Kind Regards,</div>Peter Petrík<div>CPO of Mergin Maps</div><div><a href="https://www.linkedin.com/in/peter-petrik/" target="_blank">LI</a>, <a href="https://www.merginmaps.com" target="_blank">Mergin Maps</a></div><div><br></div><div><br></div><div><br></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Aug 27, 2022 at 3:02 AM Matt Boyd via Qgis-user <<a href="mailto:qgis-user@lists.osgeo.org">qgis-user@lists.osgeo.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Thanks Richard,<br>
that looks interesting. I can now get regular grid / square mesh to<br>
display correctly but I'm working with tri-mesh and anything I try to<br>
load using that ends up like this..Just a line of squares.<br>
There's something obvious I'm missing in the format here.<br>
<br>
On Fri, Aug 26, 2022 at 4:56 PM Richard Duivenvoorde<br>
<<a href="mailto:rdmailings@duif.net" target="_blank">rdmailings@duif.net</a>> wrote:<br>
><br>
> Hi Matt,<br>
><br>
> I'm not a Mesh expert either, but I use (and create) netcdf using python using the<br>
> <a href="https://github.com/Unidata/netcdf4-python" rel="noreferrer" target="_blank">https://github.com/Unidata/netcdf4-python</a> module<br>
><br>
> Netcdf is pretty good supported in QGIS in my experience<br>
><br>
> Our data has also a time dimension so we use the CF convention [0] and fiddling around with the so called UGRID convention [1] But maybe that is both too much for a simple tin...<br>
><br>
> I Googled:<br>
> <a href="https://stackoverflow.com/questions/48864357/convert-hdf5-to-netcdf4-in-bash-r-python-or-ncl" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/48864357/convert-hdf5-to-netcdf4-in-bash-r-python-or-ncl</a><br>
> as being able to convert hdf5 to netcdf... didn't/couldn't try/test though..<br>
><br>
> Regards,<br>
><br>
> Richard Duivenvoorde<br>
><br>
> [0] <a href="https://en.wikipedia.org/wiki/Climate_and_Forecast_Metadata_Conventions" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/Climate_and_Forecast_Metadata_Conventions</a><br>
> [1] <a href="http://ugrid-conventions.github.io/ugrid-conventions/#data-variables" rel="noreferrer" target="_blank">http://ugrid-conventions.github.io/ugrid-conventions/#data-variables</a><br>
><br>
> On 8/26/22 03:32, Matt Boyd via Qgis-user wrote:<br>
> > Thanks, thats pretty helpful.<br>
> > I'm running QGIS 3.26.2-Buenos Aires installed from osgeo.<br>
> > under the xdmf directory there the xmf/hdf files look pretty similar<br>
> > to what I'm using but they won't load. there's a partial duplicate of<br>
> > the data in the hdf file in that directory as a 2dm file which does<br>
> > work.<br>
> > I'm still not sure if I'm supposed to be able to load the xmf/hdf<br>
> > files directly using mdal? I can easily drop out my hdf5 data to the<br>
> > 2dm format is this the proposed way to do it?<br>
> ><br>
> > Thanks again<br>
> > Matt<br>
> ><br>
> > On Fri, Aug 26, 2022 at 4:09 AM Delaz J via Qgis-user<br>
> > <<a href="mailto:qgis-user@lists.osgeo.org" target="_blank">qgis-user@lists.osgeo.org</a>> wrote:<br>
> >><br>
> >> Hi Matt,<br>
> >><br>
> >> The mdal repo has a number of mesh data<br>
> >> (<a href="https://github.com/lutraconsulting/MDAL/tree/master/tests/data" rel="noreferrer" target="_blank">https://github.com/lutraconsulting/MDAL/tree/master/tests/data</a>) but<br>
> >> whether these are simple meshes/formats or not is beyond my<br>
> >> understanding of this data type.<br>
> >><br>
> >> Hope that helps,<br>
> >><br>
> >> Harrissou<br>
> >><br>
> >> Le 25/08/2022 à 09:41, Matt Boyd via Qgis-user a écrit :<br>
> >><br>
> >>> Hi QGIS people,<br>
> >>> I asked something like this a couple of years ago, managed to find<br>
> >>> some workarounds and now that I know a little more about what I'm<br>
> >>> doing I could use a bit of help.<br>
> >>> I've got some simple tin meshes that I'd like to drop into QGIS, they<br>
> >>> get generated in a python modelling software I'm using.<br>
> >>> The data all sits in a single hdf5 file, points with coordinates, the<br>
> >>> cells which are just the indexes of 3 points, plus attributes for each<br>
> >>> point. About the simplest mesh setup I can imagine.<br>
> >>> I'm trying to find the simplest format that mdal supports with an<br>
> >>> example dataset so I can make something similar. (ideally hdf5 so I<br>
> >>> don't need to work out how to use anything new in python).<br>
> >>><br>
> >>> Any tips?<br>
> >>> Thanks<br>
> >>> Matt<br>
> >>> _______________________________________________<br>
> >>> Qgis-user mailing list<br>
> >>> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> >>> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> >>> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> >> _______________________________________________<br>
> >> Qgis-user mailing list<br>
> >> <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> >> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> >> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> > _______________________________________________<br>
> > Qgis-user mailing list<br>
> > <a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
> > List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
> > Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>