proj_plane_pixel_area#

astropy.wcs.utils.proj_plane_pixel_area(wcs)[源代码]#

对于一个 天空的 WCS(参见 astropy.wcs.WCS.celestial) returns pixel area of the image pixel at the CRPIX location once it is projected onto the "plane of intermediate world coordinates" as defined in Greisen & Calabretta 2002, A&A, 395, 1061 .

备注

这个函数是有关的 only 关于变换“图像平面”->“投影平面”和 not “关于天球”—>“关于天体平面的投影”。因此,该函数忽略了由于大多数投影的非线性性质而产生的失真。

备注

为了只计算与天轴相对应的像素面积,此函数使用 celestial 输入的WCS对象 wcs . 这和 proj_plane_pixel_scales 函数,该函数计算输入WCS自身的轴的比例。

参数:
wcsWCSWCS

世界坐标系对象。

返回:
area : floatPython :浮点

像素的面积(在投影平面中) CRPIX 位置。返回结果的单位与 cdeltcrvalcd 可通过查询 cunit 性质 celestial WCS对象。

加薪:
ValueError

像素区域仅为二维像素定义。很可能是 cd 矩阵 celestial WCS不是二阶方阵。

笔记

根据应用,像素区域的平方根可用于表示面积等于一般非方形像素的面积的等效方形像素的单个像素比例。