resolve¶
-
pyvo.nameresolver.sesame.
resolve
(names, db='Simbad', include='', mirror=None)[source]¶ resolve one or more object names each to an
ObjectData
instance containing metadata about the object.Parameters: names : str or list of 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”].
include : str
strextra data to include (if available) given either as a string or list of stirngs. If a value is a string, it will be split into a list of words, where each should be a case-insensitive, minimum match to one of “aliases” (additional identifiers that the object is known by) or “fluxes” (flux magnitudes).
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: ObjectData
if a single name was provided, or a
list of ObjectData
if a list of names was given. See
ObjectData
for details of the object’s contents.