You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pvl_singleaxis can produce NaN results for the surface tilt angle when the tilt is 0. Error stems from the following line:
SurfTilt = 90 - acosd(dividend./divisor);
When divisor is 0, the division by 0 produces NaN.
Possible fixes could be setting divisor to a very small number (eps) when it is 0, or simply setting SurfTilt to 0 any time that divisor is 0.
The text was updated successfully, but these errors were encountered:
pvl_singleaxis can produce NaN results for the surface tilt angle when the tilt is 0. Error stems from the following line:
SurfTilt = 90 - acosd(dividend./divisor);
When divisor is 0, the division by 0 produces NaN.
Possible fixes could be setting divisor to a very small number (eps) when it is 0, or simply setting SurfTilt to 0 any time that divisor is 0.
The text was updated successfully, but these errors were encountered: