parse_coordinates¶
- astroquery.utils.parse_coordinates(coordinates, *, return_frame=None)[source]¶
Takes a string or astropy.coordinates object. Checks if the string is parsable as an
astropy.coordinatesobject or is a name that is resolvable. Otherwise asserts that the argument is an astropy.coordinates object.- Parameters:
- coordinatesstr or
astropy.coordinatesobject Astronomical coordinate
- return_frame
astropy.coordinatesframe The frame to return the coordinates in. If None and
coordinatesis a string, the frame will be ICRS. Ifcoordinatesis anastropy.coordinatesobject, the frame will be the same as the input object.
- coordinatesstr or
- Returns:
- coordinatesa subclass of
astropy.coordinates.BaseCoordinateFrame
- coordinatesa subclass of
- Raises:
- astropy.units.UnitsError
- TypeError