Skip to main content

Quasar continuum fitter for DESI

Project description

Lightining-fast continuum fitting

https://img.shields.io/pypi/v/qsonic?color=blue Tests Status Documentation Status

QSOnic is an MPI-parallelized, highly optimized quasar continuum fitting package for DESI built on the same algorithm as picca, but faster. It also provides an efficient API to read DESI quasar spectra.

The key differences

  • Coadding of spectrograph arms is optional and performed after continuum fitting.

  • Continuum is multiplied by a fiducial mean flux when provided.

  • You can pass fiducial var_lss (column VAR) and mean flux (column MEANFLUX) for observed wavelength LAMBDA in STATS extention of a FITS file. Wavelength should be linearly and equally spaced. This is the same format as rawio output from picca.

  • If no fiducial is passed, we fit only for var_lss (no eta fitting currently).

  • Internal weights for continuum fitting and coadding are based on smoothed IVAR, but output WEIGHT is not smoothed.

  • Chi2 information as well as best fits are saved in continuum_chi2_catalog.fits. Chi2 is calculated using smooth ivar and var_lss, and does not subtract sum of ln(weights).

Similarities

  • Delta files are the same. CONT column is mean flux times continuum even when fiducial mean flux is passed.

  • MEANSNR in header file and chi2 catalog is average of flux times square root of positive ivar values. Header values are per arm, but catalog values are the average over all arms.

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

qsonic-0.2.0.tar.gz (35.5 kB view hashes)

Uploaded Source

Built Distribution

qsonic-0.2.0-py3-none-any.whl (33.1 kB view hashes)

Uploaded Python 3

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