uvrot.m
author A.M. Thurnherr <athurnherr@yahoo.com>
Wed, 15 Apr 2015 09:55:34 +0000
changeset 16 54126cc9bb4a
parent 0 0a450563f904
permissions -rw-r--r--
IX_11beta set to Diana Cardoso for testing

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