goodman_pipeline.images package


goodman_pipeline.images.data_classifier module

class goodman_pipeline.images.data_classifier.DataClassifier

Bases: object

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.

goodman_pipeline.images.goodman_ccd module

class goodman_pipeline.images.goodman_ccd.MainApp

Bases: object


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

args (object)

goodman_pipeline.images.image_processor module

class goodman_pipeline.images.image_processor.ImageProcessor(args, data_container)

Bases: object

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) – DataFrame instance that contains a list of science data that are compatible with a given instrument configuration and can be reduced together.

process_spectroscopy_science(science_group, save_all=False)

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) – DataFrame instance 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.

goodman_pipeline.images.night_organizer module

class goodman_pipeline.images.night_organizer.NightOrganizer(full_path, instrument, technique, ignore_bias=False, ignore_flats=False)

Bases: object


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 BIAS, FLAT and OBJECT data type. The data is packed in groups that are pandas.DataFrame objects.

spectroscopy_night(file_collection, data_container)

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:

  • GAIN






  • SLIT



This method populates the data_container class attribute which is an instance of the goodman_pipeline.core.core.NightDataContainer. A data group is an instance of a pandas.DataFrame.

Module contents

Goodman CCD Reduction Tool