1 function r=find_ignition(f)
3 % finds the first frame with nodes where fire_area > 0
7 % structure with ignited nodes and their coordinates
9 p = nc2struct(f,{'Times'},{});
14 p=nc2struct(f,{'FIRE_AREA'},{},step)
15 [i,j,a]=find(p.fire_area);
17 disp([num2str(step),' ',times(step,:),' ignited ',num2str(n)])
19 q=nc2struct(f,{'FXLONG','FXLAT'},{},step);
24 r.times=times(step,:);
26 r.fxlong(k)=q.fxlong(i(k),j(k));
27 r.fxlat(k)=q.fxlat(i(k),j(k));
28 r.fire_area(k)=p.fire_area(i(k),j(k));