Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
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: 5 additions & 0 deletions mip_convert/mip_convert/plugins/base/data/processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,11 @@ def calc_zostoga(thetao, thkcello, areacello, zfullo_0, so_0, rho_0_mean, deptho
Intercomparison Project. Geoscientific Model Development,
9(9), pp.3231-3296.
"""
# Ensure the vertical coordinate is named consistently before processing
for cube in [thetao, thkcello]:
if not cube.coords('depth'):
_z_axis(cube).rename('depth')

rho_mean = iris.cube.CubeList()

so_0 = iris.util.squeeze(so_0)
Expand Down
2 changes: 1 addition & 1 deletion mip_convert/mip_convert/save/cmor/cmor_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,5 @@ def zfactor(self, *args, **kwargs):
cmor.zfactor(*args, **kwargs)

def set_frequency(self, frequency, **kwargs):
self._debug_on_args('frequency', frequency, kwargs)
self._debug_on_args('frequency', [frequency], kwargs)
cmor.cmor.set_cur_dataset_attribute('frequency', frequency)