Skip to content

Commit

Permalink
bugfix in the bathymetry
Browse files Browse the repository at this point in the history
  • Loading branch information
simone-silvestri committed Jun 19, 2024
1 parent a0682f0 commit 7f16190
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Bathymetry.jl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ Keyword Arguments:
- height_above_water: limits the maximum height of above-water topography (where h > 0). If
`nothing` the original topography is retained
- minimum_depth: minimum depth for the shallow regions. `h > minimum_depth` will be considered land
- minimum_depth: minimum depth for the shallow regions, defined as a positive value.
`h > - minimum_depth` will be considered land
- dir: directory of the bathymetry-containing file
Expand Down Expand Up @@ -228,7 +229,7 @@ function interpolate_bathymetry_in_passes(native_h, target_grid;
h_data = Array(interior(target_h, :, :, 1))

if minimum_depth > 0
shallow_ocean = h_data .> minimum_depth
shallow_ocean = h_data .> - minimum_depth
h_data[shallow_ocean] .= 0
end

Expand Down

0 comments on commit 7f16190

Please sign in to comment.