DHI / mikeio

Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files.
https://dhi.github.io/mikeio
BSD 3-Clause "New" or "Revised" License
136 stars 53 forks source link

Experiment: Dfsu - vertical aggregation #660

Closed ecomodeller closed 1 month ago

ecomodeller commented 4 months ago

@jsmariegaard what do you think about the idea of reshaping Dfsu 3d data into (time, layers, element_2d)?

For sigma only models, this shape seems very natural, for sigma-z, less so, as it doesn't always fit perfectly into a NumPy cube. 🤔

jsmariegaard commented 4 months ago

For sigma-only it would be super nice, but how would you handle the sigma-z situation? Often you would have many-many layers (100s) in a small part of the domain...

Previously I was thinking we could have a virtual 3d shape - so that you could index like it was 3d but we keep the shape as is?