Skip to content

Commit

Permalink
Add note/todo on #413
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter9192 committed Jan 10, 2020
1 parent cbd16c4 commit db2a638
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions esmvalcore/cmor/_fixes/native6/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ def _fix_coordinates(self, cube):
# Fix coordinate units, dtypes and names
for coord_def in self.vardef.coordinates.values():
coord_name = coord_def.standard_name
# TODO: After merging #413
# the 2 lines above simplify to:
# for coord_name, coord_def in self.vardef.coordinates.items():
# and coord_def.axis == 'T' changes to coord_name == 'time'
# NOTE: perhaps we need a mapping between ERA5 and cmor coordinate names
coord = cube.coord(coord_name)
if coord_def.axis == 'T':
coord.convert_units('days since 1850-1-1 00:00:00.0')
Expand Down

0 comments on commit db2a638

Please sign in to comment.