demerge package#
Subpackages#
Module contents#
- demerge(obsid: str, /, *, data_dir: Path | str = PosixPath('.'), dems_dir: Path | str = PosixPath('.'), reduced_dir: Path | None = None, ddb: Path | str = PosixPath('/home/runner/work/demerge/demerge/demerge/data/ddb_20240713.fits.gz'), measure: Literal['df/f', 'brightness'] = 'df/f', overwrite: bool = False, debug: bool = False, **options: Any) Path [source]#
Run reduce and merge commands to create a single DEMS.
- Parameters:
obsid (str) – Observation ID (YYYYmmddHHMMSS).
data_dir (Path | str) – Path of directory where data packages are placed, i.e. expecting
${data_dir}/cosmos_YYYYmmddHHMMSS
.dems_dir (Path | str) – Path of directory where merged DEMS will be placed, i.e. expecting
${dems_dir}/dems_YYYYmmddHHMMSS.zarr.zip
.reduced_dir (Path | None) – Path of directory where reduced packages are placed, i.e. expecting
${reduced_dir}/reduced_YYYYmmddHHMMSS
. If not specified, a temporary directory will be used.ddb (Path | str) – Path of DDB (DESHIMA database) file.
measure (Literal['df/f', 'brightness']) – Measure of the DEMS (either df/f or brightness).
overwrite (bool) – If True, the reduced package and the merged DEMS file will be overwritten even if they exist.
debug (bool) – If True, detailed logs for debugging will be printed.
**options (Any) – Other merge options for the merge command.
- Returns:
Path of the merged DEMS.
- Return type:
Path