Skip to content

Commit a28a73a

Browse files
committed
Plot pressure adjustment in grounded ice region
1 parent 90a3d09 commit a28a73a

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

compass/ocean/tests/isomip_plus/viz/__init__.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@ def run(self):
9999
True, vmin=min_column_thickness + 1e-10,
100100
vmax=700, cmap_set_under='r',
101101
cmap_scale='log')
102+
plotter.plot_horiz_series(dsOut.surfacePressure,
103+
'surfacePressure', 'surfacePressure',
104+
True, vmin=1e5, vmax=1e7, cmap_scale='log')
105+
delSurfacePressure = dsOut.landIcePressure - dsOut.surfacePressure
106+
plotter.plot_horiz_series(delSurfacePressure,
107+
'delSurfacePressure', 'delSurfacePressure',
108+
True, vmin=1e5, vmax=1e7, cmap_scale='log')
102109

103110
if 'tidal' in expt:
104111
delssh = dsOut.ssh - dsOut.ssh[0, :]
@@ -111,10 +118,10 @@ def run(self):
111118
wct_thin = wct[:, idx_thin]
112119
wct_mean = wct_thin.mean(dim='nCells').values
113120
time = dsOut.daysSinceStartOfSim.values
114-
fig = plt.figure()
121+
plt.figure()
115122
plt.plot(time, wct_mean, '.')
116-
fig.set_xlabel('Time (days)')
117-
fig.set_ylabel('Mean thickness of thin film (m)')
123+
plt.xlabel('Time (days)')
124+
plt.ylabel('Mean thickness of thin film (m)')
118125
plt.savefig('wct_thin_t.png')
119126
plt.close()
120127

0 commit comments

Comments
 (0)