Skip to main content

No project description provided

Project description

Rascal

Python package Coverage Status Readthedocs Status PyPI version DOI

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.

More background information can be referred to this arXiv article.

Dependencies

Installation

Instructions can be found here.

Reporting issues/feature requests

Please use the issue tracker to report any issues or support questions.

Getting started

The quickstart guide will show you how to reduce the example dataset.

Contributing Code/Documentation

If you are interested in contributing code to the project, thank you! For those unfamiliar with the process of contributing to an open-source project, you may want to read through Github’s own short informational section on how to submit a contribution or send me a message.

Style -- as long as it passes flake8.

Disclaimer

We duplicate some of the relevant metadata, but we do not process the raw metadata. Some of the metadata this software creates contain full path to the files in your system, which most likely includes a user name on your machine. Please be advised it is your responsibility to be compliant with the privacy law(s) that you are oblidged to follow, and it is your responsibility to remove any metadata that may reveal personal information and/or provide information that can reveal any computing vulunerability.

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

Uploaded Source

Built Distribution

rascal-0.3.0-py3-none-any.whl (294.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rascal-0.3.0.tar.gz
  • Upload date:
  • Size: 287.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for rascal-0.3.0.tar.gz
Algorithm Hash digest
SHA256 816f021162bb9d00c75cb55e2d27ecab12bd91085aa64a14d32ede4f5dbb8c50
MD5 510635957f74beaa652a0e9c335df336
BLAKE2b-256 34821fb72a4924bedad4cf78be6dd40d845c40a839bda71e2960395056c227d8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rascal-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 294.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for rascal-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6e3e522e3d164b13445016987c0c6c189cdbf08db76af8640b001f34f443045
MD5 d96d40f4c82ad2e055b37b01953b4028
BLAKE2b-256 ffd7a6eb6296ded6c7d5da8704441537425c8abb2b5a03ab0dc5e5c61e0c9cba

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