MAOS
Multithreaded Adaptive Optics Simulator
|
Functions | |
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) |
dsp * | mkgt (loc_t *xloc, loc_t *ploc, dmat *amp, loc_t *saloc, dmat *saa, real saat, real scale, real dispx, real dispy, int do_partial) |
Contains function that creates average gradient operator
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()
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.
xloc | the grid on which OPDs are defined |
ploc | the grid on the aperture plane |
pamp | the amplitude on ploc |
saloc | Lower left origin of the subapertures |
saa | subaperture amplitude, normalized to max at 1. |
saat | saa threshold to enable gradient operation. |
scale | cone effect |
dispx | displacement due to beam angle (2 vector). similar as accphi routines |
dispy | displacement due to beam angle (2 vector). similar as accphi routines |
do_partial | 1: use points that are outside of but close to a subaperture. 0: do not use. |