Skip to content

Commit

Permalink
Compute MOC south. transport from bottom up
Browse files Browse the repository at this point in the history
To match changes made in E3SM in
E3SM-Project/E3SM#5170, this merge changes
the transport computation into the southern boundary of an MOC
region to work from the bottom up rather than the top down.
  • Loading branch information
xylar committed Sep 7, 2022
1 parent 2669d9d commit d8c5ae6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpas_analysis/ocean/streamfunction_moc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ def _compute_moc(latBins, nz, latCell, regionCellMask, transportZ,
"""compute meridionally integrated MOC streamfunction"""

mocTop = np.zeros([np.size(latBins), nz + 1])
mocTop[0, range(1, nz + 1)] = transportZ.cumsum()
mocTop[0, nz-1:-1:-1] = - transportZ[nz-1:-1:-1].cumsum()
for iLat in range(1, np.size(latBins)):
indlat = np.logical_and(np.logical_and(
regionCellMask == 1, latCell >= latBins[iLat - 1]),
Expand Down

0 comments on commit d8c5ae6

Please sign in to comment.