Classifies the data being presented to the pipeline.
Data classifier is intended to define the camera that is being used and the technique in use. This will be used later to make important decisions regarding the process to be used.
Get command line arguments.
The list of arguments can be obtained by using the argument
--help. All the arguments start with two dashes and single-character arguments where avoided in order to eliminate confusion.
arguments (list) – A list containing the arguments as elements.
- argparse instance. Contains all the arguments as
- Return type
Image processing class
This class contains methods for performing CCD image reduction for spectroscopy and imaging.
Does image reduction for science imaging data.
imaging_group (object) –
DataFrameinstance that contains a list of science data that are compatible with a given instrument configuration and can be reduced together.
Process Spectroscopy science images.
This function handles the full image reduction process for science files. if save_all is set to True, all intermediate steps are saved.
science_group (object) –
DataFrameinstance that contains a list of science images that where observed at the same pointing and time. It also contains a set of selected keywords from the image’s header.
save_all (bool) – If True the pipeline will save all the intermadiate files such as after overscan correction or bias corrected and etc.
NightOrganizer(full_path, instrument, technique, ignore_bias=False, ignore_flats=False)¶
Check if the header contains all the keywords (cards) expected.
This is critical for old goodman data.
ValueError – If any of the cards does not exists in the image’s header
Organizes data for imaging
For imaging there is no discrimination regarding night data since the process is simpler. It is a three stage process classifying
OBJECTdata type. The data is packed in groups that are
Organizes data for spectroscopy
This method identifies all combinations of nine key keywords that can set apart different objects with their respective calibration data or not. The keywords used are:
Goodman CCD Reduction Tool