_images/logo.png
https://img.shields.io/badge/License-MIT-blue.svg https://badge.fury.io/py/qscan.svg https://img.shields.io/pypi/dm/qscan https://zenodo.org/badge/DOI/10.5281/zenodo.597138.svg

This documentation aims to provide detailed information regarding the use of the QSCAN program. QSCAN stands for quasar scanner and was built to ease the manual identification of absorption line systems in quasar spectra. The program allows the user to scan back and forth any quasar spectrum, manually select the fitting regions for any transition, and create a preliminary fort.13 input file that can be used by the VPFIT software to do least-square Voigt profile fitting. This program was built by Vincent Dumont and is part of the AstroQuasar group’s toolset available in our GitLab group .

_images/example.jpg

Installation

The package can be easily installed via the pip Python package manager as follows:

sudo pip install qscan

Once installed, the software can be executed simply by typing qscan on the terminal. If the path to a readable spectrum is correct, this will open an interactive matplotlib window displaying all the metal transitions regions (from either the default or user-defined list).

List of commands

Below is the list of available commands in the program. The list can also be displayed at any time by typing the question mark, ? , from the interactive matplotlib window.

-------------------------------------------------------
    List of Commands
-------------------------------------------------------
<space> | scan the spectrum in velocity range
 <down> | decrease column density
   <up> | increase column density
 <left> | decrease Doppler parameter
<right> | increase Doppler parameter
    [/] | select left/right edge of blend region
    +/- | add/remove Voigt profile
      * | position of atmospheric lines
      = | select given Voigt profile
      . | show deuterium position at -82 km/s
      ? | list of commands
      a | select the anchor transition
      b | specify Doppler parameter
      c | include floating continuum
      d | delete all transitions
      e | select right edge of the fitting region
      f | save fitting regions in fort.13
      g | change displayed velocity dispersion
      h | switch between HI and metal lists
      i | show information for selected regions
      l | identify region for blend searching
      n | specify column density
      p | move to given absorption redshift
      q | leave the program
      r | clear individual fitting region
      s | create PDF of the system
      v | move Voigt profile to selected position
      x | remove blending target region
      w | select left edge of the fitting region
      z | include floating zero
-------------------------------------------------------

Release Updates

v2.5.1

The argparse is now used to read the user-input arguments. A few fixes were also made to avoid a warning message due to a bug in Matplotlib, see this StackOverflow post for more information.

v2.3.1

Add overflow hiding features to ensure that data from specific spectral regions don’t overflow on other regions.

v2.2.1

Remove print command that was used for debugging but is no longer needed.

v2.2.0

Fixed a bug that prevent the program from selecting a proper transition in the atom.dat when a custom list of metal transition was used.

v2.1.0

Fixed a bug occurring when fort.13 was used as input.

Reporting issues

If you find any bugs when running this program, please make sure to report them by opening a new issues directly from the Gitlab’s repository at the following page:

https://gitlab.com/astroquasar/programs/qscan/-/issues

Open contributions

I invite anyone who likes and uses the software software to contribute and help me improving its functionalities. This is

Acknowledgment

Please acknowledge QSCAN in your publications using the following citation:

@software{qscan,
  author       = {Vincent Dumont},
  title        = {QScan: Quasar spectra scanning tool},
  month        = mar,
  year         = 2017,
  publisher    = {Zenodo},
  version      = {v1.0.0},
  doi          = {10.5281/zenodo.597138},
  url          = {https://doi.org/10.5281/zenodo.597138}
}

License Agreement

MIT License

Copyright (c) 2016-2020, Vincent Dumont. All rights reserved.

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.