femwind_rate_test runs OK
[wrf-fire-matlab.git] / cycling / plot_paths3d.m
blobc3abc1330e161018c45fc077deb3275e8beb035e
1 function plot_paths3d(path_struct,fig_num)
2 %input path_sruct = graph_dets(w,cull)
3 %      fig_num - figure to draw on       
4 %fg = path_struct.graph;
5 pts = path_struct.points(:,1:3);
6 pts(:,1:2) = path_struct.grid_pts;
7 %pts(:,3) = (pts(:,3)-floor(min(pts(:,3))));
8 paths = path_struct.paths;
9 figure(fig_num)
10 hold on
12 for j = 1:length(paths)%length(pts)
13     %c = sqrt(path_struct.paths(j).c/100);
14     %plot3(pts(paths(j).p,2),pts(paths(j).p,1),pts(paths(j).p,3),'Color',[c c c]);
15     plot3(pts(paths(j).p,2),pts(paths(j).p,1),pts(paths(j).p,3));
16 end
17 scatter3(pts(:,2),pts(:,1),pts(:,3),'*r')
18 hold off
19 grid on,xlabel('Lon'),ylabel('Lat'),zlabel('Time [datenum]')
20 title('Shortest Paths and Active Fire Detections')
21 end