Skip to main content

anomalous_gas_extractor

=====

Introduction

The Anomalous Gas Extractor (AGE) separates the neutral hydrogen (HI) of every galaxy in a data cube into a regularly rotating disc and anomalous gas (tails, bridges, clouds). It is made for interacting systems, such as galaxy groups, in which the HI of several galaxies is connected. AGE combines several packages in one run:

Step What is done With
sofia source finding SoFiA-2
deblend detections that hold several galaxies are divided deblend_sofia_detections
components the components are named after the known galaxies and selected
rmax kinematic centre and outer radius of the regular rotation (r_max) of every component; which components host a rotating disc Kinemetry
pyfat tilted-ring model, limited to r_max, of every rotating disc that spans at least three beams pyFAT and TiRiFiC
hi_mass HI mass of the rotating disc and of the anomalous gas
figures figures of all steps

The full documentation is at https://anomalous-gas-extractor.readthedocs.io.

Requirements

The code requires python v3.11 or higher. The python packages it depends on are installed by pip. Three programs have to be installed separately:

  • SoFiA-2
  • TiRiFiC
  • Kinemetry (Krajnovic et al. 2006), the python version distributed by its author. It is not on PyPI; download it and give the directory that holds kinemetry.py with the setting kinematics.kinemetry_path.

Installation

Download the source code from the Github or simply install with pip as:

pip install anomalous_gas_extractor

This should also install all required python dependencies. We recommend the use of python virtual environments. If so desired an anomalous_gas_extractor installation would look like:

python3 -m venv anomalous_gas_extractor_venv

source anomalous_gas_extractor_venv/bin/activate.csh

pip install anomalous_gas_extractor

(In case of bash the correct middle line is source anomalous_gas_extractor_venv/bin/activate) You might have to restart the env:

deactivate

source anomalous_gas_extractor_venv/bin/activate.csh

Once you have installed anomalous_gas_extractor you can check that it has been installed properly by running anomalous_gas_extractor as.

AGE -v

Running anomalous_gas_extractor

You can run anomalous_gas_extractor by providing a configuration file by

AGE configuration_file=file.yml

an example yaml file with all parameters, their defaults and a line of explanation for each can be printed by running

AGE print_examples=true

This writes the file AGE.yml in the current directory. Every setting can also be given on the command line, where it takes precedence over the file, for example

AGE configuration_file=file.yml hi_mass.distance_mpc=49

A minimal configuration file for a cube with blended galaxies is

input:
  sofia_parameter_file: sofia.par       # parameter file of SoFiA-2; its input.data names the cube
  known_source_table: galaxies.csv      # name, RA, Dec (degrees) of the known galaxies
internal:                               # the programs, with their directory if not on the search path
  sofia: sofia
  tirific: tirific
  pyfat: pyFAT
deblend:
  options:                              # any setting of deblend_sofia_detections
    input:
      markers: [optical image, manual table, 8 HI peaks]
      optical_images: [optical.fits]    # image on which the galaxies are found
kinematics:
  kinemetry_path: /directory/with/kinemetry.py
hi_mass:
  distance_mpc: 49.0

The steps are run in a fixed order and each one writes its results to disk, so a run can be continued or repeated from any step with input.steps_to_run, e.g. input.steps_to_run=[hi_mass,figures]. The main results of all steps are collected in component_summary.csv in the run directory, with one line for every component.

Please see the documentation for an explanation of the steps, their output and all parameters.

Test data

In the GitHub repository the directory test_data of the repository holds two small data cubes of the compact group HCG 16 (MeerKAT), with their configuration files and the results that are expected; see the README.md in each directory.

  • test_data/HCG16AB: two galaxies whose HI is connected. A fast test of all steps, including the deblending, that takes one to two minutes (the tilted-ring models are left out).
  • test_data/HCG16A: one galaxy with its tilted-ring model (some tens of minutes).

These tests can be ran with in there respective directories by invoking 'AGE configuration-file=.yml. Before running the tests make sure to set the kinemetry path in the yml file.

The tests directory contains a set of numererical tests that can be ran with:

KINEMETRY_PATH=/directory/with/kinemetry.py pytest tests

Metadata

Release files for anomalous-gas-extractor 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anomalous-gas-extractor 0.0.3
File Size Uploaded Provenance Actions
anomalous_gas_extractor-0.0.3.tar.gz 95.3 kB With provenance Details for anomalous_gas_extractor-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for anomalous-gas-extractor 0.0.3
File Interpreter ABI Platform Actions
anomalous_gas_extractor-0.0.3-py3-none-any.whl Python 3 none any Details for anomalous_gas_extractor-0.0.3-py3-none-any.whl

Total release size: 209.9 kB

Release files / anomalous_gas_extractor-0.0.3.tar.gz

Download URL anomalous_gas_extractor-0.0.3.tar.gz
Size 95.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2cde6589808d833cfbbc6f3d1f74ecf76ad639921ff8914ef492e1df789fbfba
BLAKE2b-256 checksum
How to use checksums
c22410d8bb885d7eef9554af21d91d76f291e76a28dd0452f31b8efd5054987f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / anomalous_gas_extractor-0.0.3-py3-none-any.whl

Download URL anomalous_gas_extractor-0.0.3-py3-none-any.whl
Size 114.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4cc79501cc474e75c593a891af546f9cf0a118a0a8c688b069ce343c5cfcfaee
BLAKE2b-256 checksum
How to use checksums
e77efdc16fb45448b7e0d2d011d3ca9f8b1e9dcd1460f307c0ba4c4507146a37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for anomalous-gas-extractor 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for anomalous_gas_extractor-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page