uvrot.m
author A.M. Thurnherr <athurnherr@yahoo.com>
Wed, 18 Sep 2013 14:29:58 +0000
changeset 11 d71acdec556a
parent 0 0a450563f904
permissions -rw-r--r--
10beta to be emailed to Eric Firing on Sep 18

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