demerge

:truck: DESHIMA merge code for observed datasets

https://github.com/deshima-dev/demerge

Science Score: 75.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 3 DOI reference(s) in README
  • Academic publication links
  • Committers with academic emails
    1 of 4 committers (25.0%) from academic institutions
  • Institutional organization owner
    Organization deshima-dev has institutional domain (deshima.ewi.tudelft.nl)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.8%) to scientific vocabulary

Keywords

astronomy data-format deshima measurement-set python spectroscopy submillimeter
Last synced: 6 months ago · JSON representation ·

Repository

:truck: DESHIMA merge code for observed datasets

Basic Info
Statistics
  • Stars: 3
  • Watchers: 3
  • Forks: 1
  • Open Issues: 7
  • Releases: 43
Topics
astronomy data-format deshima measurement-set python spectroscopy submillimeter
Created over 4 years ago · Last pushed 6 months ago
Metadata Files
Readme License Citation

README.md

de:merge

Release Python Downloads DOI Tests

DESHIMA merge code for observed datasets

Installation

shell pip install demerge==2025.8.4

Command line interface

de:merge ships with three commands, demerge, reduce, and merge. demerge is the main command that (1) reduces raw data of KID measurements into a single "reduced" FITS and (2) merge datasets of a DESHIMA observation (including the reduced FITS) into a single DEMS file. reduce and merge are the subcommands that perform (1) and (2), respectively, and they should be used only for debugging.

Here is (part of) the demerge command help: ```plaintext SYNOPSIS demerge OBSID

DESCRIPTION Run reduce and merge commands to create a single DEMS.

POSITIONAL ARGUMENTS OBSID Type: str Observation ID (YYYYMMDDHHMMSS).

FLAGS --datadir=DATADIR Type: Path Default: PosixPath('.') Path of directory where data packages are placed, i.e. expecting ${data_dir}/cosmos_YYYYMMDDHHMMSS. --demsdir=DEMSDIR Type: Path Default: PosixPath('.') Path of directory where merged DEMS will be placed, i.e. expecting ${dems_dir}/dems_YYYYMMDDHHMMSS.zarr.zip. --reduceddir=REDUCEDDIR Type: Path Default: PosixPath('.') Path of directory where reduced packages are placed, i.e. expecting ${reduced_dir}/reduced_YYYYMMDDHHMMSS. If not specified, a temporary directory will be used. --cdb=CDB Type: Path Default: PosixPath('/path/to/demerge/data/cdb20250528.zarr.zip') Path of CDB (KID correspondence database) file. --ddb=DDB Type: Path Default: PosixPath('/path/to/demerge/data/ddb20250819.fits.gz') Path of DDB (DESHIMA database) file. --overwrite=OVERWRITE Type: bool Default: False If True, the reduced package and the merged DEMS file will be overwritten even if they exist. --debug=DEBUG Type: bool Default: False If True, detailed logs for debugging will be printed. ```

A typical command run is as follows: shell demerge YYYYMMDDHHMMSS --data_dir /path/to/data --reduced_dir .cache where the raw data directory, /path/to/data/cosmos_YYYYMMDDHHMMSS, will be selected, then an intermediate reduced data directory will be created as ./.cache/reduced_YYYYMMDDHHMMSS, and finally the merged DEMS file will be placed as ./dems_YYYYMMDDHHMMSS.zarr.zip.

Raw data directory

The name and the file structure of a raw data directory must be as follows:

plaintext cosmos_YYYYMMDDHHMMSS/ ├── YYYYMMDDHHMMSS.ant ├── YYYYMMDDHHMMSS.cabin ├── YYYYMMDDHHMMSS.fits ├── YYYYMMDDHHMMSS.misti ├── YYYYMMDDHHMMSS.obs ├── YYYYMMDDHHMMSS.skychopper.dat.xz ├── YYYYMMDDHHMMSS.wea ├── YYYYMMDDHHMMSS_info.txt ├── kid_corresp.json ├── kids.list ├── localsweep.sweep ├── localsweep_info.txt └── pretune ├── kids.list ├── localsweep.sweep └── localsweep_info.txt

If multiple files with the same extension exist, then the last one sorted by name will be selected.

Use as a Python package

All (sub)commands are also available as Python functions of the same names in the demerge package. For example, the following two runs are equivalent:

```shell

run by a shell script

demerge YYYYMMDDHHMMSS --datadir /path/to/data --reduceddir .cache ```

```python

run by a Python script

from demerge import demerge demerge("YYYYMMDDHHMMSS", datadir="/path/to/data", reduceddir=".cache") ```

Owner

  • Name: DESHIMA
  • Login: deshima-dev
  • Kind: organization

Deep Spectroscopic High-redshift Mapper

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: demerge
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: Akio
    family-names: Taniguchi
    affiliation: Kitami Institute of Technology
    orcid: 'https://orcid.org/0000-0002-9695-6183'
  - given-names: Tatsuya
    family-names: Takekoshi
    affiliation: Kitami Institute of Technology
    orcid: 'https://orcid.org/0000-0002-4124-797X'
  - given-names: Daisuke
    family-names: Naito
    affiliation: Naito Systems
identifiers:
  - type: doi
    value: 10.5281/zenodo.10015892
repository-code: 'https://github.com/deshima-dev/demerge'
abstract: DESHIMA merge code for observed datasets
keywords:
  - python
  - astronomy
  - data-format
  - deshima
  - measurement-set
  - spectroscopy
  - submillimeter
license: MIT
version: 2025.8.4
date-released: '2025-08-21'

GitHub Events

Total
  • Create event: 13
  • Release event: 7
  • Issues event: 18
  • Delete event: 11
  • Push event: 23
  • Pull request event: 17
Last Year
  • Create event: 13
  • Release event: 7
  • Issues event: 18
  • Delete event: 11
  • Push event: 23
  • Pull request event: 17

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 392
  • Total Committers: 4
  • Avg Commits per committer: 98.0
  • Development Distribution Score (DDS): 0.276
Past Year
  • Commits: 377
  • Committers: 3
  • Avg Commits per committer: 125.667
  • Development Distribution Score (DDS): 0.247
Top Committers
Name Email Commits
Akio Taniguchi t****i@a****p 284
daisukenaito n****o@n****m 94
ttakekoshi t****i@g****m 11
take 5****i 3
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 103
  • Total pull requests: 80
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 8 days
  • Total issue authors: 3
  • Total pull request authors: 2
  • Average comments per issue: 0.17
  • Average comments per pull request: 0.0
  • Merged pull requests: 76
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 28
  • Pull requests: 26
  • Average time to close issues: about 1 month
  • Average time to close pull requests: 21 days
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.11
  • Average comments per pull request: 0.0
  • Merged pull requests: 25
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • astropenguin (98)
  • ttakekoshi (9)
  • daisukenaito (1)
Pull Request Authors
  • astropenguin (114)
  • daisukenaito (1)
Top Labels
Issue Labels
feature (55) release (36) bug (23) refactoring (5) docs (2) env (1)
Pull Request Labels
release (52) feature (50) bug (33) refactoring (9) docs (3) env (2)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 422 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 34
  • Total maintainers: 1
pypi.org: demerge

DESHIMA merge code for observed datasets

  • Documentation: https://demerge.readthedocs.io/
  • License: MIT License Copyright (c) 2021-2025 DESHIMA Team Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 2025.8.4
    published 6 months ago
  • Versions: 34
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 422 Last month
Rankings
Dependent packages count: 9.2%
Average: 38.7%
Dependent repos count: 68.3%
Maintainers (1)
Last synced: 6 months ago

Dependencies

.github/workflows/pypi.yaml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
.github/workflows/tests.yaml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite
poetry.lock pypi
  • appnope 0.1.3
  • asciitree 0.3.3
  • asteval 0.9.31
  • astropy 5.3.4
  • asttokens 2.4.1
  • backcall 0.2.0
  • colorama 0.4.6
  • contourpy 1.1.1
  • cycler 0.12.1
  • decorator 5.1.1
  • dems 0.7.0
  • exceptiongroup 1.1.3
  • executing 2.0.1
  • fasteners 0.19
  • fonttools 4.43.1
  • future 0.18.3
  • importlib-resources 6.1.0
  • ipython 8.16.1
  • jedi 0.19.1
  • kiwisolver 1.4.5
  • lmfit 1.2.2
  • matplotlib 3.8.0
  • matplotlib-inline 0.1.6
  • mpmath 1.3.0
  • numcodecs 0.12.1
  • numpy 1.26.1
  • packaging 23.2
  • pandas 2.1.2
  • parso 0.8.3
  • pexpect 4.8.0
  • pickleshare 0.7.5
  • pillow 10.1.0
  • prompt-toolkit 3.0.39
  • ptyprocess 0.7.0
  • pure-eval 0.2.2
  • pyerfa 2.0.1.1
  • pygments 2.16.1
  • pyparsing 3.1.1
  • python-dateutil 2.8.2
  • pytz 2023.3.post1
  • pyyaml 6.0.1
  • scipy 1.11.3
  • setuptools 68.2.2
  • setuptools-scm 8.0.4
  • six 1.16.0
  • stack-data 0.6.3
  • sympy 1.12
  • tomli 2.0.1
  • traitlets 5.12.0
  • typing-extensions 4.8.0
  • tzdata 2023.3
  • uncertainties 3.1.7
  • wcwidth 0.2.8
  • xarray 2023.10.1
  • xarray-dataclasses 1.7.0
  • zarr 2.16.1
  • zipp 3.17.0
pyproject.toml pypi
  • astropy ^5.2
  • dems ^0.7
  • lmfit ^1.2
  • matplotlib ^3.7
  • numpy ^1.25
  • python >=3.9, <3.13
  • scipy ^1.10
  • sympy ^1.10
  • zarr ^2.14