get_constellation#

astropy.coordinates.get_constellation(coord, short_name=False, constellation_list='iau')[源代码]#

确定给定坐标对象包含的星座。

参数:
coord : astropy:coordinate-like占星体:类似于坐标

确定星座的物体。

short_name : bool布尔

如果为真,则返回的名称为IAU认可的缩写名称。否则,将使用星座的全名。

constellation_list : strPython :字符串

要使用的星座集。仅限当前 'iau' 支持,意思是88个“现代”星座得到国际天文学联盟的认可。

返回:
constellation : strstr arrayPYTHON:字符串或PYTHON:STR数组

如果 coords 包含标量坐标,返回星座的名称。如果它是数组坐标对象,则返回一个名称数组。

笔记

为了确定天空中的一个点在哪个星座中,这个过程进行到B1875,然后使用88个现代星座的Delporte边界,如下所示 Roman 1987