corgidrp.ops#

Functions#

step_1_initialize()

Initialize corgidrp and it's caldb again

step_2_load_cal(this_caldb, main_cal_dir)

Takes the initialized caldb and loads the calibration files from the main_cal_dir

step_3_process_data(input_filelist, cpgs_xml_filepath, ...)

Process the input file list by autodetecting a template, or accepting an optional template argument.

Module Contents#

corgidrp.ops.step_1_initialize()[source]#

Initialize corgidrp and it’s caldb again

Returns:

an instance of an initialized caldb object

Return type:

caldb.CalDB

corgidrp.ops.step_2_load_cal(this_caldb, main_cal_dir)[source]#

Takes the initialized caldb and loads the calibration files from the main_cal_dir

Parameters:
  • this_caldb (caldb.CalDB) – an instance of an initialized caldb object

  • main_cal_dir (str) – the path to the main calibration directory

Returns:

an instance of a caldb object with the calibration files loaded

Return type:

caldb.CalDB

corgidrp.ops.step_3_process_data(input_filelist, cpgs_xml_filepath, outputdir, template=None)[source]#

Process the input file list by autodetecting a template, or accepting an optional template argument. Data will be written out to the output directory.

Parameters:
  • input_filelist (list) – a list of filepaths to the input files

  • cpgs_xml_filepath (str) – the path to the cpgs xml file

  • outputdir (str) – the path to the output directory

  • template (str) – the path to the template file (optional)