FLO-2DSoftware / qgis-flo-2d-plugin

A plugin for pre-processing/post-processing FLO-2D models
7 stars 7 forks source link

MDAL API #945

Open FLO-2DKaren opened 1 year ago

FLO-2DKaren commented 1 year ago

Study the MDAL library and GitHub Repository. Learn how to build a MDAL API

FLO-2DKaren commented 1 year ago

We will modify this with subtasks as we learn more about the MDAL libraries.

FLO-2DKaren commented 1 year ago

@rpachaly

Study the API documentation to see how we can apply this.

https://www.mdal.xyz/api/python_api.html#python-api

FLO-2DKaren commented 1 year ago

Learn about MDAL https://github.com/lutraconsulting/MDAL

Search this repo for flo2d.

FLO-2DKaren commented 1 year ago

How to use the current MDAL tools https://www.youtube.com/watch?v=rLnPxCkiahw&list=PLkT3KNZwX6zkEAJ_4qB_57r0Id_9cWgPr&index=3&pp=gAQBiAQB

rpachaly commented 1 year ago

I'm trying to find the best way to map FLO 2D results to QGIS. I'm going to write down some of my findings here just for documentation purposes.

  1. Meshio (https://github.com/nschloe/meshio) - This library allows us to use many kinds of mesh and, using the MDAL-api, convert it to a mesh file that MDAL understands. Then, we can use QGIS to map the results.
  1. Animating Time Series Data (https://www.qgistutorials.com/en/docs/3/animating_time_series.html). We need to create a shapefile containing all data series and then use the QGIS Temporal Controller.
  1. Ply: It does not allow time-dependent data.

  2. NetCDF: We can add out output data to a NetCDF format and then open on QGIS as a mesh.

FLO-2DKaren commented 1 year ago

@rpachaly I'm going to provide some simplifying notes here.

  1. Let me look into this a bit. I'll give you some better feedback once I have a chance to review a few things.
  2. Let's not worry about the animation stuff right now because it works well with the general MDAL tool and I don't anticipate changing anything in the near future. I think we can ask Noemi to help us by adding the Max and Min Values to the timedep.hdf5.
  3. If we can use NetCDF, we can use hdf5. It's just a matter of figuring out the setup. We want to keep our output in hdf5 because that is what our District Team is using.
rpachaly commented 1 year ago

Ok!

In the meantime, is there anything else that I can be doing? Otherwise, I'll look into the issues to see if I can start working on something.

FLO-2DKaren commented 1 year ago

Let me add some stuff to the project list.