opticam.utils.time_helpers ========================== .. py:module:: opticam.utils.time_helpers Functions --------- .. autoapisummary:: opticam.utils.time_helpers.apply_barycentric_correction opticam.utils.time_helpers.infer_gtis Module Contents --------------- .. py:function:: apply_barycentric_correction(original_times, coords) Apply barycentric corrections to a time array. Parameters ---------- times : float | NDArray The time(s) to correct. coords : SkyCoord The coordinates of the source. Returns ------- NDArray The corrected time(s). .. py:function:: infer_gtis(time, threshold = 1.5) Infer the Good Time Intervals from a light curve. Parameters ---------- time : ArrayLike The time array. threshold : float, optional The threshold for detecting gaps in units of the median time resolution, by default 1.5. Returns ------- NDArray The inferred GTIs.