libera_utils.time.et2utc_wrapper#

libera_utils.time.et2utc_wrapper(et: float | Collection[float] | ndarray, fmt: str, prec: int) str | Collection[str]#

Convert ephemeris times to UTC ISO strings. https://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/et2utc_c.html Decorated wrapper for spiceypy.et2utc that will automatically furnish the latest metakernel and retry if the first call raises an exception.

Parameters:
  • et (Union[float, Collection[float], numpy.ndarray]) – The ephemeris time value to be converted to UTC.

  • fmt (str) – Format string defines the format of the output time string. See CSPICE docs.

  • prec (int) – Number of digits of precision for fractional seconds.

Returns:

UTC time string(s)

Return type:

Union[numpy.ndarray, str]