From 52a7c85b44e0c28331c998f087cec385d9100a18 Mon Sep 17 00:00:00 2001 From: Zachary Hoppinen <56941602+ZachHoppinen@users.noreply.github.com> Date: Fri, 8 Sep 2023 13:55:31 -0600 Subject: [PATCH] Update wet_snow.py --- spicy_snow/processing/wet_snow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spicy_snow/processing/wet_snow.py b/spicy_snow/processing/wet_snow.py index 9c49298..a7b2c8f 100644 --- a/spicy_snow/processing/wet_snow.py +++ b/spicy_snow/processing/wet_snow.py @@ -239,6 +239,6 @@ def flag_wet_snow(dataset: xr.Dataset, inplace: bool = False) -> Union[None, xr. # if less than 50% are wet then keep the save value for wet_snow otherwise set to 1 dataset['wet_snow'] = dataset['wet_snow'].where(dataset['perma_wet'] < 0.5, 1) - # dataset['wet_snow'].loc[dict(time = ts)] = dataset.sel(time = ts)['wet_snow'].where(dataset.sel(time = ts)['ims'] == 4, 0) + dataset['wet_snow'].loc[dict(time = ts)] = dataset.sel(time = ts)['wet_snow'].where(dataset.sel(time = ts)['ims'] == 4, 0) return dataset