LCO坏像素掩码创建程序
lco-bpm-maker的Python项目详细描述
像素掩码生成器
Python实用程序从一组校准图像生成错误的像素掩码
作者:Matt Daily、Raleigh Littles、Curtis McCully
安装
来自PyPi
此软件包可通过pypi获得,并可通过pip安装:
pip3 install lco-bpm-maker
来自github
要安装该工具,请克隆此存储库并运行:
cd pixel-mask-gen
python3 setup.py install
测试
要运行单元测试,只需运行:
python3 setup.py test
用法
一旦安装了该工具,就可以通过以下方式运行它:
lco_bpm_maker
usage: lco_bpm_maker [-h] [--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}]
[--dark-current-threshold DARK_CURRENT_THRESHOLD]
[--flat-sigma-threshold FLAT_SIGMA_THRESHOLD]
[--bias-sigma-threshold BIAS_SIGMA_THRESHOLD]
input_directory output_directory
Create a bad pixel mask from a set of calibration frames.
positional arguments:
input_directory Input directory of calibration images
output_directory Output directory for bad pixel mask
optional arguments:
-h, --help show this help message and exit
--log-level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
Logging level to be displayed
--dark-current-threshold DARK_CURRENT_THRESHOLD
Threshold for pixel dark current when flagging bad
pixels in dark frames. Pixels above this will be
flagged. Default = 20 [electrons/second]
--flat-sigma-threshold FLAT_SIGMA_THRESHOLD
Number of standard deviations from the median of the
combined flat image for a pixel to be flagged. Default = 10
--bias-sigma-threshold BIAS_SIGMA_THRESHOLD
Number of standard deviations from the median of the
combined bias image for a pixel to be flagged. Default = 10
--fpack Flag to fpack output BPM