火烈鸟2探头探测器
f2-probe-detector的Python项目详细描述
火烈鸟2号探测器
此包包含一个用于检测
火烈鸟2引导探头,亚像素精度。为此,它使用了几个
在scipy.ndimage
包中提供形态学操作。
目前,探针的位置是通过质心得到的。也就是说 应显示整个探头图像。如果探头图像接触到 视野的边缘,结果是不可预测的。
要求
在安装此包之前,请确保python环境具有 所需的依赖项:
- Python3
- 天体物理学
- matplotlib
- 努比
- scipy
- 打开CV2
最好的办法是安装水蟒和 阿斯托康达。
安装
一旦进入conda
环境,就可以通过
只需键入:
# Make sure you activate your virtual environment $ source activate $MYENV# Install using pip $ pip install f2_probe_detector
强烈建议您将此软件包安装在水蟒体内 虚拟环境。如果可能的话,安装在你的“astroconda”静脉内。
运行
要获取有关如何运行此脚本的信息,可以键入:
$ get_f2_probe_position --help
$ get_f2_probe_position file_1.fits file_2.fits ... file_n.fits filename x y -------------------------------------------------------------- ...est_get_f2_probe_position/file_1.fits 1091.43815 583.93075 ...est_get_f2_probe_position/file_2.fits 1091.43815 583.93075 ...est_get_f2_probe_position/file_3.fits 1091.43815 583.93075 ..._get_f2_probe_position/test_data.fits 1091.43815 583.93075
或
$ get_f2_probe_position file_*.fits filename x y -------------------------------------------------------------- ...est_get_f2_probe_position/file_1.fits 1091.43815 583.93075 ...est_get_f2_probe_position/file_2.fits 1091.43815 583.93075 ...est_get_f2_probe_position/file_3.fits 1091.43815 583.93075 ..._get_f2_probe_position/test_data.fits 1091.43815 583.93075
数据采集
该代码可能对曝光时间、读出模式等的强烈变化敏感。 因此,用户可能希望尽可能保持数据的一致性。为了这个,这里 大多数测试中使用的配置是:
火烈鸟2组分
- 过滤器:K-短路
- 读取模式:亮
- 曝光时间:12秒
- 分散器:无
- Lyot车轮:F/16(打开)
序列组件:手动平直日间校准
- 灯:红外灰色车身-高
- 快门:关闭
- 过滤器:nd4-5
- 扩散器:红外
- 科阿兹:1.(F2的默认/仅模式)
已知问题
get_f2_probe_position
如果找不到探测,则不会失败。如果你得到一个 很奇怪的值,检查图像。get_f2_probe_position
如果探测阴影触及边缘,则不起作用。