Skip to content

🐛[BUG]: runtime warning when computing TISR #215

@nbren12

Description

@nbren12

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

Metadata

Metadata

Labels

bugSomething isn't workingexternalIssues/PR filed by people outside the team

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions