Skip to content

Commit

Permalink
Fix bug in liquid detection if all LWP are masked
Browse files Browse the repository at this point in the history
  • Loading branch information
tukiains committed Sep 5, 2024
1 parent 161253b commit b94539f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudnetpy/categorize/droplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _is_proper_peak() -> bool:
peak_width = height[top] - height[base]
peak_alt = height[peak] - height[0]
top_der = (lprof[peak] - lprof[top]) / (height[top] - height[peak])
is_positive_lwp = lwp_int[n] > min_lwp
is_positive_lwp = lwp_int[n] >= min_lwp
if _is_proper_peak():
is_liquid[n, base : top + 1] = True

Expand Down

0 comments on commit b94539f

Please sign in to comment.