Skip to main content

pychell

The tldr;

A environment to:

  1. Reduce single trace multi-order echelle spectra.

  2. Generate precise radial velocities for stellar sources.

Install with pip install . from the head directory.

Only certain instruments are supported, however adding support for a new instrument is relatively straightforward (see extending pychell).

Reduction

As of now, reduction can be performed on well-behaved spectrographs with a single trace per echelle order.

Order Tracing

By default, orders are traced with a density clustering algorithm (sklearn.cluster.DBSCAN) on either the flat fields (preferred) or data, but hard-coded maps may be used if the order locations on the detector are known to be relatively stable. If order locations must be uniquely determined from the data, tweaking the dbscan algorithm will likely be necessary. The precise order locations may still be refined for a unique exposure via iteratively cross-correlating an estimated trace profile (seeing profile) with the unrectified 2d image, so estimated order map algorithms are both sufficient and preferred, except in the case of crowded orders.

Calibration

Flat, bias, and dark calibration are performed when provided and set. Telluric calibration (flat star observations) Wavelength calibartion via ThAr lamps or LFC’s are not currently supported, but intended to be in the future if enough desired. Wavelength telluric calibration would be performed post-extraction.

Extraction

The trace profile (seeing profile) is estimated by rectifying the order and taking a median crunch in the spectral direction on a high resolution grid (tuneable parameter). The background sky, sky(x) is computed by considering regions of low flux (< 5 percent) within a given column. By default, an optimal extraction is iteratively performed on the non-rectified data, although the trace profile is interpolated for each column via cubic splines from it’s pre-defined fiducial grid according to the trace positions. Depending on the nature of the user’s work, this may not be suitable and one should rely on using an instrument specific reduction package or implementing one’s own optimal extraction algorithm(s).

Support Status:

  1. iSHELL / IRTF (Kgas, K2, J2 modes via flat field order tracing)

  2. CHIRON / SMARTS 1.5 m (highres mode, R~136k, under development)

  3. NIRSPEC / Keck (K band, under development)

Radial Velocities

Radial velocities are computed from reduced echelle spectra by forward modeling the individual orders (and optional cross-correlation).

Support Status:

  1. iSHELL (Kgas mode, methane gas cell calibrated)

  2. CHIRON (highres mode, R~136k, iodine gas cell)

  3. Minerva-North (iodine gas cell calibrated)

  4. Minerva-Australis (Pre-wavelength-calibrated via ThAr lamp, soon iodine gas cell)

  5. NIRSPEC (K band, telluric calibrated, under development)

  6. PARVI (Pre-wavelength-calibrated via LFC, under development)

Full Documentation – https://pychell.readthedocs.io/en/latest/

Metadata

Release files for pychell 1.0.6

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

Source distribution (sdist)

Source distribution for pychell 1.0.6
File Size Uploaded Provenance Actions
pychell-1.0.6.tar.gz 564.0 kB Without provenance Details for pychell-1.0.6.tar.gz

Release files / pychell-1.0.6.tar.gz

Download URL pychell-1.0.6.tar.gz
Size 564.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f147da2e392e30dfcb1c399d7797ac223556656fe0b7b61c2a57235efb201669
BLAKE2b-256 checksum
How to use checksums
3ebcf71b7c026b223dab0bc47c124d0235dc4451fce2077962e8901acf5f641b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.1 setuptools/56.0.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

Security for pychell 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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