AstroPy - flatten.py - 9/3/07


Description

Performs masking and flat-fielding of image using mask, intercept, and slope images. Result is = (data - intercept) / slope where the mask is 1, and 0 otherwise. The output is then clipped to zero and rescaled so that the average is 1000.0. All pixels are converted to floating-point values, and the input and output images are displayed.

Usage

flatten.py parent-dir fits-file [min] [max]

Examples

13: ~/Projects/Python/AstroPy > flatten.py 072407 072407/raw/im0215.a.fits 0 15000


İSky Coyote 2007