parsnip.time_to_grid

parsnip.time_to_grid(time, reference_time)

Convert a time in the original units to one on the internal ParSNIP grid

Parameters:
  • time (float) – Real time to convert

  • reference_time (float) – Reference time for the grid

Returns:

Time on the internal grid

Return type:

float