![]() |
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) |
| dmat * | mkg_ngs (dmat *sacent, real thetax, real thetay, real hc, real hs, int indps, int indastig, int indfocus, int ahstfocus) |
| Compute the NGS modal to t/t or t/t/f gradient interaction matrix. Use for sky coverage code for adhoc split tomography. | |
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. |
| dmat * mkg_ngs | ( | dmat * | sacent, |
| real | thetax, | ||
| real | thetay, | ||
| real | hc, | ||
| real | hs, | ||
| int | indps, | ||
| int | indastig, | ||
| int | indfocus, | ||
| int | ahstfocus ) |
Compute the NGS modal to t/t or t/t/f gradient interaction matrix. Use for sky coverage code for adhoc split tomography.
| sacent | Amplitude weighted center coordinate of each subaperture (nsa*2) |
| thetax | angular coordinate of NGS |
| thetay | angular coordinate of NGS |
| hc | upper DM conjugation range (for MCAO) |
| hs | LGS range |
| indps | Plate scale mode index (0 or 2) (for MCAO) |
| indastig | Astigmatism mode index (0 or 2) (for LTAO) |
| indfocus | Focus mode index (0 or indps+3 or indastig+2 |
| ahstfocus | =1: no focus mode in first PS mode in science OPD. |