python - depth_err 在 astropy.timeseries.BoxLeastSquaresResults 中是什么意思
问题描述
我有一个astropy.timeseries.BoxLeastSquaresResults
物体,我想找到depth
光线曲线(来自系外行星凌日)属性的不确定性。有一个名为 的属性depth_err
,文档说:
depth_err : array_like 或 Quantity
深度的 1-sigma 不确定性。
但是在我的数据的高峰期,depth[max] = 0.0157
但是depth_err[max] = 0.319
(max
是峰值功率的指数)。我不明白不确定性如何比值本身大 10 倍以上,而且我找不到描述此属性的单位或其他文档。
是什么depth_err
意思?它在什么单位?
解决方案
depth_err
是深度的不确定性,但不确定性比值本身大 10 倍的原因是因为我没有将数据点本身的不确定性提供给BoxLeastSquares
对象。从各自的文档:
astropy.timeseries.BoxLeastSquares
(t, y, dy=无)dy : float、array_like 或 Quantity,可选
与时间相关的误差或观测误差序列
t
。
如果不在dy
这里提供,不会引发错误,但这些depth_err
值是无用的。
另请注意,如果您的数据或错误中有任何NaN
s 或s,则该对象将不起作用。inf
BoxLeastSquaresResults
然而,使用干净的数据和dy
提供的 s,我的深度误差在 1% 左右。