arrakis.utils.coordinates

Coordinate utilities

Functions

coord_to_string(→ Tuple[str, str])

Convert coordinate to string without astropy

deg_to_dms(→ astropy.coordinates.angles.dms_tuple)

Convert degree to hms without astropy.

deg_to_hms(→ astropy.coordinates.angles.hms_tuple)

Convert degree to hms without astropy.

Module Contents

arrakis.utils.coordinates.coord_to_string(coord: astropy.coordinates.SkyCoord) Tuple[str, str][source]

Convert coordinate to string without astropy

Parameters:

coord (SkyCoord) – Coordinate

Returns:

Tuple of RA string, Dec string

Return type:

Tuple[str,str]

arrakis.utils.coordinates.deg_to_dms(deg: float) astropy.coordinates.angles.dms_tuple[source]

Convert degree to hms without astropy.

Parameters:

deg (float) – Decimal degrees

Returns:

DMS, like coord.dec.dms

Return type:

hms_tuple

arrakis.utils.coordinates.deg_to_hms(deg: float) astropy.coordinates.angles.hms_tuple[source]

Convert degree to hms without astropy.

Parameters:

deg (float) – Decimal degrees

Returns:

HMS, like coord.ra.hms

Return type:

hms_tuple