demerge.merge package#
Submodules#
Module contents#
- merge(dems: Path, /, *, corresp: Path | str, ddb: Path | str, obsinst: Path | str, readout: Path | str, antenna: Path | str | None = None, cabin: Path | str | None = None, misti: Path | str | None = None, skychop: Path | str | None = None, weather: Path | str | None = None, dt_antenna: int | str = '0 ms', dt_cabin: int | str = '0 ms', dt_misti: int | str = '0 ms', dt_skychop: int | str = '9 ms', dt_weather: int | str = '0 ms', measure: Literal['df/f', 'brightness'] = 'df/f', overwrite: bool = False, debug: bool = False) Path [source]#
Merge observation datasets into a single DEMS.
- Parameters:
dems (Path) – Path of the merged DEMS.
corresp (Path | str) – Path of the KID correspondence.
ddb (Path | str) – Path of DDB FITS.
obsinst (Path | str) – Path of the observation instruction.
readout (Path | str) – Path of the reduced readout FITS.
antenna (Path | str | None) – Path of the antenna log.
cabin (Path | str | None) – Path of the cabin log.
misti (Path | str | None) – Path of the MiSTI log.
skychop (Path | str | None) – Path of the sky chopper log.
weather (Path | str | None) – Path of the weather log.
dt_antenna (int | str) – Time offset of the antenna log with explicit unit such that (dt_antenna = t_antenna - t_readout).
dt_cabin (int | str) – Time offset of the cabin log with explicit unit such that (dt_cabin = t_cabin - t_readout).
dt_misti (int | str) – Time offset of the MiSTI log with explicit unit such that (dt_misti = t_misti - t_readout).
dt_skychop (int | str) – Time offset of the sky chopper log with explicit unit such that (dt_skychop = t_skychop - t_readout). Defaults to 9 ms (for DESHIMA campaign in 2024).
dt_weather (int | str) – Time offset of the weather log with explicit unit such that (dt_weather = t_weather - t_readout).
measure (Literal['df/f', 'brightness']) – Measure of the DEMS (either df/f or brightness).
overwrite (bool) – If True,
dems
will be overwritten even if it exists.debug (bool) – If True, detailed logs for debugging will be printed.
- Returns:
Path of the merged DEMS.
- Raises:
FileExistsError – Raised if
dems
exists andoverwrite
is False.- Return type:
Path