Documentation of global_xy


Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)


Function Synopsis

global_xy(lat, lon);

Help text


   global_xy(lat, lon);

   Sets:
        YAX = lat; 
        XAX = lon;

   and, for some routines:
        YAX2 = YAX*ones(1, nlon);
        XAX2 = ones(nlat, 1)*XAX';

   and, if diff(FRAME(1:2))==360;
        YAX3 = [YAX2 YAX2(:,1)];
        XAX3 = [XAX2 XAX2(:,1)];


Cross-Reference Information

This function calls

Listing of function global_xy

function global_xy(lat, lon);

global XAX YAX XAX2 YAX2 FRAME XAX3 YAX3
evalin('caller', 'global XAX YAX XAX2 YAX2 FRAME XAX3 YAX3');

YAX = lat(:); nlat = length(YAX);
XAX = lon(:); nlon = length(XAX);

XAX2 = ones(nlat, 1)*XAX';
YAX2 = YAX*ones(1, nlon);

if diff(FRAME(1:2))==360;
  XAX3 = [XAX2 XAX2(:,1)+360];
  YAX3 = [YAX2 YAX2(:,1)];
else
  XAX3 = XAX2;
  YAX3 = YAX2;
end