GithubHelp home page GithubHelp logo

jlecomte / chromatic-aberration-estimator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8.37 MB

Python notebook used to estimate the amount of longitudinal chromatic aberration in a refracting telescope

License: MIT License

Jupyter Notebook 100.00%

chromatic-aberration-estimator's Introduction

Chromatic Aberration Estimator

This Python utility can be used to estimate the amount of longitudinal chromatic aberration in a refracting telescope.

Installation

After cloning this repository, create a virtual environment using Python 3.x, and activate it:

# Create a virtual environment using Python 3.x:
> python -m venv env

# For Mac OS X or Linux:
> source env/bin/activate

# For Windows:
> env\Scripts\activate

Then, inside the virtual environment, upgrade pip:

(env) python -m pip install --upgrade pip

Finally, install the dependencies:

(env) pip install -r requirements.txt

Usage

First, you will need to capture the 2D spectrum of a star of spectral type A or F across the entire visible region, i.e. from 4,000 Å to 7,000 Å. Here is an example (Theta Leonis) captured with my Astro-Tech AT130EDT triplet ED refractor, and the Star'Ex spectrograph in its low resolution configuration (4 second exposure):

2D spectrum of Theta Leonis captured with an AT130EDT

If we stretch this image, for example in PixInsight, here is what it looks like:

Stretched 2D spectrum of Theta Leonis captured with an AT130EDT

We can now see the fishtail effect in the deep blue/near UV part of the spectrum (on the left side) caused by longitudinal chromatic aberration.

Additionally, you will need the corresponding 2D spectrum of a calibration lamp, e.g. a Neon-Argon lamp:

Stretched 2D spectrum of a Neon-Argon calibration lamp

You can refer to the atlas of Ne-Ar lines I included in this repository to identify the lines in this spectrum.

If you do not have such a calibration spectrum, you may use well-known absorption lines such as the Balmer series (ignoring, in first approximation, any doppler shift caused by the star's relative radial velocity...)

Finally, you can open the included Python notebook in VS Code (for example), and tweak the parameters, or the rendering as you see fit. The script assumes that the 2D spectrum is horizontal, and simply measures the thickness of the spectrum (FWHM of the star) for each wavelength, and renders it as a graph. It can also compute a score between 0.0 and 1.0 — the higher the value, the lower the longitudinal chromatic aberration.

Example output

You would expect that a mirrored telescope, such as a Ritchey-Chretien, would get a score of 1.0. However, the optical elements inside the spectrograph also have some amount of aberrations (chromatic, spherical, astigmatism). Therefore, with my spectrograph, a value of 0.9 is about the highest that may be obtained. If you want, and are able to obtain a reference spectrum obtained with a telescope that is known to not have any chromatic aberration (Newtonian, Ritchey-Chretien), you may also divide the spectrum obtained through a refractor by your reference spectrum. This way, it may be easier and more accurate to compare the level color correction between various telescopes.

Enjoy!

chromatic-aberration-estimator's People

Contributors

jlecomte avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.