- Documentation: https://astrojoni89.github.io/astrosaber/
- Installation: see below
- Getting started: see below
- Citing astroSABER: see below
The astroSABER (Self-Absorption Baseline ExtractoR) algorithm is an automated baseline extraction routine that is designed to recover baselines of absorption features that are convoluted with HI emission spectra. It utilizes asymmetric least squares smoothing first proposed by Eilers (2004). The algorithm progresses iteratively in two cycles to obtain a smoothed baseline, the major (outer) cycle and the minor (inner) cycle executed at each iteration of the major cycle. The basis of the minor cycle is to find a solution that minimizes the penalized least squares function:
where
The asymmetry parameter
After
In the case of the THOR HI data, the minor cycle has shown to already converge after three iterations. Hence, the number of minor cycle iterations has been fixed at astrosaber
only mildly since the final smoothed baseline is mostly dependent on the number of iterations in the major cycle and on the
You will need the following packages to run astrosaber
. We list the version of each package which we know to be compatible with astrosaber
:
Download astrosaber
using git $ git clone https://github.com/astrojoni89/astrosaber.git
To install astrosaber
, make sure that all dependencies are already installed and properly linked to python. We recommend using anaconda and creating a new environment. Then cd to the local directory containing astrosaber
and install via
pip install astrosaber
or without using pip
python setup.py install
from within the astrosaber
directory.
You can find example scripts and a jupyter notebook for an HI self-absorption (HISA) baseline extraction run in the example
directory. The data used in this example are taken from The HI/OH Recombination line survey of the inner Milky Way (THOR; Beuther et al. 2016, Wang et al. 2020).
If you make use of this package in a publication, please consider the following citation:
@ARTICLE{2023A&A...679A.130S,
author = {{Syed}, J. and {Beuther}, H. and {Goldsmith}, P.~F. and {Henning}, Th. and {Heyer}, M. and {Klessen}, R.~S. and {Stil}, J.~M. and {Soler}, J.~D. and {Anderson}, L.~D. and {Urquhart}, J.~S. and {Rugel}, M.~R. and {Johnston}, K.~G. and {Brunthaler}, A.},
title = "{Cold atomic gas identified by H I self-absorption. Cold atomic clouds toward giant molecular filaments}",
journal = {\aap},
keywords = {ISM: clouds, ISM: atoms, ISM: molecules, radio lines: ISM, stars: formation, Astrophysics - Astrophysics of Galaxies},
year = 2023,
month = nov,
volume = {679},
eid = {A130},
pages = {A130},
doi = {10.1051/0004-6361/202346562},
archivePrefix = {arXiv},
eprint = {2310.02077},
primaryClass = {astro-ph.GA},
adsurl = {https://ui.adsabs.harvard.edu/abs/2023A&A...679A.130S},
adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}
Citation courtesy of ADS.
Please also consider acknowledgements to the required packages in your work.
We would love to get your feedback on astrosaber
. If you should find that astrosaber
does not perform as intended for your dataset or if you should come across bugs or have suggestions for improvement, please get into contact with us or open a new Issue or Pull request.