shapepipe.modules.split_exp_package.split_exp

shapepipe.modules.split_exp_package.split_exp

SPLIT EXPOSURE.

Class to split single-exposure multi-CCD mosaic images into single-exposure single-CCD files, one HDU per CCD.

This module splits the different CCDs (HDUs in FITS files) of a single exposure into separate files.

Author

Axel Guinot

class SplitExposures(input_file_list, output_dir, file_number_string, output_suffix, n_hdu)[source]

Bases: object

Split Exposures.

Parameters
  • input_file_list (list) – Input file paths, typically image, weight, and flag

  • output_dir (str) – Output directory

  • file_number_string (str) – Input file identified

  • output_suffix (str) – Output file suffix

  • n_hdu (int) – Number of HDUs (CCDs) of input files

process()[source]

Process.

Process the splitting of single-exposure images.

create_hdus(exp_path, output_suffix, transf_coord, transf_int, save_header)[source]

Create HDUs.

Split a single exposures CCDs into separate files.

Parameters
  • exp_path (str) – Path to the single exposure

  • output_suffix (str) – Suffix for the output file

  • transf_coord (bool) – Transform the WCS (pv to sip) if True

  • transf_int (bool) – Set data types to int if True

  • save_header (bool) – Save WCS information if True