Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-11T20:15:17.000Z (2 months ago)
- Last Synced: 2024-11-11T21:22:36.155Z (2 months ago)
- Topics: astropy, image-simulation, named-arrays, numpy, optics, optika, python, raytracing, zemax
- Language: Python
- Homepage: https://optika.readthedocs.io
- Size: 3.86 MB
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# optika
[![tests](https://github.com/sun-data/optika/actions/workflows/tests.yml/badge.svg)](https://github.com/sun-data/optika/actions/workflows/tests.yml)
[![codecov](https://codecov.io/gh/sun-data/optika/graph/badge.svg?token=tBcex8q72g)](https://codecov.io/gh/sun-data/optika)
[![Black](https://github.com/sun-data/optika/actions/workflows/black.yml/badge.svg)](https://github.com/sun-data/optika/actions/workflows/black.yml)
[![Ruff](https://github.com/sun-data/optika/actions/workflows/ruff.yml/badge.svg)](https://github.com/sun-data/optika/actions/workflows/ruff.yml)
[![Documentation Status](https://readthedocs.org/projects/optika/badge/?version=latest)](https://optika.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/optika.svg)](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:![Newtonian telescope example](https://optika.readthedocs.io/en/latest/_images/optika.systems.SequentialSystem_0_0.png)
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.![multilayer example](https://optika.readthedocs.io/en/latest/_images/optika.materials.multilayer_efficiency_1_1.png)
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)
![QE example](https://optika.readthedocs.io/en/latest/_images/optika.sensors.quantum_efficiency_effective_0_1.png)