modulus icon indicating copy to clipboard operation
modulus copied to clipboard

🐛[BUG]: runtime warning when computing TISR

Open nbren12 opened this issue 1 year ago • 0 comments

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

nbren12 avatar Nov 01 '23 19:11 nbren12