Global Index (short | long) | Local contents | Local Index (short | long)
global_xy(lat, lon);
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)];
This function calls | |
---|---|
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