orca.utils.datetimeutils

Date and time utilities for OVRO-LWA data processing.

Provides timestamp manipulation functions and defines the standard integration time for Stage III data products.

Attributes

STAGE_III_INTEGRATION_TIME

Functions

find_closest(→ datetime.datetime)

Find closest datetime to pivot in the list of date time.

Module Contents

orca.utils.datetimeutils.STAGE_III_INTEGRATION_TIME[source]
orca.utils.datetimeutils.find_closest(pivot: datetime.datetime, date_time_list: Iterable) datetime.datetime[source]

Find closest datetime to pivot in the list of date time.

Parameters:
  • pivot – The datetime object to find the closest one to.

  • date_time_list – The list of datetime objects.

Returns: The datetime in the list that’s closest to pivot.