From 6d5c14e94cf5b8d7407bc8a49d925f78b8c3df63 Mon Sep 17 00:00:00 2001 From: "Soroosh.Mani" Date: Tue, 12 Dec 2023 08:52:11 -0500 Subject: [PATCH] Fix the inverted condition for combine elev timeseries --- ensembleperturbation/parsing/schism.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ensembleperturbation/parsing/schism.py b/ensembleperturbation/parsing/schism.py index cab3174c..19d332e1 100644 --- a/ensembleperturbation/parsing/schism.py +++ b/ensembleperturbation/parsing/schism.py @@ -827,7 +827,7 @@ def read_directory( @classmethod def _set_dry_to_null(cls, dataset: Dataset) -> Dataset: for var in cls.variables: - dataset[var] = dataset[var].where(dataset['dryFlagNode'] == 1, numpy.nan) + dataset[var] = dataset[var].where(dataset['dryFlagNode'] == 0, numpy.nan) return dataset