Commit 028a045f authored by Veit Lüschow's avatar Veit Lüschow

latest

parent bc9ca6d1
......@@ -17,6 +17,6 @@ def clean():
print(test)
for item in test:
if item.endswith(".nc") or item.endswith('.h5'):
if item.endswith(".nc"):
os.remove( os.path.join( directory, item ) )
print('deleted ', item)
\ No newline at end of file
This diff is collapsed.
......@@ -58,24 +58,34 @@ except NameError:
pass
# p = section('../acc/acc.averages.nc','u')
# p = section('good/20200401_1.averages.nc', 'u')
# p = section('/Users/veitlueschow/veros_exps/merjet-good/20200401_4.averages.nc', 'u')
# #%%
# v = xr.open_dataset('merjet.snapshot.nc').v.isel(zt=30)
# u = xr.open_dataset('merjet.snapshot.nc').u.isel(zt=30)
# zeta = np.gradient(u,axis=1) - np.gradient(v,axis=2)
# #%%
# plt.contourf(zeta[0,:,:],np.linspace(-0.3,0.3,10),cmap = 'RdBu_r',extend='both')
# plt.colorbar()
p = section('merjet.snapshot.nc', 'u')
#%%
p.select(2,'zt',30).plot.contourf(levels=15)
p = section('merjet.snapshot.nc', 'u')
p.select(133,'zt',15).plot.contourf(levels=15)
#%%
p = section('merjet.averages.nc', 'u')
step = 3
p = section('merjet.snapshot.nc', 'u')
step = 1
xpos = 5
plt.figure()
p.select(step,'xu',xpos).plot.contour(levels=15,vmin=-0.6,vmax=0.6,colors="black")
p.select(step,'xu',xpos).plot.contour(levels=15,vmin=-0.2,vmax=0.2,colors="black")
#
p = section('merjet.averages.nc', 'rho')
p = section('merjet.snapshot.nc', 'rho')
p.select(step,'xt',xpos).plot.contourf(levels=16,cmap='RdBu_r')
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment