get_planet_magnitude#

skysim.query.get_planet_magnitude(base_magnitude, distance_to_sun, distance_to_earth)[source]#

Calculate the magnitude for a planet.

Parameters:
base_magnitudefloat

Static base magnitude for the planet.

distance_to_sunpydantic.PositiveFloat

Distance (in au) from the planet to the sun.

distance_to_earthpydantic.PositiveFloat

Distance (in au) from the planet to the Earth.

Returns:
float

The magnitude.