ISMGCC (InterStellar Medium Gaussian Component Clustering): Finding gas structures in molecular ISM using Gaussian decomposition and Graph theory
This repository contains the Python code that implements the method described in ISMGCC: Finding Gas Structures in Molecular Interstellar Medium Using Gaussian Decomposition and Graph Theory ( arXiv:2409.01181 ). It is designed to find molecular gas structures from PPV data cubes, especially in the direction with crowded emissions, e.g., the inner galaxy.
Please refer to the tutorial for code examples.
The parameters of ISMGCC are summarized here, same as Table 1 of the paper.
| Symbol | Recommended Value | Tested Values | Description |
|---|---|---|---|
| Radii of the apertures for velocity coherence clustering, in units of pixels (Sect. 2.1); | |||
| 0.50 | \texttt{bandwidth} coefficient that controls the MeanShift clustering, smaller value leads to more velocity slices (Sect. 2.1); | ||
| 0.5 | Minimal value of |
||
| 0 | Amplitude-to-noise threshold for a Gaussian component to have |
||
| 5 | Amplitude-to-noise value for a Gaussian component to have |
||
| 1.5 | Maximum spatial separation between two Gaussian components for being spatially connected, in units of pixels (Sect. 2.2); | ||
| 0.01 | The resolution parameter of the Clauset-Newman-Moore algorithm, controls the community sizes in the graph, smaller values lead to larger communities (Sect. 2.3); | ||
| 16 | Minimal Number of pixels for a structure to be considered as a valid one (Sect. 2.4). |
The recommended values shown above are based on the MWISP 13CO(1-0) data.
For spectral lines with larger line width (e.g. HI 21cm line), smaller
Q: Why does the code stop running when I killed a previous run with Ctrl + C?
A: To prevent the cache files from being manipulated by multiple processes, *.lock files will be created and removed by the code.
But when you have mannually killed the program, the *.lock file won't be released properly.
The solution is deleteing all .lock files in the ./.cache/ directory.