object2pos¶
-
pyvo.nameresolver.sesame.
object2pos
(names, db='Simbad', mirror=None)[source]¶ resolve one or more object names each to a position.
Parameters: names : str
either a single object name (as a string) or a list of object names (as in a list of strings).
db : str
the object database to consult as a case-insennitive, minimum match to one of [“Simbad”, “NED”, “Vizier”].
mirror : str
Choose the service mirror by a name that is one of “cds” or “cfa”. The default will be service pointed to by the modeule attribute, default_endpoint. (see also set_default_endpoint().)
Returns: tuple
2-element floating point position if a single name was provided
list of tuples
if a list of names was given