Skip to content

Commit

Permalink
Update get_reflection_spherical_fujimura.m
Browse files Browse the repository at this point in the history
Fix bug on computing grazing angle at 90 degrees
  • Loading branch information
vitorhjr committed Nov 28, 2022
1 parent d6e34a1 commit 59e46fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion geo-alhazen-aux/get_reflection_spherical_fujimura.m
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@
geo_ang = rad2deg(angle(u));

%% Grazing Angle
graz_ang = atand(cotd(geo_ang)-(Rs./Ra)./sind(geo_ang));
if e==90
graz_ang = get_grazing_angle_vector (pos_ant_loc,pos_spec_loc,pos_trans_loc);
return
end

graz_ang = atand(cotd(geo_ang)-(Rs./Ra)./sind(geo_ang));
end

0 comments on commit 59e46fb

Please sign in to comment.