Source code for m4opt.observer._core
from abc import ABC, abstractmethod
from astropy.coordinates import EarthLocation
from astropy.time import Time
[docs]
class ObserverLocation(ABC):
"""Base class for an Earth satellite with a specified orbit."""
[docs]
@abstractmethod
def __call__(self, time: Time) -> EarthLocation:
"""Get the position and velocity of the satellite.
Parameters
----------
time
The time of the observation.
Returns
-------
:
The Earth-relative coordinates of the satellite.
"""