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
- coordinatesstr or
astropy.coordinates
object Astronomical coordinate
- coordinatesstr or
- Returns
- coordinatesa subclass of
astropy.coordinates.BaseCoordinateFrame
- coordinatesa subclass of
- Raises
- astropy.units.UnitsError
- TypeError