modulus
modulus copied to clipboard
🐛[BUG]: runtime warning when computing TISR
Version
main
On which installation method(s) does this occur?
No response
Describe the issue
The TOA radiation code emits a noisy warning here: https://github.com/NVIDIA/modulus/blob/242b4c6c7a2320da4d2c7e238360924aeac5cf1e/modulus/utils/zenith_angle.py#L276
/usr/local/lib/python3.10/dist-packages/modulus/utils/zenith_angle.py:276: RuntimeWarning: invalid value encountered in arccos
hc = np.arccos(-A / B)
this warning is not a problem for this code, since we handle this case.
Minimum reproducible example
No response
Relevant log output
No response
Environment details
No response