![]() |
MAOS
Multithreaded Adaptive Optics Simulator
|
Functions | |
| lmat * | comb_stars (lmat *nwfsmax, lmat *starvalid, int flag) |
| Determine all valid combinations of stars for all wfs. Assume that the stars are sorted in descending S/N order. valid is set to -1 for stars that need to be skipped. flag=0: keep order. nstar should be equal to nwfstot. do not reorder stars. Only 1 combination. flag=1: regular. flag=2: make wfs[0] brighter than wfs[1] (stars are sorted from bright to dim) only implemented for npowfs=1 or npowfs=2. | |
Compute combination
Determine all valid combinations of stars for all wfs. Assume that the stars are sorted in descending S/N order. valid is set to -1 for stars that need to be skipped. flag=0: keep order. nstar should be equal to nwfstot. do not reorder stars. Only 1 combination. flag=1: regular. flag=2: make wfs[0] brighter than wfs[1] (stars are sorted from bright to dim) only implemented for npowfs=1 or npowfs=2.
| nwfsmax | npowfs*1 array for maximum number of wfs |
| starvalid | nstar*npowfs array for validity of star at powfs mode. -1 means invalid |
| flag | see above |