sndata.utils.unit_conversion

The unit_conversion handles the conversion of values between different units / timezones / systems of measurement.

sndata.utils.unit_conversion.hourangle_to_degrees(rah: float, ram: float, ras: float, dec_sign: str, decd: float, decm: float, decs: float) -> (<class 'float'>, <class 'float'>)[source]

Convert from hour angle to degrees

Parameters:
  • rah – RA hours
  • ram – RA arcminutes
  • ras – RA arcseconds
  • dec_sign – Sign of the declination (‘+’ or ‘-‘)
  • decd – Dec degrees
  • decm – Dec arcmin
  • decs – Dec arcsec