uvex_transients.utils.keyed_noise.time_key#

uvex_transients.utils.keyed_noise.time_key(time) → NDArray[uint64][source]#

Turn observation start times into integer keys for keyed_standard_normal.

The key is the bit pattern of each time’s Julian date as a float64. Any two code paths that read the same schedule row get the same key, with no need to share a row index, so the survey-wide cuts and per-event photometry draw identical noise for the same observation. Two observations of one spacecraft never share a start time, so keys are unique within a schedule.

Parameters:

time (Time) – Observation start time(s).

Returns:

uint64 keys, one per time.

Return type:

numpy.ndarray