lutraconsulting / MDAL

Mesh Data Abstraction Library
http://www.mdal.xyz/
MIT License
160 stars 50 forks source link

write support for FLO-2d #148

Closed PeterPetrik closed 4 years ago

PeterPetrik commented 4 years ago

FLO-2D is based on HDF5 storage with generic reader, see https://github.com/lutraconsulting/MDAL/blob/1bf4f95e292222267bc6382deba8adcd42256627/mdal/frmts/mdal_flo2d.cpp#L510

the reader should be extended to implement also virtual void load( const std::string &uri, Mesh *mesh, MDAL_Status *status );.

the workflow

  1. user calculates new FLO2D dataset in mesh calculator in QGIS -> stores to new file
  2. MDAL creates new file with the same structure as TIMDEP.HDF5
  3. QGIS append this new dataset(s) the the mesh

if user wants to add new array to existing file (e.g.TIMEDEP.HDF5) it will be appended to the time arrays