Keck-DataReductionPipelines / KPF-Pipeline

KPF-Pipeline
https://kpf-pipeline.readthedocs.io/en/latest/
Other
10 stars 2 forks source link

Feature/upgrade 20240220 with new C code #812

Closed RussLaher closed 4 months ago

RussLaher commented 5 months ago

Please merge the feature/upgrade_20240220 branch into the develop branch. The C code is for compiling the binary executable generateSmoothLampPattern, which is a much faster implementation of the scripts/make_smooth_lamp_pattern.py Python-code implementation.

$ ~/Documents/kpf/kpfpipeline/c/bin/generateSmoothLampPattern

Compute the sliding-window clipped-mean image (SWCMI) of an input image to generate smooth lamp patterns for KPF both GREEN and RED chips.

generateSmoothLampPattern, v. 1.00, by Russ Laher

Usage: -i input masterflat FITS file -x window width (pixels) (default = 200 pixels) -y window height (pixels) (default = 1 pixel) -s number of "sigmas" for outlier rejection (default = 3.0) -o output SWCMI FITS file -t number of processing threads (default = 1) [-v (verbose switch)]