From d8605e1ea6a26812399074a8c7abef4117654c86 Mon Sep 17 00:00:00 2001 From: Ana Ordonez Date: Wed, 19 Jul 2023 14:06:18 -0700 Subject: [PATCH] Update calendar --- .../lib/lib_variability_across_timescales.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcmdi_metrics/precip_variability/lib/lib_variability_across_timescales.py b/pcmdi_metrics/precip_variability/lib/lib_variability_across_timescales.py index 5f54506c7..2eaaf0673 100644 --- a/pcmdi_metrics/precip_variability/lib/lib_variability_across_timescales.py +++ b/pcmdi_metrics/precip_variability/lib/lib_variability_across_timescales.py @@ -130,7 +130,7 @@ def ClimAnom(d, ntd, syr, eyr, cal): # Year segment nyr = eyr - syr + 1 - if "gregorian" in cal: + if "gregorian" in cal or "standard" in cal: ndy = 366 ldy = 31 dseg = np.zeros((nyr, ndy, ntd, d.shape[1], d.shape[2]), dtype=float) @@ -171,7 +171,7 @@ def ClimAnom(d, ntd, syr, eyr, cal): # Anomaly anom = np.array([]) - if "gregorian" in cal: + if "gregorian" in cal or "standard" in cal: for iyr, year in enumerate(range(syr, eyr + 1)): yrtmp = d.sel(time=slice(str(year) + "-01-01 00:00:00",str(year) + "-12-" + str(ldy) + " 23:59:59"))