Skip to content

Commit

Permalink
I saw an error on find_cline
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiaraMonforte committed Nov 5, 2024
1 parent 320a911 commit 9a90894
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion glidertest/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def find_cline(var, depth_array):
Find the depth of the maximum vertical difference for a specified variables
Input data has to be gridded
"""
_necessary_variables_check(ds, [var])
clin = np.where(np.abs(np.diff(np.nanmean(var, axis=0))) == np.nanmax(np.abs(np.diff(np.nanmean(var, axis=0)))))
return np.round(depth_array[0, clin[0]], 1)

Expand Down

0 comments on commit 9a90894

Please sign in to comment.