From bb85eb65f499bc3ddecb7bc3dd26bf5128975a40 Mon Sep 17 00:00:00 2001 From: Jiarui Dong Date: Fri, 17 Jan 2025 21:43:46 -0500 Subject: [PATCH] Fix a logic error --- ush/ioda/bufr2ioda/bufr_sfcsno.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ush/ioda/bufr2ioda/bufr_sfcsno.py b/ush/ioda/bufr2ioda/bufr_sfcsno.py index 0eea3c3f3..cc1a5ce68 100755 --- a/ush/ioda/bufr2ioda/bufr_sfcsno.py +++ b/ush/ioda/bufr2ioda/bufr_sfcsno.py @@ -121,7 +121,7 @@ def _make_obs(comm, input_path, mapping_path): snod = container.get('variables/totalSnowDepth') snod[(sogr <= 11.0) & snod.mask] = 0.0 snod[(sogr == 15.0) & snod.mask] = 0.0 - snod.mask = (snod < 0.0) & snod.mask + snod.mask = (snod < 0.0) | snod.mask container.replace('variables/totalSnowDepth', snod) snod_upd = container.get('variables/totalSnowDepth')