Caltech-IPAC / kete

Kete Solar System Survey tools
https://Caltech-IPAC.github.io/kete
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Typo in Observability Example #45

Closed dahlend closed 3 months ago

dahlend commented 3 months ago

In the object observability example there is typo in the calculation for visible magnitude:

These lines https://github.com/IPAC-SW/neospy/blob/2aa45853b1065288c4d602d24bc087ffc5e62062/src/examples/plot_observability.py#L66-L69 should be:

    if obj.h_mag is not None:
        mag = neospy.flux.hg_absolute_to_apparent_mag(
            sun2obj, sun2obs, g_phase, obj.h_mag
        )