is_proj_plane_distorted#

astropy.wcs.utils.is_proj_plane_distorted(wcs, maxerr=1e-05)[源代码]#

对于WCS退货 False if square image (detector) pixels stay square when projected onto the "plane of intermediate world coordinates" as defined in Greisen & Calabretta 2002, A&A, 395, 1061 . 它会回来的 True 如果从图像(探测器)坐标到焦平面坐标的转换是非正交的,或者WCS包含非线性(例如SIP)失真。

备注

因为这个功能 only 关于变换“图像平面”->“焦平面”和 not 关于“天球”->“焦平面”->“像平面”的变换,此函数忽略了由于大多数投影的非线性而产生的扭曲。

让我们用 C 无论是原始的还是重建的(从 PCCDELT )CD矩阵。 is_proj_plane_distorted 使用以下检查验证从图像(探测器)坐标到焦平面坐标的转换是否正交:

\[\left \| \frac{C \cdot C^{\mathrm{T}}} {| det(C)|} - I \right \|_{\mathrm{max}} < \epsilon .\]
参数:
wcsWCSWCS

世界坐标系对象

maxerr : float ,可选Python:Float,可选

CD矩阵的精确度, 归一化 这样的话 \(|det(CD)|=1\) ,应接近上述方程中所述的正交矩阵(参见 \(\epsilon\)

返回:
distorted : bool布尔

返回 True 如果焦(投影)面变形 False 否则。