MAOS
Multithreaded Adaptive Optics Simulator
|
Macros | |
#define | rmapfree(A) if(A){dfree_do((dmat*)A);A=NULL;} |
#define | mapfree(A) if(A){dfree_do((dmat*)A);A=NULL;} |
Functions | |
map_t * | mapnew (long nx, long ny, real dx, real dy) |
map_t * | mapnew2 (map_t *A) |
map_t * | mapref (map_t *A) |
void | mapcircle (map_t *map, real r, real val) |
void | map_d_din (map_t *map, real *d, real *din) |
void | create_metapupil (map_t **map, long *nx, long *ny, dmat *dirs, real D, real ht, real dx, real dy, real offset, real guard, long ninx, long niny, int pad, int square) |
map_t * | d2map (const dmat *in) |
mapcell * | dcell2map (const dcell *in) |
rmap_t * | d2rmap (const dmat *in) |
rmap_t ** | dcell2rmap (int *nlayer, const dcell *in) |
void | map_header (map_t *map) |
void | rmap_header (rmap_t *map) |
This file defines functions relates to map_t, etc.
void map_d_din | ( | map_t * | map, |
real * | d, | ||
real * | din | ||
) |
Find the inner and outer diameter of an amplitude map contained in map_t.
void create_metapupil | ( | map_t ** | mapout, |
long * | nxout, | ||
long * | nyout, | ||
dmat * | dirs, | ||
real | D, | ||
real | ht0, | ||
real | dx, | ||
real | dy, | ||
real | offset, | ||
real | guard, | ||
long | ninx, | ||
long | niny, | ||
int | pad, | ||
int | square | ||
) |
create a metapupil map, with size nx*ny, origin at (ox,oy), sampling of dx, dy, height of ht, that can cover all the directions specified in dirs
offset: distance in pixel from the point closest to the origin to origin (right side). 0: there is a point on the origin. 1/2: the closest point to origin is 1/2 pixel.
pad!=0: round nx, ny to power of 2.
[out] | mapout | map |
[out] | nxout | nx |
[out] | nyout | ny |
[in] | dirs | All Directions to cover (thetax, thetay, hs, hc) |
[in] | D | Diameter (meter) |
[in] | ht0 | Conjugation Height (meter) |
[in] | dx | Sampling along x (meter) |
[in] | dy | Sampling along y (meter) |
[in] | offset | Fractional offset of point closet from origin. between [0, 1) |
[in] | guard | Width of guard area, in meter |
[in] | ninx | Suggested size along x |
[in] | niny | Suggested size along y |
[in] | pad | Increase nx, ny to power of 2 |
[in] | square | Full square/rectangular grid |
convert a dmat to map_t.
keywords are used to specify parameters:
convert a dmat to rmap_t.
keywords are used to specify parameters:
void map_header | ( | map_t * | map | ) |
convert fields to keyword string
void rmap_header | ( | rmap_t * | map | ) |
convert fields to keyword string