SBART.utils.RV_utilities.ensure_value_in_limits#
Functions
|
Ensure that a given radial velocity is inside the effective RV limits (defined by the window centered in the previous RV estimate) |
- ensure_valid_RV(tentative_RV, effective_RV_limits)#
Ensure that a given radial velocity is inside the effective RV limits (defined by the window centered in the previous RV estimate)
- Parameters:
tentative_RV (float) – Current RV
effective_RV_limits (Iterable[float]) – Tuple with the RV limits
- Raises:
Exception – If the RV is outside the window, raises error