adam_core.observers.utils module¶
- adam_core.observers.utils.calculate_observing_night(codes: Array, times: Timestamp) Array[source]¶
Compute the observing night for a given set of observatory codes and times. An observing night is defined as the night during which the observation is made, in the local time of the observatory +- 12 hours. The observing night is defined as the integer MJD of the night in the local time of the observatory.
- Parameters:
codes (pyarrow.Array (N)) – An array of observatory codes.
times (Timestamp (N)) – An array of times.
- Returns:
observing_night – An array of observing nights.
- Return type:
pyarrow.Array (N)