MAOS
Multithreaded Adaptive Optics Simulator
|
Functions | |
void | ngsmod_prep (const parms_t *parms, recon_t *recon, const aper_t *aper, const powfs_t *powfs) |
void | ngsmod_setup (const parms_t *parms, recon_t *recon) |
void | ngsmod_dot (real *pttr_out, real *pttrcoeff_out, real *ngsmod_out, const parms_t *parms, const ngsmod_t *ngsmod, const aper_t *aper, const real *opd, int ievl) |
int | ngsmod_dot_post (real *pttr_out, real *pttrcoeff_out, real *ngsmod_out, real tot, const real *coeff, const ngsmod_t *ngsmod, const aper_t *aper, real thetax, real thetay) |
void | ngsmod_free (ngsmod_t *ngsmod) |
void | ngsmod_remove (sim_t *simu, dcell *dmerr) |
void | ngsmod2science (dmat *iopd, const loc_t *loc, const ngsmod_t *ngsmod, real thetax, real thetay, const real *mod, real alpha) |
Contains functions to setup NGS modes and reconstructor using AHST for one or more DMs. Use parms->wfsr instead of parms->wfs for wfs information, which hands GLAO mode correctly.
Notice that update of this file may require GPU code update accordingly
void ngsmod_prep | ( | const parms_t * | parms, |
recon_t * | recon, | ||
const aper_t * | aper, | ||
const powfs_t * | powfs | ||
) |
AHST parameters that are related to the geometry only, and will not be updated when estimated WFS measurement noise changes.
setup NGS modes reconstructor in ahst mode.
void ngsmod_dot | ( | real * | pttr_out, |
real * | pttrcoeff_out, | ||
real * | ngsmod_out, | ||
const parms_t * | parms, | ||
const ngsmod_t * | ngsmod, | ||
const aper_t * | aper, | ||
const real * | opd, | ||
int | ievl | ||
) |
used in performance evaluation on science opds. accumulate to out
int ngsmod_dot_post | ( | real * | pttr_out, |
real * | pttrcoeff_out, | ||
real * | ngsmod_out, | ||
real | tot, | ||
const real * | coeff, | ||
const ngsmod_t * | ngsmod, | ||
const aper_t * | aper, | ||
real | thetax, | ||
real | thetay | ||
) |
Separate post processing part so that GPU code can call it. Return non zero if error happens.
remove NGS modes from LGS DM commands if nmod==6: make sure the global focus mode is not removed from LGS result.