load merheattrans_historical1_1976-2005.mat

FNAME='merheattrans.nc';
FLDS={'lat','merheattrans_srf_360day','merheattrans_srf_noleap','merheattrans_toa_360day','merheattrans_toa_noleap'};
for FLD=FLDS
  nccreate(FNAME,char(FLD),'datatype','double','dimensions',{'lat',length(lat)});
  ncwrite(FNAME,char(FLD),eval(char(FLD)));
end 
