Skip to content

Commit

Permalink
Update calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
acordonez authored Jul 19, 2023
1 parent 01474be commit d8605e1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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"))

Expand Down

0 comments on commit d8605e1

Please sign in to comment.