Skip to main content

LCO bad pixel mask creator

Project description

pixel-mask-gen

Python utility to generate a bad pixel mask from a set of calibration images.

Authors: Matt Daily, Raleigh Littles, Curtis McCully

Installation

From PyPi

This package is available via PyPi, and can be installed via pip:

pip3 install lco-bpm-maker

From Github

To install the tool, clone this repository and run:

cd pixel-mask-gen
python3 setup.py install

Tests

To run the unit tests, simply run:

python3 setup.py test

Usage

Once you've installed the tool, it can be run simply by:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lco-bpm-maker-0.2.4.tar.gz (7.7 kB view details)

Uploaded Source

File details

Details for the file lco-bpm-maker-0.2.4.tar.gz.

File metadata

  • Download URL: lco-bpm-maker-0.2.4.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.5.1

File hashes

Hashes for lco-bpm-maker-0.2.4.tar.gz
Algorithm Hash digest
SHA256 87b666b5d06d110aad992f1e403c6ec15f44fd39fa311f209c1d0f5c9421c354
MD5 aadf528c8412bae13b1482702be8fda8
BLAKE2b-256 10b8da3b3dec2f1a7f895e10347a9e6d8db0e7c80c43d66d5a86e616d1af7166

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page