Just a code to plot LST
Lat = double(hdfread(filewant, 'Latitude' ));
Lon = double(hdfread(filewant, 'Longitude' ));
LST = 0.02* double(hdfread(filewant, 'LST' ));
LST(LST==0)=NaN;
figure
load coast
latlim=[floor(min(min(Lat))),ceil(max(max(Lat))) ]; lonlim=[floor(min(min(Lon))),ceil(max(max(Lon))) ];
ax = worldmap(latlim, lonlim);
surfacem(Lat, Lon, LST);
geoshow(lat, long,'Color', 'black' )
colormap; set(gcf,'Color','white')
map2 = colormap; map2( 1, : ) = 0; colormap(map2);
colorbar % saveas(gcf, 'plotHDF.png', 'png') close all
caxis([ 290 330])
No comments:
Post a Comment