adding vars to femwind/read_fmw_3d.m
[wrf-fire-matlab.git] / detection / ros2nd.m
blob87b3c22242193aeb70d890f5fab5199241eedde4
1 % convert ros stored in a structure to 3d
2 function t=ros2nd(tt)
3 t.lfn=tt.lfn;
4 t.tign_g=tt.tign_g;
5 t.times=tt.times;
6 t.timestr=char(tt.times');
7 [m,n]=size(tt.f_ros11);
8 t.ros=zeros(m,n,3,3);
9 t.ros(:,:,1,1)=tt.f_ros11;
10 t.ros(:,:,1,2)=tt.f_ros12;
11 t.ros(:,:,1,3)=tt.f_ros13;
12 t.ros(:,:,2,1)=tt.f_ros21;
13 t.ros(:,:,2,3)=tt.f_ros23;
14 t.ros(:,:,3,1)=tt.f_ros31;
15 t.ros(:,:,3,2)=tt.f_ros32;
16 t.ros(:,:,3,3)=tt.f_ros33;