Skip to main content

This is a new rest-frame spectral stacking code.

Project description

SpecStacker: The Spectral Stacking Code

This is a new rest-frame spectral stacking code. For a quick start-up tutorial, see example notebook.

The code takes arrays of observed-frame wavelength, flux density, flux uncertainties and the corresponding redshifts as input parameters, shifts all spectra to the rest-frame, and resamples them onto a common wavelegth grid based on the redshift distribution and an input pixel size (e.g. 1Å). The normalisation of each spectrum is performed by taking the median, computed at the reddest possible end of the area where all spectra populate the common wavelength grid, with prominent emission lines masked out. The composite spectrum is then created by taking the median of all normalized flux density values that fall within a given wavelength bin, and using bootstrapping to calculate the uncertainties. However, to ensure that the final uncertainties are realistic, an additional built-in simulation is used.

If you make use of SpecStacker in your research, please include the following citation:

@ARTICLE{2024MNRAS.528.4547A,
   author = {{Arnaudova}, M.~I. and {Smith}, D.~J.~B. and {Hardcastle}, M.~J. and {Das}, S. and {Drake}, A. and {Duncan}, K. and {G{\"u}rkan}, G. and {Magliocchetti}, M. and {Morabito}, L.~K. and {Petley}, J.~W. and {Shenoy}, S. and {Tasse}, C.},
    title = "{Exploring the radio loudness of SDSS quasars with spectral stacking}",
  journal = {\mnras},
 keywords = {techniques: spectroscopic, galaxies: active, quasars: general, radio continuum: galaxies, Astrophysics - Astrophysics of Galaxies},
     year = 2024,
    month = mar,
   volume = {528},
   number = {3},
    pages = {4547-4567},
      doi = {10.1093/mnras/stae233},
archivePrefix = {arXiv},
   eprint = {2401.08774},
primaryClass = {astro-ph.GA},
   adsurl = {https://ui.adsabs.harvard.edu/abs/2024MNRAS.528.4547A},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

SpecStacker-0.1.0.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

SpecStacker-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file SpecStacker-0.1.0.tar.gz.

File metadata

  • Download URL: SpecStacker-0.1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for SpecStacker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7a9fe2915ca8ac4157899242d044f54a53b39620f00b0eeea481b74e3951dd75
MD5 a5bd870345fc422bd2c6b940e5552bfc
BLAKE2b-256 b944a10a7ff9616abb4f378ca2497ad561be0ebd3075cd851642cff49b5b9856

See more details on using hashes here.

File details

Details for the file SpecStacker-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: SpecStacker-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for SpecStacker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b04444a3ffcc3ef033c467998a6c0cb0ca006cd9c678aafe3d72c1abe05caa4
MD5 1db293f7d7d70e1916941e95dda4165a
BLAKE2b-256 63ce763bffa6829b6819325f7426180727ae460ef75df1088d4eae13c5ea10da

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page