uvrot.m
author A.M. Thurnherr <ant@ldeo.columbia.edu>
Tue, 20 Oct 2009 16:23:49 -0400
changeset 0 0a450563f904
permissions -rw-r--r--
VIX_6: first version for Mercurial release

function [ur,vr]=uvrot(u,v,rot);
% function [ur,vr]=uvrot(u,v,rot);
% rotate velocities
% by angel rot in deg
% M.Visbeck
rot=-rot*pi/180;
cr=cos(rot);
sr=sin(rot);
ur=u.*cr-v.*sr;
vr=u.*sr+v.*cr;
return