MAOS
Multithreaded Adaptive Optics Simulator
Loading...
Searching...
No Matches
recon_geom.c File Reference

Functions

void shwfs_gloc_gamp (loc_t **pgloc, dmat **gamp, const parms_t *parms, const map_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_GA (recon_t *recon, const parms_t *parms, const powfs_t *powfs)
void setup_recon_GF (recon_t *recon, const parms_t *parms)
void setup_recon_dither_dm (recon_t *recon, const powfs_t *powfs, const parms_t *parms)
recon_t * setup_recon_prep (const parms_t *parms, const map_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 map_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.loc. The amplitude depends on the distortion as we assume that the distortion can be extracted from dm to wfs interaction matrix calibration.

◆ 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_GA()

void setup_recon_GA ( recon_t * recon,
const parms_t * parms,
const powfs_t * powfs )

Setup gradient operator form aloc for wfs by using GP.

◆ setup_recon_GF()

void setup_recon_GF ( recon_t * recon,
const parms_t * parms )

From focus mode to gradients. This acts on WFS, not WFSR.

◆ 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 map_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.