imap_processing.spice.time.str_to_et#

imap_processing.spice.time.str_to_et(time_str: str | Iterable[str]) float | ndarray#

Convert string to ephemeris time.

Decorated wrapper for spiceypy.str2et that vectorizes the function in addition to wrapping with the @ensure_spice automatic kernel furnishing functionality. https://spiceypy.readthedocs.io/en/main/documentation.html#spiceypy.spiceypy.str2et

Parameters:

time_str (str or Iterable[str]) – Input string(s) to be converted to ephemeris time.

Returns:

ephemeris_time – Ephemeris time, seconds past J2000.

Return type:

np.ndarray