From 5e398c446ed0e5b58ef56e845f0f5ef2b9934608 Mon Sep 17 00:00:00 2001 From: Lachlan Grose Date: Mon, 3 Feb 2025 17:53:33 +1100 Subject: [PATCH] fix: geoh5py block model was flipped --- LoopStructural/export/geoh5.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LoopStructural/export/geoh5.py b/LoopStructural/export/geoh5.py index 16486df3..c91501e0 100644 --- a/LoopStructural/export/geoh5.py +++ b/LoopStructural/export/geoh5.py @@ -78,8 +78,10 @@ def add_structured_grid_to_geoh5(filename, structured_grid, overwrite=True, grou if structured_grid.cell_properties is not None: for k, v in structured_grid.cell_properties.items(): data[k] = { - 'association': "CELL", - "values": np.rot90(v.reshape(structured_grid.nsteps - 1, order="F")).flatten(), + "association": "CELL", + "values": np.flipud( + np.rot90(v.reshape(structured_grid.nsteps - 1, order="F"), 1) + ).flatten(), } block = geoh5py.objects.BlockModel.create( workspace,