demerge.merge.utils module#
- to_brightness(dfof: DataArray, /) DataArray [source]#
Convert a DEMS of df/f to that of brightness.
- Parameters:
dfof (DataArray)
- Return type:
DataArray
- to_dems(*, 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') DataArray [source]#
Merge observation datasets into a single DEMS of df/f.
- Parameters:
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).
- Returns:
Merged DEMS of df/f as xarray DataArray.
- Return type:
DataArray