![]() |
MAOS
Multithreaded Adaptive Optics Simulator
|
Sky coverage of an LGS MCAO system is evaluated in two steps. First, maos runs a presimulation with ideal correction of the NGS controlled modes and saves the information needed for NGS WFS modeling. Then, the separate program skyc uses these data to simulate the NGS WFS and the low order control loop for many random star fields and asterisms. The skyc configuration files are in config/skyc.
Setting sim.skysim=1 enables the presimulation. This changes the maos configuration as follows:
config/maos/skyc_10.conf (or skyc_20.conf) adds sim.skysim=1, sim.end=5000, and a grid of NGS WFS spaced by 10" (or 20") that covers the patrol field, for a configuration with one LGS powfs (6 WFS) followed by two NGS powfs (e.g., the TTF and TT OIWFS of NFIRAOS). The following example runs the presimulation for NFIRAOS at three turbulence percentiles and several zenith angles:
The files needed by skyc are saved in subfolder skysim of the output folder:
Change directory to the skysim folder of the presimulation and run skyc:
Options:
skyc reads maos.conf, which includes config/skyc/skyc.conf for the default skyc.* parameters. Zenith angle dependent parameters (detector pixels per subaperture and implementation error) are in config/skyc/skyc_za*.conf, which can be added to the command line, e.g., skyc_za30.conf. The main parameters are:
| Parameter | Description |
|---|---|
| skyc.npowfs, skyc.nwfsmax | Number of NGS powfs (must equal maos.npowfs) and maximum number of WFS of each powfs in an asterism. |
| skyc.pixtheta, skyc.pixpsa, skyc.pixblur, skyc.pixguard | Detector pixel size (arcsec), number of pixels per subaperture, pixel blur, and guard window of each powfs. |
| skyc.rne, skyc.excess | Read out noise (a negative value selects a frame rate dependent model) and excess photon noise factor. |
| skyc.zb.* | Zero magnitude flux, sky background, detector QE, throughput, and excess background for each wavelength. |
| skyc.patfov, skyc.keepout, skyc.minrad | Diameter of the patrol field, probe keep out distance, and minimum star radius (arcsec). |
| skyc.nsky, skyc.start | Number of star fields and index of the first one. |
| skyc.lat, skyc.lon, skyc.catscl | Galactic latitude and longitude of the Besancon star catalog (config/skyc/besancon) used to generate random star fields, and the star count scaling. |
| skyc.stars | Load star fields from this file instead of generating them. It is a cell array with one element per star field, each containing a (2+nwvl) by nstar array of star location (radian) and magnitudes. |
| skyc.maxstar, skyc.maxaster, skyc.maxdtrat | Maximum number of (brightest) stars per field, asterisms per field, and sampling rates per asterism to simulate. |
| skyc.dtrats, skyc.multirate, skyc.snrmin_fast, skyc.snrmin_slow | Candidate sampling periods (in units of maos.dt, in descending order). With skyc.multirate=1, each OIWFS can run at a different rate, selected using the minimum SNR thresholds. |
| skyc.servo, skyc.gsplit | Servo type (1: integrator, 2: type II, -1: LQG) and separate gain for each mode. |
| skyc.psd_ws, skyc.addws | Telescope wind shake PSD (skip it if the maos presimulation already includes sim.wspsd) and how it is added. |
| skyc.evlstart, skyc.phystart | Time step to start performance evaluation and physical optics simulation. |
| skyc.phytype | Pixel processing: 1: matched filter, 2: CoG, 3: correlation. |
| skyc.imperrnm, skyc.imperrnmb | Additional implementation error on axis and at the edge of the patrol field (nm). |
| skyc.estimate | Only estimate the performance with servo analysis, without time domain simulation. |
| skyc.seed | Seed for the star fields and random numbers. |
| skyc.save | Save the selected asterism of each star field for a maos simulation. |
For each star field, skyc forms the asterisms from the available stars, estimates their performance with servo analysis, and runs time domain physical optics simulations of the NGS WFS (using the saved PSFs) for the most promising asterisms and sampling rates. The best asterism determines the result of the star field.
Before the first run, skyc processes the saved PSFs and stores the results in the skysim folder so that later runs can reuse them: subfolders pistat (time averaged subaperture PSFs), neaspec, and phygrad, and the WFS nonlinearity powfs0_nonlin.bin, powfs1_nonlin.bin.
The following file names are given for maos seed 1 (maos.seeds) and skyc seed 1 (skyc.seed), in the output folder of skyc. The results are mean square wavefront error in \(m^2\). Use drawres to plot the sky coverage, i.e., the cumulative distribution of the WFE of the star fields (see Simulation Results).
Res1_1.bin: An array with one column per star field and the following rows:
Star fields without a usable asterism have the open loop WFE.