Skip to main content

Helper package for handling Adaptive Optics Telemetry (AOT) standard files

Project description

aotpy

Helper Python package for handling Adaptive Optics Telemetry (AOT) standard files. Basic documentation available.

How to install

Support is offered for Python 3.10 or later.

From PyPi (recommended)

python -m pip install aotpy

From the repository

Clone the repository and then install with:

python -m pip install path/to/aotpy

where 'path/to/aotpy' is the path to the root of the cloned repository.

Code example

import numpy as np
import aotpy

system = aotpy.AOSystem(ao_mode='GLAO')
system.main_telescope = aotpy.MainTelescope("Example telescope")

dm = aotpy.DeformableMirror("Example DM", n_valid_actuators=32, telescope=system.main_telescope)
system.wavefront_correctors.append(dm)

ngs = aotpy.NaturalGuideStar("Example NGS")
lgs = aotpy.SodiumLaserGuideStar("Example LGS")
system.sources = [ngs, lgs]

ngs_wfs = aotpy.ShackHartmann("WFS1", source=ngs, n_valid_subapertures=4,
                              measurements=aotpy.Image("NGS slopes", data=np.ones((10000, 2, 4))))
lgs_wfs = aotpy.ShackHartmann("WFS2", source=lgs, n_valid_subapertures=8,
                              measurements=aotpy.Image("LGS slopes", data=np.ones((10000, 2, 8))))
system.wavefront_sensors = [ngs_wfs, lgs_wfs]

lo_loop = aotpy.ControlLoop("LO loop", input_sensor=ngs_wfs, commanded_corrector=dm,
                            commands=aotpy.Image("LO commands", data=np.ones((10000, 32))),
                            control_matrix=aotpy.Image('LO control matrix', data=np.ones((32, 2, 4))))
ho_loop = aotpy.ControlLoop("HO loop", input_sensor=lgs_wfs, commanded_corrector=dm,
                            commands=aotpy.Image("HO commands", data=np.ones((10000, 32))),
                            control_matrix=aotpy.Image('HO control matrix', data=np.ones((32, 2, 8))))
system.loops = [lo_loop, ho_loop]

system.write_to_file("example.fits", overwrite=True)

Acknowledgements

This project has received funding from the European Union’s Horizon 2020 research and innovation programme under grant agreement No. 101004719 (OPTICON–RadioNet Pilot).

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

aotpy-0.6.2.tar.gz (3.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aotpy-0.6.2-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file aotpy-0.6.2.tar.gz.

File metadata

  • Download URL: aotpy-0.6.2.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for aotpy-0.6.2.tar.gz
Algorithm Hash digest
SHA256 aa834ab984f5410d4a3f835af8650327924b5a8609132f6c3445382994aff0a8
MD5 cbfa9b69aa33b5399f65604ba5f3d215
BLAKE2b-256 2a5e03ec5a3c8fae93623504a151a25e5c1a7a5d7cc7ff960a681bccd8ab49e8

See more details on using hashes here.

File details

Details for the file aotpy-0.6.2-py3-none-any.whl.

File metadata

  • Download URL: aotpy-0.6.2-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.10

File hashes

Hashes for aotpy-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5f25b54c6c8a73cfc016222f622c812f3270d0b1955c0ab70757f12f01f471c
MD5 e32ca21a1d1fa7855a1d8b34cb62659b
BLAKE2b-256 bcae88b5f668cf2178c92fd3839e11851fb70673e724090d7a63e1d0c4a2eeb4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page