diff --git a/pySD/sdmout_src/ensembzarr.py b/pySD/sdmout_src/ensembzarr.py index 5bf57fc83..e93ecf8d8 100644 --- a/pySD/sdmout_src/ensembzarr.py +++ b/pySD/sdmout_src/ensembzarr.py @@ -6,7 +6,7 @@ Author: Clara Bayley (CB) Additional Contributors: ----- -Last Modified: Friday 12th January 2024 +Last Modified: Friday 19th January 2024 Modified By: CB ----- License: BSD 3-Clause "New" or "Revised" License @@ -141,6 +141,7 @@ def write_stdvars_to_ensembzarr(ensembdataset, vars4ensemb, stdname = ensembdataset+"/"+var+"_std" stdvar = ensemble_data(lambda x : np.std(x, axis=0), datasets, var) + stdvar = stdvar / np.sqrt(len(datasets)) zattrs = refset+"/"+var+"/.zattrs" write_matchingarray_to_storage(stdname, stdvar,