Calibration#

class prose.blocks.utils.Calibration(darks: ~typing.Optional[~typing.Union[list, ~numpy.ndarray]] = None, flats: ~typing.Optional[~typing.Union[list, ~numpy.ndarray]] = None, bias: ~typing.Optional[~typing.Union[list, ~numpy.ndarray]] = None, loader=<function FITSImage>, easy_ram: bool = True, verbose: bool = True, shared: bool = False, **kwargs)[source]#

Flat, Bias and Dark calibration.

modify data

The provided calibration images can be either:

  • a list of paths to FITS files

  • a list of Image objects

  • an array of np.ndarray images

  • a single Image object

  • a single np.ndarray image

  • an empty list, in which case the calibration is skipped

  • None, in which case the calibration is skipped

Parameters:
  • darks (list or np.ndarray, optional) – list of darks, by default None

  • flats (list or np.ndarray, optional) – list of flats, by default None

  • bias (list or np.ndarray, optional) – list of bias, by default None

  • loader (object, optional) – loader used to load str path to Image, by default FITSImage

  • easy_ram (bool, optional) – whether to compute the master median per chunks, going easy on the RAM, by default True

  • verbose (bool, optional) – whether to log information about master calibration images building, by default True

  • shared (bool, optional) – whether to allow the master calibration images to be shared, useful for multi-processing, by default False