void add_common_options | ( | OptionParser & | flags, | |
CommonCheckOptions & | opts | |||
) |
Add command line options for common HETDEX header keyword checks.
Add flags:
`-N, --npixels` to check the number of pixels in the image.
`-K, --keywords` to check the presence of required keywords.
`-O, --overscan` to check the image overscan rms.
`--ovc_sttdev` to set the expected standard deviation in the overscan.
`--ovc_mean` to set the expected mean of the overscan.
`--max_ovc_dev_mean` to set the maximum relative deviation allowed from the expected mean of the overscan.
`--max_ovc_dev_rms` to set the maximum relative deviation allowed from the expected standard deviation of the overscan.
`-E, --exptime` to check the exposure time depending on the image type recipe.
flags | The util::OptionParser objects to add the flags to. | |
opts | The CommonCheckOptions() structure to use for the Options. |
References CommonCheckOptions::chk_exptime, CommonCheckOptions::chk_keywords, CommonCheckOptions::chk_npixels, CommonCheckOptions::chk_overscan, CommonCheckOptions::maxdev_ovc_mean, CommonCheckOptions::maxdev_ovc_rms, CommonCheckOptions::overscan_mean, CommonCheckOptions::overscan_stddev, CommonCheckOptions::verbose, and CommonCheckOptions::write_file.
Referenced by main().
bool check_common_options | ( | const CommonCheckOptions & | opts | ) |
Check the common command line options. If a given option requires another option to be set, this check will fail, an error message printed and false returned.
opts | CommonCheckOptions() options structure. |
Referenced by main().