Skip to content

Commit

Permalink
Update OTIS.py
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutterley committed Jul 29, 2024
1 parent cb1217e commit 64e0303
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyTMD/io/OTIS.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
UPDATE HISTORY:
Updated 07/2024: added crop and bounds keywords for trimming model data
convert the crs of bounds when cropping model data
Updated 06/2024: change int32 to int to prevent overflows with numpy 2.0
Updated 02/2024: don't overwrite hu and hv in _interpolate_zeta
changed variable for setting global grid flag to is_global
Expand Down Expand Up @@ -675,7 +676,7 @@ def read_constants(

# crop tide model data to (buffered) bounds
if kwargs['crop'] and np.any(kwargs['bounds']):
hc, xi, yi = _crop(hc, mx, my,
hc, _, _ = _crop(hc, mx, my,

Check warning on line 679 in pyTMD/io/OTIS.py

View check run for this annotation

Codecov / codecov/patch

pyTMD/io/OTIS.py#L679

Added line #L679 was not covered by tests
bounds=bounds, is_geographic=is_geographic)
# replace original values with extend matrices
if is_global:
Expand Down

0 comments on commit 64e0303

Please sign in to comment.