setSSH
Set a barotropic geostrophic state from sea-surface height.
Declaration
setSSH(ssh,options)
Parameters
sshfunction handle accepting horizontal coordinate arrays and returning height in metersoptions.shouldRemoveMeanPressureremove the horizontal mean before initialization; defaultfalse
Discussion
Set a barotropic geostrophic state from sea-surface height.
ssh is a function handle evaluated on the horizontal grid. The transform converts height to geostrophic streamfunction using \(\psi=g\eta/f\). Set shouldRemoveMeanPressure=true to remove the horizontal mean first; the default is false.
wvt.setSSH(@(x,y)0.1*cos(2*pi*x/wvt.Lx));