Documentation of getctm


Global Index (short | long) | Local contents | Local Index (short | long)


Function Synopsis

ct = getct(tim);

Cross-Reference Information

This function calls

Listing of function getctm

function ct = getct(tim);
if nargin == 0;
  tim = 1:12000;
end
chdirstr = ['cd ' pwd '; pwd'];
cd /home/disk/hayes2/dvimont/csiro/data/Individual_levels
nc = netcdf('temp_M_L1_1000_years_new.nc', 'nowrite');
  lat = nc{'latitude', 1}(:);
  lon = nc{'longitude', 1}(:);
  [xk, yk] = keep_var([180 270 -6 6], lon, lat);
  ct = nc{'temp', 1}(tim, 1, yk, xk);
nc = close(nc);
ct = squeeze(mean2(mean2(shiftdim(ct, 1))));
eval(chdirstr);