opticam.utils.time_helpers

Functions

apply_barycentric_correction(original_times, coords)

Apply barycentric corrections to a time array.

infer_gtis(time[, threshold])

Infer the Good Time Intervals from a light curve.

Module Contents

opticam.utils.time_helpers.apply_barycentric_correction(original_times, coords)

Apply barycentric corrections to a time array.

Parameters

timesfloat | NDArray

The time(s) to correct.

coordsSkyCoord

The coordinates of the source.

Returns

NDArray

The corrected time(s).

Parameters:
  • original_times (float | numpy.typing.NDArray)

  • coords (astropy.coordinates.SkyCoord)

Return type:

numpy.typing.NDArray

opticam.utils.time_helpers.infer_gtis(time, threshold=1.5)

Infer the Good Time Intervals from a light curve.

Parameters

timeArrayLike

The time array.

thresholdfloat, optional

The threshold for detecting gaps in units of the median time resolution, by default 1.5.

Returns

NDArray

The inferred GTIs.

Parameters:
  • time (numpy.typing.NDArray)

  • threshold (float)

Return type:

numpy.typing.NDArray