sexa2deg¶
-
mpdaf.obj.
sexa2deg
(x)[source]¶ Transform equatorial coordinates from sexagesimal strings to degrees.
Parameters: x : string array
Either a single pair of coordinate strings in a 1D array like
[dec, ra]
, or a 2D array of multiple (dec,ra) coordinate strings, ordered like[[dec1,ra1], [dec2,ra2], ...]
. In each coordinate pair, the declination string should be written like degrees:minutes:seconds, and the right-ascension string should be written like hours:minutes:seconds.Returns: out : array of numbers
The array of ra,dec coordinates in degrees, returned in an array of the same dimensions as the input array.