MAOS
Multithreaded Adaptive Optics Simulator
mkg.h File Reference

Functions

dspmkg (loc_t *xloc, loc_t *ploc, dmat *amp, loc_t *saloc, dmat *saa, real saat, real scale, real dispx, real dispy, int do_partial)
 
dspmkgt (loc_t *xloc, loc_t *ploc, dmat *amp, loc_t *saloc, dmat *saa, real saat, real scale, real dispx, real dispy, int do_partial)
 

Detailed Description

Contains function that creates average gradient operator

Function Documentation

◆ mkg()

dsp* mkg ( loc_t xloc,
loc_t ploc,
dmat amp,
loc_t saloc,
dmat saa,
real  saat,
real  scale,
real  dispx,
real  dispy,
int  do_partial 
)

Returns the transpose of mkgt()

◆ mkgt()

dsp* mkgt ( loc_t xloc,
loc_t ploc,
dmat pamp,
loc_t saloc,
dmat saa,
real  saat,
real  scale,
real  dispx,
real  dispy,
int  do_partial 
)

Returns the transpose of a average gradient operator that converts the OPDs defined on xloc to subapertures defines on saloc with ploc as the intermediate pupil plane.

Parameters
xlocthe grid on which OPDs are defined
plocthe grid on the aperture plane
pampthe amplitude on ploc
salocLower left origin of the subapertures
saasubaperture amplitude, normalized to max at 1.
saatsaa threshold to enable gradient operation.
scalecone effect
dispxdisplacement due to beam angle (2 vector). similar as accphi routines
dispydisplacement due to beam angle (2 vector). similar as accphi routines
do_partial1: use points that are outside of but close to a subaperture. 0: do not use.