Skip to content

Commit

Permalink
Merge pull request #3425 from bjlittle/climatological-xml
Browse files Browse the repository at this point in the history
Climatological xml
  • Loading branch information
lbdreyer authored Sep 27, 2019
2 parents 5de1406 + ede76ca commit b103f0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/iris/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,8 @@ def xml_element(self, doc):
if self.var_name:
element.setAttribute('var_name', str(self.var_name))
element.setAttribute('units', repr(self.units))
if self.climatological:
element.setAttribute('climatological', str(self.climatological))

if self.attributes:
attributes_element = doc.createElement('attributes')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</dimCoord>
</coord>
<coord datadims="[0]">
<dimCoord bounds="[[113225.0, 113589.0]]" id="b8b34212" long_name="time" points="[113406.0]" shape="(1,)" standard_name="time" units="Unit('days since 1600-1-1 0:0:0', calendar='gregorian')" value_type="float64" var_name="time"/>
<dimCoord bounds="[[113225.0, 113589.0]]" climatological="True" id="b8b34212" long_name="time" points="[113406.0]" shape="(1,)" standard_name="time" units="Unit('days since 1600-1-1 0:0:0', calendar='gregorian')" value_type="float64" var_name="time"/>
</coord>
</coords>
<cellMethods>
Expand Down

0 comments on commit b103f0b

Please sign in to comment.