Science Camera

A science camera class to measure system performance

soapy.SCI module

class soapy.SCI.PSF(soapyConfig, nSci=0, mask=None)[source]

Bases: object

calcFocalPlane()[source]

Takes the calculated pupil phase, scales for the correct FOV, and uses an FFT to transform to the focal plane.

calcInstStrehl()[source]

Calculates the instantaneous Strehl, including TT if configured.

calc_wavefronterror()[source]

Calculates the wavefront error across the telescope pupil

Returns:RMS WFE across pupil in nm
Return type:float
frame(scrns, correction=None)[source]

Runs a single science camera frame with one or more phase screens

Parameters:
  • scrns (ndarray, list, dict) – One or more 2-d phase screens. Phase in units of nm.
  • phaseCorrection (ndarray) – Correction phase in nm
Returns:

Resulting science PSF

Return type:

ndarray

setMask(mask)[source]

Sets the pupil mask as seen by the WFS.

This method can be called during a simulation

soapy.SCI.ScienceCam

alias of PSF

soapy.SCI.scienceCam

alias of PSF

class soapy.SCI.singleModeFibre(soapyConfig, nSci=0, mask=None)[source]

Bases: soapy.SCI.PSF

calcInstStrehl()[source]
fibreEfield(size)[source]
refCouplingLoss(size)[source]