pylunar.helpers module

Module for helper functions.

pylunar.helpers.mjd_to_date_tuple(mjd: float, round_off: bool = False) Tuple[int, int, int, int, int, int | float][source]

Convert a Modified Julian date to a UTC time tuple.

Parameters:
  • mjd (float) – The Modified Julian Date to convert.

  • round_off (bool, optional) – Flag to round the seconds.

Returns:

The UTC time for the MJD.

Return type:

tuple

pylunar.helpers.tuple_to_string(coord: Tuple[int, int, int]) str[source]

Return a colon-delimited string.

Parameters:

coord (tuple of 3 ints) – The coordinate to transform.

Returns:

The colon-delimited coordinate string.

Return type:

str