parse_coordinates

astroquery.utils.parse_coordinates(coordinates)[source]

Takes a string or astropy.coordinates object. Checks if the string is parsable as an astropy.coordinates object or is a name that is resolvable. Otherwise asserts that the argument is an astropy.coordinates object.

Parameters

coordinates : str or astropy.coordinates object

Astronomical coordinate

Returns

coordinates : a subclass of astropy.coordinates.BaseCoordinateFrame

Raises

astropy.units.UnitsError

TypeError