Skip to content

Commit

Permalink
Added a couple files that were missing from the first commit and upda…
Browse files Browse the repository at this point in the history
…ted animate_trajectories to properly plot a background snapshot of the velocity of the ocean currents
  • Loading branch information
alex-huth committed Dec 27, 2022
1 parent 399df71 commit b0bfa83
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/a68/RUN1p
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rm iceberg_trajectories.nc
rm iceberg_trajectories.nc.*
rm bond_trajectories.nc
rm bond_trajectories.nc.*
srun -n1 ./../../build/bergs.x


1 change: 1 addition & 0 deletions tests/a68/animate_trajectories.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ def onClick(event):
oscar=xr.load_dataset(f'{dir}/a68_experiment_ocean_surf_vel_oscar_dec2020_HOURLY_ll_p125.nc')
#oscar.isel(time=400).plot.quiver(x="lon",y="lat",u="uo",v="vo",hue='vel',vmax=0.2, scale=8)
vv=oscar.isel(time=400)
vv['vel']=np.sqrt(vv.uo*vv.uo+vv.vo*vv.vo)
norm=plt.cm.colors.Normalize(vmin=0,vmax=0.35)
if (old==False):
ax1.quiver(vv.lon.values,vv.lat.values,vv.uo.values,vv.vo.values,vv.vel.values,scale=8,cmap='viridis',norm=norm,transform=ccrs.PlateCarree())
Expand Down
3 changes: 3 additions & 0 deletions tests/a68/diag_table
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"icebergs test"
1 1 1 0 0 0

0 comments on commit b0bfa83

Please sign in to comment.