Skip to content

Commit dd1cb06

Browse files
committed
Plot variables at the bottom of the channel instead of the top
1 parent 620ec1e commit dd1cb06

File tree

1 file changed

+5
-5
lines changed
  • polaris/tasks/ocean/barotropic_channel

1 file changed

+5
-5
lines changed

polaris/tasks/ocean/barotropic_channel/viz.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def run(self):
4343
ds_mesh = xr.load_dataset('mesh.nc')
4444
ds_init = xr.load_dataset('init.nc')
4545
ds_out = xr.load_dataset('output.nc')
46-
ds_out = ds_out.isel(nVertLevels=0)
46+
ds_out = ds_out.isel(nVertLevels=-1)
4747

4848
cell_mask = ds_init.maxLevelCell >= 1
4949
vertex_mask = ds_init.boundaryVertex == 0
@@ -59,7 +59,7 @@ def run(self):
5959
plot_horiz_field(
6060
ds_mesh,
6161
ds['velocityZonal'],
62-
f'velocity_zonal_t{t_index}.png',
62+
f'velocity_zonal_t{t_index}_zbot.png',
6363
vmin=-vmax,
6464
vmax=vmax,
6565
cmap='cmo.balance',
@@ -68,7 +68,7 @@ def run(self):
6868
plot_horiz_field(
6969
ds_mesh,
7070
ds['velocityMeridional'],
71-
f'velocity_meridional_t{t_index}.png',
71+
f'velocity_meridional_t{t_index}_zbot.png',
7272
vmin=-vmax,
7373
vmax=vmax,
7474
cmap='cmo.balance',
@@ -79,7 +79,7 @@ def run(self):
7979
plot_horiz_field(
8080
ds_mesh,
8181
ds['relativeVorticity'],
82-
f'relative_vorticity_t{t_index}.png',
82+
f'relative_vorticity_t{t_index}_zbot.png',
8383
vmin=-vmax,
8484
vmax=vmax,
8585
cmap='cmo.balance',
@@ -90,7 +90,7 @@ def run(self):
9090
plot_horiz_field(
9191
ds_mesh,
9292
ds['circulation'],
93-
f'circulation_t{t_index}.png',
93+
f'circulation_t{t_index}_zbot.png',
9494
vmin=-vmax,
9595
vmax=vmax,
9696
cmap='cmo.balance',

0 commit comments

Comments
 (0)