https://github.com/sun-data/optika
A Python library for simulating optical systems, similar to Zemax
https://github.com/sun-data/optika
astropy image-simulation named-arrays numpy optics optika python raytracing zemax
Last synced: 9 months ago
JSON representation
A Python library for simulating optical systems, similar to Zemax
- Host: GitHub
- URL: https://github.com/sun-data/optika
- Owner: sun-data
- Created: 2023-07-31T05:28:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-07T15:55:56.000Z (10 months ago)
- Last Synced: 2025-04-07T16:28:00.829Z (10 months ago)
- Topics: astropy, image-simulation, named-arrays, numpy, optics, optika, python, raytracing, zemax
- Language: Python
- Homepage: https://optika.readthedocs.io
- Size: 4.12 MB
- Stars: 16
- Watchers: 1
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# optika
[](https://github.com/sun-data/optika/actions/workflows/tests.yml)
[](https://codecov.io/gh/sun-data/optika)
[](https://github.com/sun-data/optika/actions/workflows/black.yml)
[](https://github.com/sun-data/optika/actions/workflows/ruff.yml)
[](https://optika.readthedocs.io/en/latest/?badge=latest)
[](https://badge.fury.io/py/optika)
A Python library for simulating optical systems, similar to Zemax.
## Installation
Optika can be installed using pip:
```bash
pip install optika
```
## Features
- Sequential raytrace modeling
- Spherical, conical and toroidal surface sag profiles
- Ruled surfaces, constant, variable, and holographic line spacing
- Circular, rectangular, and polygonal apertures
- multilayer reflectivity and transmissivity
- n-dimensional configurations of the optical system using [named-arrays](https://github.com/sun-data/named-arrays)
- uncertainity propagation using [named-arrays](https://github.com/sun-data/named-arrays)
## Example Gallery
An [example](https://optika.readthedocs.io/en/latest/_autosummary/optika.systems.SequentialSystem.html#optika.systems.SequentialSystem)
of how to raytrace a Newtonian telescope using Optika:

Compute the [reflectivity of a multilayer mirror](https://optika.readthedocs.io/en/latest/_autosummary/optika.materials.multilayer_efficiency.html#optika.materials.multilayer_efficiency)
by specifying the materials and thicknesses of the layers.

Model the [quantum efficiency of a backilluminated CCD](https://optika.readthedocs.io/en/latest/_autosummary/optika.sensors.quantum_efficiency_effective.html#optika.sensors.quantum_efficiency_effective)
