Skip to content

Superfluous warning when elevation is equal to 90 degrees #80

@MomentusScott

Description

@MomentusScott

if np.any(5 > el) or np.any(np.mod(el, 90) < 5):

When calling gaseous_attenuation_approximation with an elevation angle of 90 degrees, this warning is thrown:

The approximated method to compute the gaseous attenuation in recommendation ITU-P 676-11 is only recommended for elevation angles between 5 and 90 degrees

First, 90 degrees is between 5 and 90 degrees (for the closed interval), so the conditional is inconsistent with the warning. Second, Annex 2 of ITU-R P.676-13 should work for 5 <= el <= 175 degrees, since sin(theta) is symmetric around 90deg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions