Source code for pytmosph3r.planetary_system.orbit.base

from abc import ABC

import numpy as np

from pytmosph3r.log import Logger


[docs] class Orbit(ABC, Logger): def __init__(self): super().__init__(self.__class__.__name__)
[docs] def r(self, true_anomaly: float = 0) -> float: """ Returns the distance between the star and the planet in `m`. Args: true_anomaly (): True anomaly in radian. """ raise NotImplementedError
[docs] def star_coordinates_projected(self, phase): """Returns the coordinates in the reference frame of the transmittance (as seen from the observer). Only used in transmission, lightcurve. Should return (rayon, angle) (polar coordinates) """ raise NotImplementedError
[docs] def obs_long_to_phase(self, longitude): raise NotImplementedError
[docs] def phase_to_obs_long(self, phase): raise NotImplementedError
[docs] def phase_from_observer(self, obs_loc=(0, np.pi)): raise NotImplementedError
[docs] def observer_from_phase(self, phase=0): raise NotImplementedError
@property def is_tidal_locked(self) -> bool: return False