Skip to content

Commit

Permalink
Merge pull request #963 from PCMDI/961_precip_patches
Browse files Browse the repository at this point in the history
Update calendar
  • Loading branch information
acordonez authored Aug 23, 2023
2 parents da35fe9 + d8605e1 commit 924aa9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,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)
Expand Down Expand Up @@ -207,7 +207,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"))

Expand Down

0 comments on commit 924aa9d

Please sign in to comment.