Kosmorro / lib

Kosmorrolib, a library to calculate ephemerides.
https://kosmorro.space/lib
GNU Affero General Public License v3.0
7 stars 6 forks source link

Add the objects magnitudes #6

Open Deuchnord opened 4 years ago

Deuchnord commented 4 years ago

Is your feature request related to a problem? Please describe. An object being risen does not necessarily mean it is visible enough for an observation. Its visibility actually heavily depends on its apparent magnitude.

Describe the solution you'd like Provide a function that gives, for given date and object, the apparent magnitude of that object from the point of view of the Earth.

The function would look like this:

def get_apparent_magnitude(object: Object, date = date.today()) -> float

The returned value is a float that represents the apparent magnitude of the given object.

Additional context

Deuchnord commented 4 years ago

Removing from 0.8 milestone and 1.0 project, since the feature seems a little more complicated (see https://github.com/skyfielders/python-skyfield/issues/210).