classmethod craftutils.observation.epoch.SkyCoord.from_name(name, frame='icrs', parse=False, cache=True)

Given a name, query the CDS name resolver to attempt to retrieve coordinate information for that object. The search database, sesame url, and query timeout can be set through configuration items in astropy.coordinates.name_resolve – see docstring for ~astropy.coordinates.get_icrs_coordinates for more information.

Parameters

namestr

The name of the object to get coordinates for, e.g. 'M42'.

framestr or BaseCoordinateFrame class or instance

The frame to transform the object to.

parsebool

Whether to attempt extracting the coordinates from the name by parsing with a regex. For objects catalog names that have J-coordinates embedded in their names, e.g., ‘CRTS SSS100805 J194428-420209’, this may be much faster than a Sesame query for the same object name. The coordinates extracted in this way may differ from the database coordinates by a few deci-arcseconds, so only use this option if you do not need sub-arcsecond accuracy for coordinates.

cachebool, optional

Determines whether to cache the results or not. To update or overwrite an existing value, pass cache='update'.

Returns

coordSkyCoord

Instance of the SkyCoord class.