YoGA Ao features » Historique » Révision 6
« Précédent |
Révision 6/15
(diff)
| Suivant »
Julien Brule, 18/06/2012 14:27
YoGA Ao features¶
The YoGA_Ao library contains routines to simulate the whole process of image formation through the atmosphere, a telescope and an adaptive optics (AO) system. Following the YoGA Philosophy YoGA_Ao is designed around a double-sided API: a Yorick API (called hereafter high-level routines) and CUDA-C API accessible to the interpreter through Yorick wrappers (called hereafter advanced routines).
There are two ways to use YoGA_Ao, either through the GUI or through the command line possibly using predefined scripts. The following description is valid for both ways but is probably more relevant to command line users. The main difference between the GUI and the command line interface is the way the simulation parameters are imported. In the latter case, the simulation parameters are centralized into a parameter file (.par). Examples of .par files are given in the data/par directory and can be used as templates. The high-level API contains a dedicated routine to read the parameters from this file and import them in the simulation environment.
List of features¶
Each API comes with a set of structures concentrating the configuration parameters for the simulation as well as various data used for computation and diagnostics. For the Yorick API, the list of structures can be found in the file yoga_ao_ystruct.i. Concerning the CUDA-C API, please refer to the file yoga_ao.cpp. Available features include:
- Kolmogorov-type turbulence generation over an arbitrary number of layers with arbitrary properties.
- Shack-Hartmann wavefront sensing including Laser Guide Stars (LGS)
- Short and long exposure imaging under the turbulence
Simulation geometry¶
The main parameter that drives most of the choices for the simulation geometry is the Fried parameter r0. Typically, for an adequate sampling, the equivalent size of the pixels we use to simulate the turbulent phase screens should be less than half r0. To ensure a good sampling, in YoGA_Ao, r0 is simulated on about 6 pixels. This ratio defines the size of the "quantum" pixels and thus the size of the phase screens to simulate (as compared to the telescope size). From this screen size, the full images size is defined, taking into account the sampling required for imaging.
As an example, in the case of an ELT, the linear size of the phase screen support (and thus of the pupil) is of the order of 1.5k to 2k pixels. This means that the linear size of the image will be at least 4k (for a minimum Shannon sampling). This is a very large number which will imply heavy computations.
To cope for these various requirements we can define 3 different pupils:
- the large pupil (called ipupil) defined on the largest support (4kx4k in our previous example) more than half of which being 0
- the small pupil (spupil) defined only on the pupil size (2kx2k in our previous example) most of it being 1
- the medium pupil (mpupil) defined on a slightly larger support: typically 4 additional pixels as a guard band on each size. This guard band is useful for manipulations on phase screens like raytracing. This is also the actual size of the ground layer phase screen.
The image below helps to understand the various pupil sizes. White is the pupil, green is the support of spupil, blue the support of mpupil et black the support of ipupil.
All these pupils are contained in arrays accessible as internal keywords of the following geom structure available from the Yorick API :
struct geom_struct { long ssize; // linear size of full image (in pixels) float zenithangle; // observations zenith angle (in deg) // internal keywords long pupdiam; // linear size of total pupil (in pixels) float cent; // central point of the simulation pointer _ipupil; // total pupil (include full guard band) pointer _mpupil; // medium pupil (part of the guard band) pointer _spupil; // small pupil (without guard band) ... };
some keywords have not been reported. Please check yoga_ao_ystruct.i for more details.
In this structure pupdiam (the diameter in pixels of the pupil is considered as an internal keyword). Two other structures contain the rest of the configuration parameters :
struct tel_struct { float diam; // telescope diameter (in meters) float cobs; // central obstruction ratio };
struct loop_struct { long niter; // number of iterations float ittime; // iteration time (in sec) };
There is one high-level routines to init the geometry with only one parameter: the pupil diameter in pixels.
func geom_init(pupdiam) /* DOCUMENT geom_init geom_init,pupdiam inits simulation geometry, depending on pupdiam the linear number of pixels in the pupil */
Turbulence generation¶
Wavefront Sensing¶
Image formation¶
List of routines
h3. High-level routines
h3. Advanced routines¶
Mis à jour par Julien Brule il y a plus de 12 ans · 6 révisions