MAOS
Multithreaded Adaptive Optics Simulator
recon_prep.c File Reference

Macros

#define GREEN   BLACK
 

Functions

void shwfs_gloc_gamp (loc_t **pgloc, dmat **gamp, const parms_t *parms, const aper_t *aper, int iwfsr)
 
long count_nonzero (const lmat *in)
 
void setup_recon_HXW (recon_t *recon, const parms_t *parms, mapcell *atm)
 
void setup_recon_dither_dm (recon_t *recon, const powfs_t *powfs, const parms_t *parms)
 
recon_tsetup_recon_prep (const parms_t *parms, const aper_t *aper, const powfs_t *powfs)
 
void setup_recon_prep_ga (recon_t *recon, const parms_t *parms, const aper_t *aper, const powfs_t *powfs)
 

Detailed Description

Setup grid and ray tracing operators regarding DM. This is independent of 1) WFS geometry or noise parameters 2) Tomography

Function Documentation

◆ shwfs_gloc_gamp()

void shwfs_gloc_gamp ( loc_t **  pgloc,
dmat **  gamp,
const parms_t parms,
const aper_t aper,
int  iwfsr 
)

Create loc/amp that can be used to build GP. It has points on edge of subapertures which is different from powfs.lo. The amplitude depends on the distortion as we assume that the distortion can be extracted from dm to wfs interaction matrix calibration.

gloc and the rotated version are centered around misregx and misregy so mkamp does not use misreg. the returned gloc is defined at the WFS reference frame

◆ setup_recon_HXW()

void setup_recon_HXW ( recon_t recon,
const parms_t parms,
mapcell atm 
)

Setup ray tracing operator from xloc to ploc for guide stars.

Parameters
recon
parms
atmIf set, atm[].vx,vy will be used for predictive offsetting.

◆ setup_recon_dither_dm()

void setup_recon_dither_dm ( recon_t recon,
const powfs_t powfs,
const parms_t parms 
)

Dither using command path (DM) aberration

◆ setup_recon_prep()

recon_t* setup_recon_prep ( const parms_t parms,
const aper_t aper,
const powfs_t powfs 
)

Create reconstruction parameters that are related to the geometry only, and will not be updated when estimated WFS measurement noise changes.

This can be used to do NCPA calibration.

◆ setup_recon_prep_ga()

void setup_recon_prep_ga ( recon_t recon,
const parms_t parms,
const aper_t aper,
const powfs_t powfs 
)

That may depend on GPU data.