skycoord_to_pixel#

astropy.wcs.utils.skycoord_to_pixel(coords, wcs, origin=0, mode='all')[源代码]#

将一组SkyCoord坐标转换为像素。

参数:
坐标 : SkyCoordSkyCoord

要转换的坐标。

wcs : WCSWCS

要使用的WCS转换。

origin : intPython :整型

返回基于0还是1的像素坐标。

mode“全部”或“wcs”

是否包括变形 ('all' )或者只包括核心WCS转换 ('wcs' )

返回:
经验值,yp : numpy.ndarraynumpy.ndarray

像素坐标