deg2sexa

mpdaf.obj.deg2sexa(x)[source]

Transform equatorial coordinates from degrees to sexagesimal strings.

Parameters:
xfloat array

Either a single coordinate in a 1D array like [dec, ra], or a 2D array of multiple (dec,ra) coordinates, ordered like [[dec1,ra1], [dec2,ra2], ...]. All coordinates must be in degrees.

Returns:
outarray of strings

The array of dec,ra coordinates as sexagesimal strings, stored in an array of the same dimensions as the input array. Declination values are written like degrees:minutes:seconds. Right-ascension values are written like hours:minutes:seconds.