Notebook to examined 3.6 test runs
import netCDF4 as nc
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
d = nc.Dataset('/data/nsoontie/MEOPAR/SalishSea/results/2Ddomain/3.4-compare/SalishSea_1h_20020915_20020921_grid_T.nc')
sal = d.variables['vosaline'][:]
sal = np.ma.masked_values(sal,0)
deps = d.variables['deptht'][:]
temp = d.variables['votemper'][:]
temp = np.ma.masked_values(temp,0)
ssh = d.variables['sossheig'][:]
d = nc.Dataset('/data/nsoontie/MEOPAR/SalishSea/results/2Ddomain/3.4-compare/SalishSea_1h_20020915_20020921_grid_U.nc')
U = d.variables['vozocrtx'][:]
U = np.ma.masked_values(U,0)
depsU = d.variables['depthu'][:]
smin=22
smax=34
t=0
y=2
plt.pcolormesh(np.arange(0,sal.shape[3]),deps,sal[t,:,y,:],vmin=smin,vmax=smax)
plt.axis([0,1100,400,0])
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed8536ba28>
t=60
plt.pcolormesh(np.arange(0,sal.shape[3]),deps,sal[t,:,y,:],vmin=smin,vmax=smax)
plt.axis([0,1100,400,0])
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed854b5128>
t=120
plt.pcolormesh(np.arange(0,sal.shape[3]),deps,sal[t,:,y,:],vmin=smin,vmax=smax)
plt.axis([0,1100,400,0])
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed854c1c20>
tmin=3; tmax=10
t=0
plt.pcolormesh(np.arange(0,sal.shape[3]),deps,temp[t,:,y,:],vmin=tmin,vmax=tmax)
plt.axis([0,1100,400,0])
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed7ef7bea8>
t=120
plt.pcolormesh(np.arange(0,sal.shape[3]),deps,temp[t,:,y,:],vmin=tmin,vmax=tmax)
plt.axis([0,1100,400,0])
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed7ee4e128>
t=0
umin=-.5
umax=0.5
plt.pcolormesh(np.arange(0,U.shape[3]),depsU,U[t,:,y,:],vmin=umin,vmax=umax)
plt.axis([0,1100,400,0])
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed7e595830>
t=100
plt.pcolormesh(np.arange(0,U.shape[3]),depsU,U[t,:,y,:],vmin=umin,vmax=umax)
plt.axis([0,1100,400,0])
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed7e47cab8>
t=120
plt.pcolormesh(np.arange(0,U.shape[3]),depsU,U[t,:,y,:],vmin=umin,vmax=umax)
plt.axis([0,1100,400,0])
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed7e2f1128>
Tidal signal? Look at boundary
plt.plot(U[:,0,y,3])
[<matplotlib.lines.Line2D at 0x7fed7e1c5710>]
I don't see a tidal signal at all. ssh?
plt.plot(ssh[:,y,10])
[<matplotlib.lines.Line2D at 0x7fed7e102d10>]
The amplitude seemse reall small but this looks like a tidal response. Howevever, the frequency is weird. Shoudnt there be two mins a day? this looks like 3 or 4.
plt.pcolormesh(ssh[:,y,:],vmin=-3,vmax=3)
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed7de92cb0>
plt.pcolormesh(U[:,0,y,:],vmin=-3,vmax=3)
plt.colorbar()
<matplotlib.colorbar.Colorbar instance at 0x7fed7c389e18>
Ok, I definitely have tides in 3.4 but they aren't there in 3.6... Check namelists.