Skip to main content

Python optical interferometer simulation

Project description

beampath.png This is a python package for simulating the data from a ground-based astronomical optical interferometer perturbed by atmospheric seeing perturbations. It is provided as supplementary material for the book “Practical Optical Interferometry”, and is derived from the code which was used to provide data for many of the figures in the book.

Introduction

This python package provides the building blocks to simulate the operation of a multi-telescope interferometer. These include functions to:

  • generate simulated atmospheric turbulent wavefront perturbations

  • correct these perturbations using adaptive optics

  • combine beams from an arbitrary number of telescopes, with or without spatial filtering, to provide complex fringe visibility measurements.

The code has been written following a functional-programming style (in other words minimising side-effects in the code where possible) in order to try and make it modular and extensible.

Example code using the package is in the tests directory. The file tests/test_visibility.py includes a complete simulation for determining visibility losses and single-mode fibre coupling losses as a function of the diameter of the telescopes.

Requirements

The simulator runs under Python3 and requires numpy. Some of the demonstration code uses astropy for manipulating and saving data tables.

Installation

On unix-like systems do

pip3 install pois

Alternatively download and unpack a copy of this repository and then use

python3 setup.py install

This should install the package into Python path and so it can be imported using

from pois import *

or

import pois

Pronunciation

The package name should be pronounced as it would be in the phrase “petits pois”.

Licencing

The code is licenced under a 2-clause BSD licence (see LICENCE).

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

pois-0.2.1.tar.gz (188.7 kB view details)

Uploaded Source

File details

Details for the file pois-0.2.1.tar.gz.

File metadata

  • Download URL: pois-0.2.1.tar.gz
  • Upload date:
  • Size: 188.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pois-0.2.1.tar.gz
Algorithm Hash digest
SHA256 774967d66811b4eef5a089e52ab1be300689b4f55530dce3f431214b2bf07619
MD5 2d24b98332b21726eb4fca0928e1f0ce
BLAKE2b-256 fe985fa4cb241a210fcf7708afc69de11d8657f78604c61352184a8ed5b689f4

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