imap_processing.hi.hi_l1c.get_de_clock_ticks_for_esa_step#
- imap_processing.hi.hi_l1c.get_de_clock_ticks_for_esa_step(ccsds_met: float, spin_df: DataFrame) tuple[ndarray, ndarray]#
Generate an array of clock tick MET times for an 8-spin ESA step.
Find the closest spin start time in the input spin dataframe to the packet creation time (ccsds_met) and generate an array of clock tick MET times for the period covered by the previous 8-spin group and an array of weights that represent the fraction of each clock tick that occurred in the 8-spin group.
- Parameters:
ccsds_met (float) – The CCSDS MET of the second packet in a DE packet pair.
spin_df (pandas.DataFrame) – Universal spin table dataframe.
- Returns:
clock_tick_mets (np.ndarray) – Array of MET times that a clock tick occurred in an 8-spin group of spins during which the ESA step was constant.
clock_tick_weights (np.ndarray) – Array of weights to use when binning the clock tick MET times into spin-bins.