uvrot.m
author A.M. Thurnherr <ant@ldeo.columbia.edu>
Tue, 08 Jul 2014 21:50:22 -0400
changeset 14 f7f35d9629ab
parent 0 0a450563f904
permissions -rw-r--r--
version used on FZ1

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