hogg_iau_name

pydl.pydlutils.misc.hogg_iau_name(ra, dec, prefix='SDSS', precision=1)[source]

Properly format astronomical source names to the IAU convention.

Parameters
rafloat or numpy.ndarray

Right ascencion in decimal degrees

decfloat or numpy.ndarray

Declination in decimal degrees.

prefixstr, optional

Add this prefix to the string, defaults to ‘SDSS’.

precisionint, optional

Display this many digits of precision on seconds, default 1.

Returns
str or list

The IAU name for the coordinates.

Examples

>>> from pydl.pydlutils.misc import hogg_iau_name
>>> hogg_iau_name(354.120375,-0.544777778)
'SDSS J233628.89-003241.2'