Skip to main content

QSOnic

Lightining-fast continuum fitting

https://joss.theoj.org/papers/10.21105/joss.06373/status.svg https://img.shields.io/pypi/v/qsonic?color=blue https://img.shields.io/badge/Source-qsonic-red 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. If you use this software, please cite the article in the Journal of Open Source Software (JOSS).

Picca to QSOnic translator

QSOnic comes with a picca ini file translator script called picca2qsonic. Usage: picca2qsonic <picca_ini_file> -o submit-qsonic.sh. This will translate the picca ini file to a SLURM script that can be submitted or run on an interactive node. It should be treated as a starting point for your own SLURM script, and you may need to modify it to suit your needs.

The key differences

  • You can use any desired input continuum from another continuum prediction method as input continuum model.

  • Coadding of spectrograph arms can be performed after continuum fitting or disabled entirely.

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

  • You can pass fiducial var_lss (column VAR_LSS) 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, except VAR column in picca is the variance on flux not deltas. We break away from that convention by explicitly requiring variance on deltas in a new column.

  • If no fiducial is passed, we fit only for var_lss (no eta fitting by default). Eta fitting can be enabled by passing --var-fit-eta. A covariance matrix is calculated based on delete-one Jackknife over subsamples between var_pipe and var_obs data points, and used in var_lss, eta fitting if --var-use-cov passed (soft recommendation to always enable this).

  • Internal weights for continuum fitting and coadding are based on smoothed IVAR, and output WEIGHT is based on this smoothed ivar. This smoothing can be turned off.

  • 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.

  • Eta fitting does not rescale IVAR output. Pipeline noise will be modified with explicit calibration option.

Metadata

Release files for qsonic 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qsonic 1.2.0
File Size Uploaded
qsonic-1.2.0.tar.gz 72.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qsonic 1.2.0
File Interpreter ABI Platform
qsonic-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 142.9 kB

Release files / qsonic-1.2.0.tar.gz

Download URL qsonic-1.2.0.tar.gz
Size 72.0 kB
Tags Source
SHA-256 checksum
How to use checksums
dc151f3870677f3e225f397816e6ed69d6fae8ee2f90a0499705c774cf52d9f4
BLAKE2b-256 checksum
How to use checksums
142596f21e0c11cbb8e240463cea269d400bf41fced086df541c8a087937dd4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / qsonic-1.2.0-py3-none-any.whl

Download URL qsonic-1.2.0-py3-none-any.whl
Size 70.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2656b29189dd535b00c177395565b15bf2e668103fcead1a40762d31ab16513e
BLAKE2b-256 checksum
How to use checksums
e71d5573e6e5266e1b1988d9f1e7cfb0a60d799fc27da8f82a8274b8aa28f7f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

1.2.2

2 release files

1.2.1

2 release files

This release

1.2.0 This release

2 release files

1.1.4

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.8.3

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page