Skip to content

Commit

Permalink
Fix nan's that were somehow reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcvey3 committed Oct 15, 2024
1 parent 8657815 commit 35c5ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mhkit/dolfyn/adp/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ def water_depth_from_amplitude(ds, thresh=10, nfilt=None):
for ip in range(ds["vel"].shape[1]):
itmp = np.min(inds[:, ip])
if (edf[itmp:, :, ip] < thresh).all():
d[ip] = np.NaN
d[ip] = np.nan

if nfilt:
dfilt = medfiltnan(d, nfilt, thresh=4)
dfilt[dfilt == 0] = np.NaN
dfilt[dfilt == 0] = np.nan
d = dfilt

range_offset = __check_for_range_offset(ds)
Expand Down

0 comments on commit 35c5ff2

Please sign in to comment.