Skip to content

Commit e256c2e

Browse files
committed
Update
1 parent c9ee6d7 commit e256c2e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,14 @@
136136
"source": [
137137
"cmoriser.run()"
138138
]
139+
},
140+
{
141+
"cell_type": "code",
142+
"execution_count": null,
143+
"id": "8b58dd51-d6ab-499e-a993-8fbc782fc6ad",
144+
"metadata": {},
145+
"outputs": [],
146+
"source": []
139147
}
140148
],
141149
"metadata": {

src/access_mopper/cmip6_cmoriser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def write(self):
280280

281281
time_var = self.ds[self.cmor_name].coords["time"]
282282
units = time_var.attrs["units"]
283-
calendar = time_var.attrs.get("calendar", "standard")
283+
calendar = time_var.attrs.get("calendar", "standard").lower()
284284
times = num2date(time_var.values[[0, -1]], units=units, calendar=calendar)
285285
start, end = [f"{t.year:04d}{t.month:02d}" for t in times]
286286
time_range = f"{start}-{end}"

0 commit comments

Comments
 (0)