Skip to content

Commit

Permalink
Add order='F' to read_tif
Browse files Browse the repository at this point in the history
  • Loading branch information
Teschl committed Jul 18, 2024
1 parent b0b2ce9 commit 346cbed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/topotoolbox/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def read_tif(path: str) -> GridObject:
grid.path = path
grid.name = os.path.splitext(os.path.basename(grid.path))[0]

grid.z = dataset.read(1).astype(np.float32)
grid.z = dataset.read(1).astype(np.float32, order='F')
grid.rows = dataset.height
grid.columns = dataset.width
grid.shape = grid.z.shape
Expand Down

0 comments on commit 346cbed

Please sign in to comment.