Skip to content

Commit

Permalink
flip bathy for dy monotocally ascending
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsail committed Nov 22, 2023
1 parent 5c9c65a commit 9c9feb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oceanmesh/geodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ def __init__(self, dem, crs="EPSG:4326", bbox=None, extrapolate=False):
dy=abs(
self.meta["transform"][4]
), # Note: grid spacing in y-direction is negative.
values=topobathy,
values=np.fliplr(topobathy), # we need to flip the array
extrapolate=extrapolate, # user-specified potentially "dangerous" option
)
super().build_interpolant()
Expand Down

0 comments on commit 9c9feb9

Please sign in to comment.