demerge.reduce package#
Module contents#
- reduce(*, data_pack: PathLike[str] | str, reduced_pack: PathLike[str] | str, plot_fitsweep: bool = False, overwrite: bool = False, debug: bool = False, **_: Any) Path[source]#
Reduce KID measurements into a single “reduced” FITS.
- Parameters:
data_pack (PathLike[str] | str) – Path of data package (e.g.
cosmos_YYYYmmddHHMMSS).reduced_pack (PathLike[str] | str) – Path of reduced package (e.g.
reduced_YYYYmmddHHMMSS).plot_fitsweep (bool) – If True, the results of
FitSweep.pywill be plotted.overwrite (bool) – If True,
reduced_packwill be overwritten even if it exists.debug (bool) – If True, detailed logs for debugging will be printed.
_ (Any)
- Returns:
Path of the created reduced FITS (in the reduced package).
- Raises:
FileNotFoundError – Raised if
data_packdoes not exist.FileExistsError – Raised if
reduced_packexists and overwrite is False.
- Return type:
Path