1 function showmod14(v,varargin)
2 % showmod14(v,alpha,string)
4 % from loading file converted by geotiff2mat.py
7 % v.geo geotransform from geotiff
8 % v.file optional title string
9 % v.axis min, max longgitude. latitude
13 if length(varargin)>0,
18 pixels_fire=[sum(v.data(:)==7),sum(v.data(:)==8),sum(v.data(:)==9)];
19 if length(varargin)>1,
22 t = sprintf('%s %s fire pixels %i %i %i',v.file,...
23 datestr(v.time,'yyyy-mm-dd HH:MM:SS'),pixels_fire);
26 alphadata=zeros(size(v.data));
27 alphamap=any(cmap,2)*alpha;
28 % alphamap=ones(size(alphamap));
32 image('Xdata',[v.lon(1),v.lon(end)],'Ydata',[v.lat(1),v.lat(end)],...
33 'Cdata',v.data,'Alphadata',a);
34 a=gca;set(a,'Ydir','normal')
36 xlabel('Longitude (deg)')
37 ylabel('Latitude (deg)')
38 title(t,'Interpreter','none')
42 daspect([1,cos(mean(v.lat(:))*pi/180),1]);
46 % hold on, [i,j,c]=find(data > 6); plot(lat(j),lon(i),'+r'), hold off