![]() |
MAOS
Multithreaded Adaptive Optics Simulator
|
Functions | |
| void | gradoff_acc (sim_t *simu, int ipowfs) |
| void | dither_position (real *cs, real *ss, int alfsm, int dtrat, int npoint, int isim, real deltam) |
| Calculate expected averaged position of dithering signal during WFS integration. Called when (isim+1)dtrat=0 This function calculates the dither position based on the given parameters. | |
| real | dither_amp_calc (dmat **res, const dmat *signal, long dtrat, long npoint, int detrend, int combine) |
| void | dither_acc_i0 (const parms_t *parms, dither_t *pd, dcell *ints, int iwfs, int isim) |
| void | dither_acc (sim_t *simu, int iwfs) |
| void | dither_post (sim_t *simu) |
| void | sodium_fit_wrap (dmat **psodium, dcell **pgrad, dcell **pi0, dcell **pgx, dcell **pgy, const dcell *i0in, const parms_t *parms, powfs_t *powfs, int ipowfs, real r0, real L0, int nrep, int use_cache) |
| void | sodium_fit (dmat **sodium, dcell **pgrad, dcell **pi0, dcell **pgx, dcell **pgy, const dcell *i0i, const dccell *sepsf, const dtf_t *dtf, const loc_t *saloc, const dcell *saa, const dcell *srsa, const dcell *srot, const dmat *siglev, const dmat *wvlwts, const dcell *gradoff, real dh, real hs, real htel, real za, real svdthres, int nrep, int save, int use_cache) |
Contains utility routines to dithering or sodium profile fitting to update LGS WFS gain.
| void dither_position | ( | real * | cs, |
| real * | ss, | ||
| int | alfsm, | ||
| int | dtrat, | ||
| int | npoint, | ||
| int | isim, | ||
| real | deltam ) |
Calculate expected averaged position of dithering signal during WFS integration. Called when (isim+1)dtrat=0 This function calculates the dither position based on the given parameters.
| cs | The cosine of the dither angle. |
| ss | The sine of the dither angle. |
| alfsm | The additional latency due to uplink. |
| dtrat | The dither rate. |
| npoint | The number of points. |
| isim | The simulation index. |
| deltam | The dither delta. |
| real dither_amp_calc | ( | dmat ** | res, |
| const dmat * | signal, | ||
| long | dtrat, | ||
| long | npoint, | ||
| int | detrend, | ||
| int | combine ) |
Demodulate the dithering signal to determine the amplitude. Remove trend (detrending) if detrend is set.
| res | The result matrix. nmod*1 if not combine. |
| signal | The signal matrix. nmod*nsim * |
| dtrat | skip columns due to wfs/sim dt ratio |
| npoint | The number of points during dithering |
| detrend | Whether to detrend the signal. |
| combine | Whether to combine the results. for tip/tilt only |
| void dither_acc | ( | sim_t * | simu, |
| int | iwfs ) |
Accumulate dithering parameters
| void dither_post | ( | sim_t * | simu | ) |
Dither update: zoom corrector, matched filter, gain ajustment, TWFS.
| void sodium_fit_wrap | ( | dmat ** | psodium, |
| dcell ** | pgrad, | ||
| dcell ** | pi0, | ||
| dcell ** | pgx, | ||
| dcell ** | pgy, | ||
| const dcell * | i0in, | ||
| const parms_t * | parms, | ||
| powfs_t * | powfs, | ||
| int | ipowfs, | ||
| real | r0, | ||
| real | L0, | ||
| int | nrep, | ||
| int | use_cache ) |
Fit i0 to sodium profile and replace i0, gx, gy with derived parameters
| [out] | psodium | sodium profile |
| [out] | pgrad | estimated actual gradient |
| [out] | pi0 | The output i0 |
| [out] | pgx | The output gx |
| [out] | pgy | The output gy |
| [in] | i0in | The input sa intensities. may equal to *pi0 |
| [in] | parms | parms |
| [in] | powfs | powfs |
| [in] | ipowfs | ipowfs |
| [in] | r0 | Fried parameter |
| [in] | L0 | outer scale |
| [in] | nrep | Number of iterations. 1 for mtche, 3 for cog |
| [in] | use_cache | cache intermediate results. |
| void sodium_fit | ( | dmat ** | sodium, |
| dcell ** | pgrad, | ||
| dcell ** | pi0, | ||
| dcell ** | pgx, | ||
| dcell ** | pgy, | ||
| const dcell * | i0i, | ||
| const dccell * | sepsf, | ||
| const dtf_t * | dtf, | ||
| const loc_t * | saloc, | ||
| const dcell * | saa, | ||
| const dcell * | srsa, | ||
| const dcell * | srot, | ||
| const dmat * | siglevs, | ||
| const dmat * | wvlwts, | ||
| const dcell * | gradoff, | ||
| real | dh, | ||
| real | hs, | ||
| real | htel, | ||
| real | za, | ||
| real | svdthres, | ||
| int | nrep, | ||
| int | save, | ||
| int | use_cache ) |
Fit i0 to sodium profile using iterative algorithm. The steps are as follows
| sodium | The sodium profile determined by fit |
| pgrad | The gradients determined by fit. |
| pi0 | The output i0 |
| pgx | The output gx |
| pgy | The output gy |
| i0i | The input i0 |
| sepsf | Short exposure PSF |
| dtf | Detector transfer function |
| saloc | Saloc |
| saa | Subaperture area. |
| srsa | Subaperture to LLT distance |
| srot | Subaperture to LLT clocking |
| siglevs | Subaperture signal level |
| wvlwts | Wavelength weights |
| gradoff | NCPA gradient to be used for pi0,pgx,pgy output. |
| dh | The sodium profile sampling in meters |
| hs | LGS focusing height |
| htel | Telescope hegith |
| za | Telescope zenith angle |
| svdthres | SVD threshold |
| nrep | Number of iterations |
| save | Save results to file |
| use_cache | Use cache |