From 435553cba9f3183a376c933804606cf48d21eeca Mon Sep 17 00:00:00 2001 From: Filipe Fernandes Date: Fri, 15 Mar 2024 13:35:07 -0300 Subject: [PATCH] port change from #35 --- ioos_qc/qartod.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ioos_qc/qartod.py b/ioos_qc/qartod.py index c256dfc..0eaf2e5 100644 --- a/ioos_qc/qartod.py +++ b/ioos_qc/qartod.py @@ -372,8 +372,9 @@ def check(self, tinp, inp, zinp): with np.errstate(invalid='ignore'): z_idx = (~zinp.mask) & (zinp >= m.zspan.minv) & (zinp <= m.zspan.maxv) else: - # Only test the values with masked Z, ie values with no Z - z_idx = zinp.mask + # If there is no z data in the config, don't try to filter by depth! + # Set z_idx to all True to prevent filtering + z_idx = np.ones(inp.size, dtype=bool) # Combine the T and Z indexes values_idx = (t_idx & z_idx)