--- MITgcm_contrib/osse/utils/cyl2cartuv.m 2004/06/08 14:14:44 1.1 +++ MITgcm_contrib/osse/utils/cyl2cartuv.m 2004/07/12 21:43:16 1.2 @@ -5,13 +5,14 @@ % c is a 2-D or 3-D scalar or z-vector field % xi,yi are vectors of the new regular lat-lon grid to interpolate to. % z is the interpolated data with dimensions of size(xi) by size(yi). +% theta=0 is at 12 o'clock. % % e.g. % >> t=rdmds('Ttave.0000513360'); % >> xi=-179:2:180;yi=-89:2:90; % >> ti=cyl2cart(x,y,t,xi,yi); % -% $Header: /home/ubuntu/mnt/e9_copy/MITgcm_contrib/osse/utils/cyl2cartuv.m,v 1.1 2004/06/08 14:14:44 afe Exp $ +% $Header: /home/ubuntu/mnt/e9_copy/MITgcm_contrib/osse/utils/cyl2cartuv.m,v 1.2 2004/07/12 21:43:16 afe Exp $ if ~isequal(size(thetav),size(rhov)) error('Theta and rho vector arrays must be same size');