Skip to content

Commit

Permalink
Add missing var_name attribute to time coordinate
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter9192 committed Jan 7, 2021
1 parent 64bc2fe commit bb8e9c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion esmvalcore/preprocessor/_multimodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ def _compute_statistic(data, statistic_name):
def _put_in_cube(template_cube, cube_data, statistic, t_axis):
"""Quick cube building and saving."""
tunits = template_cube.coord('time').units
times = iris.coords.DimCoord(t_axis, standard_name='time', units=tunits)
times = iris.coords.DimCoord(t_axis,
standard_name='time',
units=tunits,
var_name='time')
times.bounds = None
times.guess_bounds()

Expand Down

0 comments on commit bb8e9c5

Please sign in to comment.