Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autotest/t007_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def test_export_array():
if "yllcorner" in line.lower():
val = float(line.strip().split()[-1])
if rotate:
assert np.abs(val - m.modelgrid.extent[1]) < 1e-6
assert np.abs(val - m.modelgrid.extent[2]) < 1e-6
else:
assert np.abs(val - m.modelgrid.yoffset) < 1e-6
if "cellsize" in line.lower():
Expand Down
2 changes: 1 addition & 1 deletion flopy/export/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ def export_array(
if rotate is not None:
a = rotate(a, modelgrid.angrot, cval=nodata)
height_rot, width_rot = a.shape
xmin, ymin, xmax, ymax = modelgrid.extent
xmin, xmax, ymin, ymax = modelgrid.extent
dx = (xmax - xmin) / width_rot
dy = (ymax - ymin) / height_rot
cellsize = np.max((dx, dy))
Expand Down