Commit ea637c43 authored by Klaus Zimmermann's avatar Klaus Zimmermann
Browse files

Fix Monthly period (closes #106)

parent c4506f06
......@@ -27,12 +27,15 @@ class Annual(Period):
class Monthly(Period):
def __init__(self):
super().__init__('month_number', 'mon')
super().__init__(['year', 'month_number'], 'mon')
def add_coord_categorisation(self, cube):
iris.coord_categorisation.add_year(cube,
self.input_coord,
name='year')
iris.coord_categorisation.add_month_number(cube,
self.input_coord,
name=self.output_coord)
name='month_number')
return self.output_coord
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment