0001 function zF = raypath_jd(xyF,xyprop_dke,yb,r_dke);
0002
0003 [nr_dke,ny] = size(xyprop_dke);
0004
0005 xymask_prop_dke = xyprop_dke ~= 0;
0006
0007 ib = 0;
0008
0009 for iy = 1:ny
0010 if max(xyprop_dke(:,iy)) == 1
0011 ir_dke = min(find(xyprop_dke(:,iy) == 1));
0012
0013 elseif min(xyprop_dke(:,iy)) == -1
0014 ir_dke = max(find(xyprop_dke(:,iy) == -1));
0015
0016 else
0017 continue
0018 end
0019 ir = r_dke(ir_dke);
0020
0021
0022
0023 if ~isempty(find(iy == yb));
0024 ib = ib + 1;
0025 zF{ib} = [];
0026 end
0027
0028 while ir_dke <= nr_dke & ir_dke >= 1 & xyprop_dke(ir_dke,iy) ~= 0
0029 ir = r_dke(ir_dke);
0030
0031 zF{ib} = [zF{ib},xyF(ir,iy)];
0032
0033
0034
0035 ir_dke = ir_dke + xyprop_dke(ir_dke,iy);
0036 end
0037
0038
0039
0040
0041
0042
0043 end
0044
0045