MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
comb.h File Reference

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.

Detailed Description

Compute combination

Function Documentation

◆ comb_stars()

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.

Parameters
nwfsmaxnpowfs*1 array for maximum number of wfs
starvalidnstar*npowfs array for validity of star at powfs mode. -1 means invalid
flagsee above