multicolorfits.dec2sex#

multicolorfits.dec2sex(rain, decin, as_string=False, decimal_places=2)[source]#

Converts decimal coordinates to sexagesimal.

Parameters:
  • rain (float) – Input Right Ascension in decimal – e.g., 12.34567

  • decin (float) – input Declination in decimal – e.g. -34.56789

  • as_string (bool) – Specifies whether to return output as a string (useful for making tables)

  • decimal_places (int) – Number of decimals places to use when as_string=True

Returns:

list – [‘HH:MM:SS.ss’, ‘DD:MM:SS.ss’]