clear

nc = netcdf.open('b30.042a.cam2.h0.2066-08.nc.procs1024.r96.out.nc','NC_NOWRITE');

varid = netcdf.inqVarID(nc,'WAVELENGTH_LRES');
wvl_lres = double(netcdf.getVar(nc,varid));

varid = netcdf.inqVarID(nc,'RADIANCE_LRES_CLR');
sw_rad = double(netcdf.getVar(nc,varid));

netcdf.close(nc);

nc = netcdf.open('b30.042a.cam2.h0.2010-12.nc','NC_NOWRITE');


varid = netcdf.inqVarID(nc,'lat');
lat = double(netcdf.getVar(nc,varid));

varid = netcdf.inqVarID(nc,'lon');
lon = double(netcdf.getVar(nc,varid));

netcdf.close(nc);

