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.2.0.tar.gz (279.4 kB view details)

Uploaded Source

Built Distribution

rascal-0.2.0-py3-none-any.whl (286.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rascal-0.2.0.tar.gz
  • Upload date:
  • Size: 279.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for rascal-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d3fc355dc705cc75173aaf9e04baac35e36c52d29918516d3ac3fcf77c780e4b
MD5 23870acb6274e320b1c91e8d2703f891
BLAKE2b-256 d757e60e17b338398bc54b3c40779584aa34d579523b665b9fa13e30b30d2343

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rascal-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 286.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for rascal-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd6b3b3bca35cd63eb25ff29a6361b4990da7edb3e6ab971e05734911321c3d
MD5 752b82f4b427ec6faa7df13613fa8e2d
BLAKE2b-256 018cf9f60af71efb6414db96c7843c984ff75dc55e566e77528e83e766a267ac

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