diff --git a/mpas_analysis/ocean/plot_hovmoller_subtask.py b/mpas_analysis/ocean/plot_hovmoller_subtask.py index fe7122055..1c992e88a 100644 --- a/mpas_analysis/ocean/plot_hovmoller_subtask.py +++ b/mpas_analysis/ocean/plot_hovmoller_subtask.py @@ -350,7 +350,14 @@ def run_task(self): assert(np.all(refMask.values == mask.values)) refField = refField.where(mask, drop=True) assert(field.shape == refField.shape) + # make sure the start and end time sare the same + assert(int(field.Time.values[0]) == int(refField.Time.values[0])) + assert(int(field.Time.values[-1]) == int(refField.Time.values[-1])) + # we're seeing issues with slightly different times between runs + # so let's copy them + refField['Time'] = field.Time diff = field - refField + assert(field.shape == diff.shape) refTitle = self.controlConfig.get('runs', 'mainRunName') diffTitle = 'Main - Control'