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 无论是原始的还是重建的(从
PC
和CDELT
)CD矩阵。is_proj_plane_distorted
使用以下检查验证从图像(探测器)坐标到焦平面坐标的转换是否正交:\[\left \| \frac{C \cdot C^{\mathrm{T}}} {| det(C)|} - I \right \|_{\mathrm{max}} < \epsilon .\]