Skip to content

Commit

Permalink
fix: geoh5py block model was flipped
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Feb 3, 2025
1 parent 6a3fcdc commit 5e398c4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions LoopStructural/export/geoh5.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 5e398c4

Please sign in to comment.