Text here
fn = 'MOD04_L2.A2014093.1635.051.2014094021045.hdf';
Longitude = double(hdfread(fn, 'Longitude'));
Latitude = double(hdfread(fn, 'Latitude'));
scale = 0.001;
AOD =scale* double(hdfread(fn, 'Corrected_Optical_Depth_Land'));
AOD550 = squeeze(AOD(2,:,:)); % this is AOD .550 um
fill = -9999*scale
AOD550(AOD550==fill)=NaN;
% figure;
% imagesc(AOD550)
figure
latlim =([25 46]);
lonlim =([-100 -69]);
ax = worldmap(latlim, lonlim);
states = shaperead('usastatehi','UseGeoCoords', true, 'BoundingBox', [lonlim', latlim']);
geoshow(ax, states, 'FaceColor', [1 1 1]);
surfacem(Latitude,Longitude,AOD550);
colorbar
title(fn(11:17))
saveas(gcf, [fn(11:17), '.png'], 'png')
No comments:
Post a Comment