Skip to content

Commit 7ac3ba5

Browse files
committed
Make sure transect obs dims are transposed like model dims
1 parent 9ddd3d6 commit 7ac3ba5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mpas_analysis/ocean/plot_transect_subtask.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ def _plot_transect(self, remappedModelClimatology, remappedRefClimatology):
434434
bias = None
435435
else:
436436
refOutput = remappedRefClimatology[self.refFieldName]
437+
# make sure the dimension order is the same
438+
refOutput = refOutput.transpose(*modelOutput.dims)
437439
bias = modelOutput - refOutput
438440

439441
filePrefix = self.filePrefix

0 commit comments

Comments
 (0)