Skip to main content

No project description provided

Project description

Rascal

Rascal is a library for automated spectrometer wavelength calibration. It has been designed primarily for astrophysics applications, but should be usable with spectra captured from any similar spectrometer.

Given a set of peaks located in your spectrum, Rascal will attempt to determine a model for your spectrometer to convert between pixels and wavelengths.

Unlike other calibration methods, rascal does not require you to manually select lines in your spectrum. Ideally you should know approximate parameters about your system, namely:

  • What arc lamp was used (e.g. Xe, Hg, Ar, CuNeAr)
  • What the dispersion of your spectrometer is (i.e. angstroms/pixel)
  • The spectral range of your system, and the starting wavelength

You don't need to know the dispersion and start wavelength exactly. Often this information is provided by the observatory, but if you don't know it, you can take a rough guess. The closer you are to the actual system settings, the more likely it is that Rascal will be able to solve the calibration. Blind calibration, where no parameters are known, is possible but challenging currently. If you don't know the lamp, you can try iterating over the various combinations of sources. Generally when you do get a correct fit, with most astronomical instruments the errors will be extremely low.

Testing

To run the unit test suite without installing rascal, cd to the root directory and run:

python -m pytest test

To view logging output during testing, run:

python -m pytest test -s

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

rascal-0.1.0.tar.gz (276.0 kB view details)

Uploaded Source

Built Distribution

rascal-0.1.0-py3-none-any.whl (283.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rascal-0.1.0.tar.gz
  • Upload date:
  • Size: 276.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Linux/5.3.0-61-generic

File hashes

Hashes for rascal-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b3888e3853e30f6572cb8d5f13373ec23ca62f33f13096fbeac856b81a8a6ac0
MD5 afac0e994ff3fe4fa019e960b31b894c
BLAKE2b-256 fd817afae44bbfc57281413b903869c0529b23958f6f7bab3dad0f304692236a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rascal-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 283.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.4 Linux/5.3.0-61-generic

File hashes

Hashes for rascal-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e74ee96d05deaf370e42072fc7a2d96c1b9f409225f2d5deb912f49034ce27c
MD5 d2621f9c53fd44f024b0b517ae95ce69
BLAKE2b-256 7b79b7cb3348b600653fb34d9cc5bfd68c26f37114d64d5637255e2923be898a

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