pyimcom.splitpsf.splitpsf_wrapper

Functions

split_psf_single(cfg_dict, iobs, filter, targetdir, ...)

Run Split PSF on one observation

split_psf_all(cfg, workers[, max_observations])

Run Split PSF on all observations

Module Contents

split_psf_single(cfg_dict, iobs, filter, targetdir, psfsplit_pars, TEST_FILES=None)[source]

Run Split PSF on one observation

Parameters:
  • cfg_dict (dict) – The configuration dictionary containing all necessary parameters for the split PSF process.

  • iobs (int) – The index of the observation to process.

  • filter (str) – The filter name for the observation.

  • targetdir (str) – The directory where the output PSF files will be saved.

  • psfsplit_pars (dict) – The PSF splitting parameters.

  • TEST_FILES (list of strs, optional) – List of [ “path/to//PSF/file”, “wcs/format”, “path/to/output/file” ] FOR TESTING ONLY

split_psf_all(cfg, workers, max_observations=np.inf)[source]

Run Split PSF on all observations

Parameters:
  • cfg (pyimcom.config.Config) – The configuration object containing all necessary parameters for the split PSF process.

  • workers (int) – The number of worker processes to use for parallel processing.

  • max_observations (int, optional) – The maximum number of observations to process (for testing purposes). Default is infinity, meaning all observations will be processed