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_magnitude
float Static base magnitude for the planet.
- distance_to_sun
pydantic.PositiveFloat Distance (in au) from the planet to the sun.
- distance_to_earth
pydantic.PositiveFloat Distance (in au) from the planet to the Earth.
- base_magnitude
- Returns:
floatThe magnitude.