Virus Health Check checkflat

## checkflat - Check hetdex [dome | twilight] flat images

##Purpose:

Check the given images if they conform to the HETDEX standards for a HETDEX flat observations.

##Options:

`-N, --npixels <bool> [FALSE] Check for the correct number of pixels in the file.`
See VirusHealth::validate_size() for more details.

`-K, --keywords <bool> [FALSE] Check that the header keywords are correct.`
See VirusHealth::validate_keywords() for more details.

`-O, --overscan <bool> [FALSE] Check the rms of the overscan.`
See VirusHealth::validate_overscan() for more details.

`--ovc_mean <FLOAT> [1.0] Expected mean of the overscan.`

`--ovc_stddev <FLOAT> [0.2] Expected standard deviation of the overscan.`

`--max_ovc_dev_mean <FLOAT> [0.1] Maximum relative deviation for mean of overscan.`

`--max_ovc_dev_rms <FLOAT> [0.1] Maximum relative deviation for standard deviation of overscan.`

`-E, --exptime <bool> [FALSE] Check that the exposure time is at least 6 minutes long.`
See VirusHealth::validate_exptime() for more details.

`-S, --saturation <bool> [FALSE] Check that the fibres are not saturated`
See VirusHealth::validate_saturation() for more details.

`-s, --saturation_level <float> [50000.] Saturation level for image.`

`-M, --flux <bool> [FALSE] Check the fibres reach the minimum flux level.`
See VirusHealth::validate_min_flux() for more details.

`-m, --minflux <float> [500.] Minimum flux level in the fibres.`

`-F, --chknfibers [FALSE] Check that the given number fibers is illuminated.
See VirusHealth::validate_n_fibers() for more details.

`-f, --nfibers [113] Expected number of fibers

`-i, --maxmissing <int> [5] Maximum number of fibers that can go dark triggering only a warning, not an error.`

`-T, --throughput <bool> [FALSE] Check the fiber throughput`
See VirusHealth::validate_throughput() for more details.

`-D, --dist <string> [] Distortion for the checks.`
See VirusHealth::validate_distortion() for more details.

##Example:

Run all tests on a file:

> checkflat -N -K -O -E -F -S -M -f 250 -T -D masterflat.dist 20120908T192750_001LL_flt.fits


Generated on 4 Nov 2015 for CURE by  doxygen 1.6.1