Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion esmvalcore/preprocessor/_multimodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ def _put_in_cube(template_cube, cube_data, statistic, t_axis):
cspec = [(times, 0), (lats, 1), (lons, 2)]
# plevs
elif len(template_cube.shape) == 4:
plev = template_cube.coord('air_pressure')
if 'air_pressure' in coord_names:
plev = template_cube.coord('air_pressure')
elif 'altitude' in coord_names:
plev = template_cube.coord('altitude')
Comment thread
axel-lauer marked this conversation as resolved.
cspec = [(times, 0), (plev, 1), (lats, 2), (lons, 3)]
elif len(template_cube.shape) == 1:
cspec = [
Expand Down