Skip to content

Commit 33ff44e

Browse files
committed
Correct grounded budgets
Previous commit used total calving and facemelting on plot instead of just grounded components.
1 parent b189daa commit 33ff44e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

landice/output_processing_li/plot_mass_balance.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,17 @@
107107
GLMigrationflux = -f.variables['groundingLineMigrationFlux'][:]/1.0e12
108108
ax[0,1].plot(yr, GLMigrationflux, label="GL migration flux")
109109

110-
ax[0,1].plot(yr, SMBg+BMBg+calv+FMF+GLflux+GLMigrationflux, "--", label="total")
110+
ax[0,1].plot(yr, SMBg+BMBg+calvg+FMFg+GLflux+GLMigrationflux, "--", label="total")
111111

112112
ax[0,1].legend(loc='best', prop={'size': 6})
113113

114114
# --- Figure: cumulative mass change ---
115-
ax[1,1].set_xlabel('Year')
116-
ax[1,1].set_ylabel('Cumulative mass change (Gt)')
117-
118115
ax[1,1].plot(yr, volGround - volGround[0], 'k', linewidth=3, label='total mass change')
119116
ax[1,1].plot(yr, (SMBg*dyr).cumsum(), label="SMB")
120117
ax[1,1].plot(yr, (BMBg*dyr).cumsum(), label="BMB")
121118

122-
ax[1,1].plot(yr, (calv*dyr).cumsum(), label='calving')
123-
ax[1,1].plot(yr, (FMF*dyr).cumsum(), label='facemelt')
119+
ax[1,1].plot(yr, (calvg*dyr).cumsum(), label='calving')
120+
ax[1,1].plot(yr, (FMFg*dyr).cumsum(), label='facemelt')
124121
ax[1,1].plot(yr, (GLflux*dyr).cumsum(), label="GL flux")
125122
ax[1,1].plot(yr, (GLMigrationflux*dyr).cumsum(), label="GL Migration flux")
126123
ax[1,1].plot(yr, ( (SMBg+BMBg+calvg+FMFg+GLflux+GLMigrationflux) * dyr).cumsum(), "--", label='total budget')

0 commit comments

Comments
 (0)