Laboratory and telescope demonstration of the TP3-WFS for the adaptive optics segment of AOLI
C. Colodro-Conde, S. Velasco, J.J.F. Valdivia, R.L. L\'opez, A. Oscoz,, R. Rebolo, B. Femen\'ia, D.L. King, L. Labadie, C. Mackay, B., Muthusubramanian, A. P\'erez Garrido, M. Puga, G. Rodr\'iguez-Coira, L.F., Rodr\'iguez-Ramos, J.M. Rodr\'iguez-Ramos, R. Toledo-Moreo, and I.

TL;DR
This paper reports the successful laboratory and telescope demonstration of the TP3-WFS, a novel wavefront sensor for adaptive optics in AOLI, enabling real-time corrections and improved sky coverage in visible wavelengths.
Contribution
It introduces the TP3-WFS, a new wavefront sensor that outperforms classical sensors by enabling AO corrections with fainter stars, demonstrated in real telescope conditions.
Findings
First real-time AO correction with TP3-WFS at WHT
Successful laboratory and telescope implementation of the sensor
Potential for increased sky coverage in AO systems
Abstract
AOLI (Adaptive Optics Lucky Imager) is a state-of-art instrument that combines adaptive optics (AO) and lucky imaging (LI) with the objective of obtaining diffraction limited images in visible wavelength at mid- and big-size ground-based telescopes. The key innovation of AOLI is the development and use of the new TP3-WFS (Two Pupil Plane Positions Wavefront Sensor). The TP3-WFS, working in visible band, represents an advance over classical wavefront sensors such as the Shack-Hartmann WFS (SH-WFS) because it can theoretically use fainter natural reference stars, which would ultimately provide better sky coverages to AO instruments using this newer sensor. This paper describes the software, algorithms and procedures that enabled AOLI to become the first astronomical instrument performing real-time adaptive optics corrections in a telescope with this new type of WFS, including the first…
| AO ref. | Mag. | RMS avg. | RMS std. | |
|---|---|---|---|---|
| HIP10644 | (I) | ms | ||
| HDS389AB | (I) | ms | ||
| HD207470 | (I) | ms | ||
| Neptune | 7.7 (int.) | ms |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Laboratory and telescope demonstration of the TP3-WFS for the adaptive optics segment of AOLI
C. Colodro-Conde,1 S. Velasco,2,3 J.J.F. Valdivia,4,5 R.L. López,2,3 A. Oscoz,2,3 R. Rebolo,2,3,6 B. Femenía,7 D.L. King,8 L. Labadie,9 C. Mackay,8 B. Muthusubramanian,9 A. Pérez Garrido,10 M. Puga,2,3 G. Rodríguez-Coira2,3 L.F. Rodríguez-Ramos,2,3 J.M. Rodríguez-Ramos,4,5,11 R. Toledo-Moreo,1 and I. Villó-Pérez1
1Departamento de Electrónica y Tecnología de Computadoras, Universidad Politécnica de Cartagena, E-30202 Cartagena, Spain
2Instituto de Astrofísica de Canarias, c/Vía Láctea s/n, La Laguna, E-38205, Spain
3Departamento de Astrofísica, Universidad de La Laguna, La Laguna, E-38200, Spain
4Departamento de Ingenieria Industrial, Universidad de La Laguna, La Laguna, Spain.
5Wooptix S.L., Torre Agustín Arévalo, Avenida Trinidad, La Laguna, E-38205, Spain
6Consejo Superior de Investigaciones Científicas, Madrid, Spain
7W. M. Keck Observatory, 65-1120 Mamalahoa Hwy., Kamuela, HI 96743, Hawaii, USA
8Institute of Astronomy, University of Cambridge, Madingley Road, Cambridge CB3 0HA, United Kingdom
9I. Physikalsiches Institut, Universität zu Köln, Zülpicher Strasse 77, 50937 Köln, Germany
10Departamento de Física Aplicada, Universidad Politécnica de Cartagena, Cartagena, E-30202, Spain
11Centro de Investigaciones Biomédicas de Canarias, Campus Ciencias de La Salud s/n, E-38071 La Laguna, Spain E-mail: [email protected]
(Accepted 2017 January 27. Received 2017 January 17; in original form 2016 October 18)
Abstract
AOLI (Adaptive Optics Lucky Imager) is a state-of-art instrument that combines adaptive optics (AO) and lucky imaging (LI) with the objective of obtaining diffraction limited images in visible wavelength at mid- and big-size ground-based telescopes. The key innovation of AOLI is the development and use of the new TP3-WFS (Two Pupil Plane Positions Wavefront Sensor). The TP3-WFS, working in visible band, represents an advance over classical wavefront sensors such as the Shack-Hartmann WFS (SH-WFS) because it can theoretically use fainter natural reference stars, which would ultimately provide better sky coverages to AO instruments using this newer sensor. This paper describes the software, algorithms and procedures that enabled AOLI to become the first astronomical instrument performing real-time adaptive optics corrections in a telescope with this new type of WFS, including the first control-related results at the William Herschel Telescope (WHT).
keywords:
instrumentation: adaptive optics – instrumentation: high angular resolution
††pubyear: 2017††pagerange: Laboratory and telescope demonstration of the TP3-WFS for the adaptive optics segment of AOLI–B
1 Introduction
Reaching the diffraction limit in the visible wavelength is one of the main reasons to place optical telescopes on-board satellites such as the Hubble Space Telescope (HST), thereby avoiding the distortions and blurring that the atmosphere introduces on the unaltered wavefronts. With its life-cycle coming to end and without any oncoming substitute in visible bands, it is crucial to provide the scientific community with tools capable of providing similar resolutions from ground. In the era of the extremely large telescopes, and due to the increase of the atmospheric distortion as the diameter of the aperture grows, this has become a world top engineering challenge.
There are two main techniques which lead to diffraction-limited imaging. On the one side, Lucky Imaging (LI) (Hufnagel & Stanley, 1964; Fried, 1978; Brandner & Hormuth, 2016) offers an excellent and cheap method for reaching diffraction limited spatial resolution in the visible band in small and mid-size ground-based telescopes (Oscoz et al., 2008). However, this technique suffers from two important limitations. First, resolutions similar to the HST can only be achieved in telescopes with sizes below 2.5m (Femenía et al., 2011; Labadie et al., 2011). Second, most of the images are discarded, meaning that only relatively bright targets can be observed.
The other technique, Adaptive Optics (AO), has been the main procedure to improve the quality of the largest ground-based telescopes during the last twenty years (Rousset et al., 1990; Beckers, 1993; Milli et al., 2016). The use of AO systems in infrared observations provides an adequate performance due to the reduced effects of turbulence in this wavelength range, thus achieving excellent results (Guyon et al., 2010; Macintosh et al., 2014; Law et al., 2014). Unfortunately, the scarce number of AO systems developed for the visible bands (Beuzit et al., 2008; Close et al., 2012) have not yet achieved the versatility and image quality already achieved in NIR (Close et al., 2013; Guyon, 2005), except for solar telescopes (Berkefeld et al., 2012). The difficulty of performing AO in the visible wavelenghts is explained by the fact that the correlation time of the atmospheric turbulence scales with (Greenwood, 1977; Fried, 1990), which means that an AO control loop operating in visible bands needs to be faster that in the NIR bands in order to provide the same degree of correction.
The Adaptive Optics Lucky Imager (AOLI) is a state-of-the-art instrument which was conceived to obtain extremely high resolution at optical wavelengths on big-sized telescopes by combining the two techniques presented in the paragraphs above (AO + LI) (Velasco et al., 2015, 2016). Initially targeted for the 4.2m William Herschel Telescope (WHT, Observatorio del Roque de los Muchachos, Spain), the instrument is designed as a double system that encompasses an adaptive optics control system before the science part of the instrument, this last implementing LI (Mackay et al., 2016). Each of the two parts of AOLI can behave as a standalone system, meaning that the AO subsystem might be used with any other science instrument, performing imaging, spectroscopy or even coronography or polarimetry.
Besides the fact of combining AO and LI for the first time in an astronomical instrument, the other key innovation of AOLI is the development and use of a new type of wavefront sensor (WFS) in its AO subsystem: the Two Pupil Plane Positions Wavefront Sensor (TP3-WFS). The implementation of the TP3-WFS was motivated by the will of being able to use fainter AO reference stars than the ones that classical wavefront sensors such as the Shack-Hartmann WFS (SH-WFS) can use, all with the aim of increasing the sky coverage of the instrument without the need of laser guide stars.
The present work gives a comprehensive description of the AO subsystem of AOLI, focusing on the TP3-WFS and all the related algorithms and procedures that were developed for its characterization and testing. The first control-related results obtained with AOLI at the WHT, also included in the paper, confirm the viability of the TP3-WFS as part of a fully-functional adaptive optics system.
The paper is organized as follows. Section 2 introduces the AO subsystem of AOLI. Section 3 describes the AO real-time processing pipeline. Section 4 describes the procedures that were used to get information the AO subsystem, thus enabling the configuration the control algorithm. Section 5 presents the results obtained both in laboratory and telescope tests. Finally, Section 6 draws the main conclusions.
2 The Adaptive Optics System of AOLI
AOLI has been built putting together the expertise of several institutions, each group specialized in a different subject. To face the challenge that AOLI represents we have implemented a new philosophy of instrumental prototyping by modularizing all its components (López et al., 2016): simulator/calibrator (Puga et al., 2014), science module (performing LI) and AO module. Figure 1 depicts the optical layout of AOLI, along with a description of the setup. On the other hand, Figure 2 shows a photograph of the instrument as mounted on the WHT.
The AO subsystem of AOLI comprises a 241-actuators deformable mirror (DM) by ALPAO, a pick-off guide-star subsystem and the Two Pupil Plane Positions Wavefront Sensor (TP3-WFS). The TP3-WFS operates with the images provided by an Andor Ixon DU-897 camera, which is based on a sub-photon noise 512x512 e2v EMCCD (Electron Multiplying Charge-Coupled Device) detector. The heart of the AO system is its Real-Time Control Software (RTC), which allows the control of 153 Zernike modes with a delay under 40s. The delay of the calculations performed in the TP3-WFS itself is around 1 ms for the same number of reconstructed modes.
AOLI was required to perform wavefront sensing using faint reference stars up to magnitude 16 in the I band with a seeing of 1 arcsec and at a wind speed of 8 km/s, which corresponds to the median value of the wind speed at the Roque de los Muchachos observatory. For the WHT this means sensing with up to four magnitudes fainter stars than the limit reached with a classical Shack-Hartmann WFS (SH-WFS). On the other hand, it was estimated that performing low-order AO corrections at a rate of 100 Hz in combination with LI would provide the desired level of correction at the science camera.
2.1 The TP3-WFS
The leading position for sensing the wavefront on AO systems has been occupied so far by the Shack-Hartmann WFS (SH-WFS), (Hartmann, 1900; Shack & Platt, 1971; Platt & Shack, 2001). One important disadvantage of the SH-WFS is that the incoming photons are distributed among all the illuminated lenslets. This sets a limitation for the magnitude of the reference stars whose wavefronts can be reconstructed, and consequently to the sky coverage of an instrument based on this type of sensor. We have developed the TP3-WFS with the aim of overcoming this disadvantage.
The TP3-WFS bases its calculations on the intensity of the images of two defocused pupil images taken at two different planes. Computer simulations predict that this way of measuring wavefronts allows attaining good reconstructions with down to 100 photons falling within each pupil image (van Dam & Lane, 2002). Although this statement is yet to be thoroughly tested under a real environment (not only by simulations), if confirmed it would mean a considerable improvement in the sensitivity when compared to the SH-WFS. Another advantage of the TP3-WFS with respect of previous wavefront sensors such as the SH-WFS is that it is capable of working on extended targets, as demonstrated later in Section 5.
The TP3-WFS is composed of the wavefront reconstruction software (WFR), the WFS camera and the surrounding optics (see Figure 1). The main function of the TP3-WFS optics is to obtain the two defocused images near the pupil plane, which are later acquired by the WFS camera and finally processed by the WFR software. The WFR software is founded on the algorithm proposed by van Dam & Lane (2002), and it operates in real-time thanks to its GPU-accelerated implementation (Fernández-Valdivia et al., 2013). More detail about the internals of the WFR software will be given later in Section 3.2.
3 AO processing pipeline
Had the AO system of AOLI been based on well-known technologies such as the Shack-Hartmann WFS, the team could have benefited from the developments and knowledge from previous projects, or even from commercially available solutions. However, the use of a type of WFS that had never been implemented before for astronomical applications forced the development of not only the WFS itself, but also of the surrounding methods and software. The new system had to be designed for the specific needs of the TP3-WFS, with a focus on flexibility so as to counter uncertainties that this new method arose.
In the end, the AO part of AOLI was implemented with three new pieces of software: the frame grabbing software (FG), the WFR and the RTC. The three pieces of software are interconnected in a processing pipeline as shown in Figure 3. This processing pipeline is triggered every time a new frame is produced by the WFS camera (which sets the AO sampling rate), and it re-enters the idle state once a new actuation vector is sent to the DM.
The target environment for all the AO-related software would be a single computer operating with GPUs and under Windows. We selected an Intel Core i7-4790K CPU and an nVidia GeForce GTX Titan Z GPU running the Windows 7 operative system. The following subsections will provide details about each of the three components of the AO processing pipeline.
3.1 Frame grabbing software
The main objective of the FG software is to continuously acquire images from the WFS camera and send them to the WFR software as soon as they are being received, with no further processing in between. Additionally, this software allows configuring the camera parameters and provides real-time information once the acquisition process has started.
Reference AO stars with bright apparent magnitudes may produce images in the EMCCD sensor with unnecessary large signal-to-noise ratios (S/N), with no actual improvement in the accuracy of the reconstructed wavefronts. In those cases, the operator of the instrument would normally decrease the exposure time of the WFS camera so as to get a faster sampling rate, which would enable the RTC software to produce DM actuations more frequently and thus improve the quality of the AO corrections even with bad atmospheric conditions. The upper limit of the sampling rate is set by the camera hardware itself and by the element of the AO processing pipeline whose execution time is longer.
On the other hand, the S/N of the pupil images of faint reference AO stars can indeed be improved by lowering the sampling rate of the camera, but this may have a negative impact on the quality of the AO corrections because the RTC software may not be able to keep up with the speed of variation of the atmospheric turbulence at that specific period of time. In those cases, the recommended solution is to activate the binning function of the EMCCD, which will increase the S/N of the image by combining the charges of adjacent pixels, at the expense of a lower spatial resolution in the acquired pupil images. This would improve the accuracy of the wavefront reconstructions in the cases of low light, although it will not be possible to reconstruct the higher-order modes because of the loss of image resolution.
For an optimal configuration of the camera, it is important to know that its sampling rate does not only depend on the exposure time and the size of the readout region, but also on other parameters such as the frequency of the EMCCD clocks, specially the clock that drives the ADC (analog-to-digital converter). This type of clock fine-tuning has to be done carefully in order not to degrade the S/N.
3.2 Wavefront reconstruction software
The WFR software takes the two defocused images formed by the TP3-WFS optics and calculates the photon displacements between those two planes by applying the Radon transform (Radon, 1917) over a set of projection angles. The photon displacements are then used to produce an estimation of the slopes of the incident wavefront. Finally, the algorithm outputs a Zernike representation of the reconstructed wavefront (von F, 1934), calculated as the least-squares fit between the calculated slopes and the ones that each individual Zernike mode would produce.
The WFR algorithm is clearly the one that has a higher computational cost in the whole AO processing pipeline, so a huge effort was put in optimizing its implementation in order to achieve real-time performance. Among all the possible acceleration methods, it was decided that the WFR would take advantage of GPUs in order to achieve real-time operation, more specifically, by means of the CUDA language. When compared to other FPGA or CPU-based approaches, the GPU implementation was considered a good trade-off from the point of view of development costs, flexibility and re-usability (Rodríguez Ramos et al., 2015).
Figure 4 provides a graphical summary of the steps of the WFR algorithm, whose equations are further described in van Dam & Lane (2002). Even though the description of the algorithm itself is out of the scope of this paper, the following subsections will give practical considerations about some of the blocks in Figure 4, which can be helpful for both the development and use of future wavefront sensors using this reconstruction technique, besides the TP3-WFS itself.
3.2.1 Extract pupils
The first step of the algorithm is to extract the two regions of the input image that correspond to each pupil image. In the case of AOLI, this separation has to be done by software because the optics of the TP3-WFS were designed in such a way that both defocused pupil images fall within the area of a single WFS detector.
In earlier versions of AOLI, each pupil image was sent to one different camera, but in the end this proved to be a bad idea because of two reasons: first, because it was very hard to synchronize the camera hardware and the related software in order to acquire from the two cameras with a high level of synchronism. Synchronism is obviously a requirement because it only makes sense to process pupil that come from the same instant of time. The second reason is that even small differences between the two cameras (quantum efficiency, dynamic range, bias level, noise, etc.) have a considerable impact on the reconstruction quality. Using a single camera is thus an effective way to solve both problems.
3.2.2 Bias and flat correction
The simulations made with different configurations showed that small deviations between the mean bias level of the two pupil regions has a considerable impact on the accuracy of the reconstructed wavefronts. Being an algorithm that bases its calculations on the differences between the two input images, this behaviour was actually expected. Therefore, it is considered mandatory to apply bias corrections as a pre-processing step.
In the same way, it is highly recommended to apply flat-field corrections to the input images, specially to reduce the effect of dust grains on the WFS sensor and optics. During a laboratory test, there was one big particle of dust falling on one pupil image that caused the control loop to enter a peculiar oscillatory regime due to the non-linearity caused by the presence of that particle.
From the point of view of a real-time implementation, it is very convenient to perform the bias and flat-field corrections to each individual pupil image, after they have been extracted to the full image. The rest of the pixels of the original image are not processed anyway, so it is a loss of processing time to correct them as well.
3.2.3 Radon transform
One important parameter to configure in the WFR algorithm is the number of projection angles for which the Radon transform will be calculated. This parameter is closely related to the number of Zernike modes to be reconstructed, as the last step of the algorithm is a least-squares adjustment between the measured wavefront slopes and the ones that the different Zernike modes would produce. This means that, for a given number of reconstructed Zernike modes, there is a minimum number of angles that need to be calculated so as to ensure that the least-squares fit is being executed correctly. A larger number of angles means a better ability to represent high-order aberrations in the Radon transforms themselves.
Of course, even though a large number of projection angles would increase the probabilities of performing a correct fit, in practice setting a very high number of angles is a bad idea because the execution time of the algorithm has a linear dependence with the number of angles. For a given number of reconstructed Zernike modes, a trade-off can be found by performing a sweep over the number of angles and determine by inspection whether the result of the static characterization is correct. Section 5.1 explains how to analyze the goodness of the static characterization results.
3.2.4 Least-squares fit
The final step of the algorithm actually requires to have pre-calculated the mean wavefront slopes that each Zernike mode would produce at perpendicular directions of each projection angle. This operation is particularly expensive from a computational perspective, so it was also GPU-accelerated in spite of not being part of the real-time AO processing pipeline. This enabled us to quickly experiment the effect of selecting different combinations of number of Randon projection angles and Zernike modes.
It is interesting to note that the input to the least-squares fit block in Figure 4 already contains all the information of the reconstructed wavefront, more specifically, the slopes along a set of projection angles. The least-squares fit is just a way of representing that wavefront in a more familiar way, which additionally enables separating some modes of special interest such as tip, tilt and defocus. It remains to be evaluated whether applying the control algorithm to the estimated slopes directly or to their 2-D integral results in a better level of correction.
At the time of writing the present work, the Zernike modes outputted by the TP3-WFS are not expressed in any particular units. While this could be a problem for other applications, it does not have any impact on the RTC control algorithm of AOLI, as this algorithm does not need to know the physical units of the measured wavefronts. Similarly, the results presented in this paper do not lose their validity because they are always intended to be analysed in a differential way (e.g., open loop vs. closed loop).
As a reference for future wavefront sensors willing to implement this reconstruction algorithm, Figure 5 shows the appearance of the slope maps of the 10 lowest-order Zernike modes (excluding piston, as it cannot be reconstructed).
3.3 Real-time control software
The RTC software is the one responsible of actuating over the DM in such a way that the effect of atmospheric turbulence on the science camera images is minimized. The control algorithm is based on an array of proportional-integral-derivative (PID) controllers. Besides the real-time functionality itself, the RTC software implements the AO characterization procedures explained later in Section 4.
The computations in the RTC software were accelerated by means of the Blaze library (Iglberger et al., 2012). The use of this library enabled easy exploiting of the AVX2 instruction set (Advanced Vector Extensions 2) available on the target CPU, which is specially useful for accelerating vector and matrix operations like the ones that are executed in the RTC algorithm. The proper use of these instructions ultimately allowed obtaining better performances than other highly-optimized GPU libraries like cuBLAS, as the latency of the CPU-GPU link constitutes a tight bottleneck for the RTC algorithm.
Figure 6 depicts the architecture of the real-time part of the RTC software. It consists on a processing pipeline that is triggered on reception of a new reconstructed wavefront, and finishes when the new set of actuations is sent to the DM. Below is a brief description of the blocks appearing in Figure 6:
- •
Mask: Extracts the elements of interest from the input wavefront. In AOLI it is used to ignore the tip and tilt modes in the AO control loop, as the LI algorithm would remove them anyway in its shift-and-add stage, where the input images are re-centered using a predefined criterion such as the position of the peak pixel.
- •
W2C (“wavefront to control”): Takes the input wavefront and transforms it to a different format just before entering the actual control stage. In AOLI, the W2C block is configured as pass-through.
- •
Target: Allows setting a control target that is different from 0. This is useful for compensating non-common path between the WFS camera and the science camera (NCPA, Non-Common Path Aberrations).
- •
PID array: As its name suggests, this block is composed of a set of independent PID controllers, one for each element present at its input vector (actually, an error vector).
- •
C2A (“control to actuations”): transforms the output of the PID array into the specific set of actuations that produce the desired correction. In AOLI, this block is configured to transform Zernike modes into actuation vectors.
4 System analysis
In order to have a fully working AO instrument one first needs to obtain information from the control plant (i.e., the elements that are part of the control loop) to configure the parameters of the RTC processing pipeline that were explained in Section 3.3. For that purpose, we developed two different procedures, each of them characterizing the AO system under different conditions.
On one hand, the static characterization procedure is used to obtain the C2A matrix by inverting the obtained influence matrix. On the other hand, the timing information given by the dynamic characterization procedure allows setting proper values to the P, I and D parameters of the PID array. The following subsections will explain these two procedures in detail.
4.1 Static characterization
The static characterization procedure allows obtaining the influence function of the AO system. This function represents the effect of actuating over the DM as seen by the WFS once the DM has reached its steady state.
The influence function is usually represented as the so-called influence matrix , where is the number of elements at the output of each WFS sample (normally a set of Zernike modes) and is the number of actuators of the DM. In this matrix, each row contains the response of the WFS when a single actuator is pushed with an actuation value equal to 1, whichever the actuation units are.
From the static point of view, the influence matrix contains all the information that is needed to correct an aberrated input wavefront by actuating over the DM. But that would only possible if the control algorithm knew the vector of actuators that compensates a given input wavefront, which is just the opposite information that the influence matrix provides. Fortunately, it is possible to invert the influence matrix so that it can be used to convert from wavefronts to actuation vectors, even if the matrix is not square. If the matrix is not square, one can apply the Moore-Penrose pseudoinverse (Penrose, 2008) instead of performing a regular matrix inversion.
The acquisition of the influence matrix was performed using the algorithm described in Appendix A. There is a set of parameters that is used to configure the algorithm, namely: (stabilize samples), (push-pull iterations), (average samples) and (actuation value).
The parameter sets the amount of time (measured in WFS samples) to wait for the AO system to stabilize after a DM actuation. This does not only depend on the response time of the mirror, but also on the rest of elements on the AO chain. The best way to set a proper value to is to measure the dynamic response of the system (Section 4.2) so as to discover the amount of WFS samples that takes for the system to reach a steady state after a step in the input.
One could expect that higher values in and should enable getting measurements with a lower level of noise. However, setting can have a negative effect on the measurement if there is a non-zero mean drift in the input wavefront (either from a star in the sky or from a calibration source). Therefore, it is recommended to set and increase the value of in order to obtain a good signal-to-noise ratio.
Regarding , it should be set with a value such that the signal that it produces on the WFS is bigger than the noise, and at the same time ensuring that the AO system (DM, optical path and WFS) does not exit its linear zone during the whole characterization process. The initial position of the DM is not relevant as long as it enables complying with this latter restriction.
The amount of time required to execute the static characterization procedure () depends on the sampling rate of the WFS (), the number of actuators () and on the following algorithm parameters: , and . By analyzing the steps of the algorithm, it can be shown that the duration of the static characterization process follows the equation below:
[TABLE]
4.2 Dynamic characterization
The dynamic characterization procedure is used to obtain the impulse reponse of the AO system. Unlike the influence function obtained during the static characterization, the impulse response characterizes the system also in the time domain.
The information provided by the impulse response can be useful for designing a proper PID control loop, that is, setting adequate values to the , and parameters. Another application of the measured impulse responses is to determine the amount of WFS samples that the AO system needs to reach a stable state after an actuation vector is sent to the DM, which sets a lower limit to the parameter of the static characterization procedure.
The dynamic characterization process consists on two stages. In the first stage, a pre-defined sequence of actuations (with is introduced into one actuator of the DM, and the resulting WFS output (where is the number of elements at the output of each WFS sample) is recorded as each element of the input sequence is introduced. After that, a post-processing stage is executed in order to obtain the impulse response of the system . The specific post-processing that needs to be applied depends on the nature of the selected input sequence.
4.2.1 On-line stage
The steps required to perform the on-line stage of the dynamic characterization over one DM actuator are explained in Appendix B. There are three configurable parameters in this algorithm: (stabilize repetitions), (average repetitions) and (duration of each iteration of the RTC algorithm).
It is required that because otherwise the system will not have entered a stationary state by the time the first output sample is read. Setting allows improving the signal-to-noise ratio, though the same effect can be achieved just by increasing the length of the input signal (i.e., increasing ), provided that the selected input signal is not a plain impulse. The parameter must represent the amount of time that each iteration of the RTC algorithm would take, otherwise there would a discrepancy between the complete AO system and the system which is being measured. The output signal is the one that will be processed during the off-line stage so as to obtain the impulse response .
As happened in the static characterization, the input parameters of the dynamic characterization have an effect on its execution time , which may be calculated as follows:
[TABLE]
4.2.2 Off-line stage
The calculations to be done on the off-line stage depend on the nature of the chosen input sequence. Among the different types of input sequences, we tested three of the most well-known ones: an impulse, white noise and maximum length sequences (MLS) (Borish & Angell, 1983; Rife & Vanderkooy, 1989). The tests were executed both in computer simulations (Colodro-Conde et al., 2015) and with the actual AOLI instrument. The authors finally chose the MLS method because it proved to perform better than the others, meaning that it produced more accurate, less noisy impulse responses with lower measurement durations.
The MLSs were generated with LFSRs (Linear Feedback Shift Registers) using the taps proposed by Ward & Molteno (2012). These LFSRs work with the values and instead of [math] and , thus producing a pseudo-random sequence containing positive and negative pulses. The input sequence is multiplied by a constant in order to control the magnitude of the actuation, in a similar way as it was done during the static characterization. The length the MLS sequence depends on the MLS order as indicated in the following equation: .
When the input sequence is a MLS, one can apply the cross-correlation between the MLS input and output in order to get the impulse response of the th element of the WFS output vector (normally a Zernike mode):
[TABLE]
5 Results
The AO system described in the previous sections was extensively tested under different conditions before going to telescope. Finally, on May 2016 the full AOLI instrument was moved to the William Herschel Telescope, were it saw first light on 22nd May 2016. At that night, we managed to close the AO control loop with a natural sky star with the new TP3-WFS, though with limited performance due to unexpected alignment issues. With the lessons learned during that night, further AO-related results were gathered on another commissioning run in October 2016, closing the loop once again but that time with several targets. In this section we will present the AO-related results, obtained both during laboratory and telescope tests.
5.1 Static characterization
During laboratory tests, the influence matrix itself proved to be an invaluable tool to learn how to configure the TP3-WFS, which had never been used on an AO system before. Given the fact that the WFR software was designed to also output the measured wavefronts as 2-D surfaces (calculated from the 1-D Zernike vectors), it was easy to determine whether the measurements were being done correctly just by representing each actuator response obtained during the static characterization (Section 4.1) and comparing it with the expected response.
In a system that works correctly, the 2-D representation of each actuator response should contain a peak that represents the position of the actuator as seen by the WFS. In the case of the TP3-WFS, one just has to ensure that the number of reconstructed Zernike modes is large enough to achieve a resolution that allows identifying such peaks. The specific number of modes that produce such resolution can be obtained either by computer simulations or by performing a sweep over the number of reconstructed modes with the test equipment. In the case of AOLI, the second option was used.
The TP3-WFS was configured as shown in Figure 7. The processed pupil regions measure 80x80 pixels each, the radius of the Zernike functions used during the precalculations was set to 25 pixels, the number of reconstructed Zernike modes was 153 and the number of Radon angles was 31. Given that the area of interest is only that of the pupils, the frame grabbing software was configured to read only the 90 scan lines where the pupils were located, in an attempt to maximize the sampling rate.
The rationale for configuring the pupil regions, the Zernike radius and the Radon angles the specified way can be found in Section 3.2. Regarding the 153 reconstructed modes, it was tested that closing the loop in laboratory with a lower number of modes led us to a worse PSF (Point Spread Function), while a higher number of modes did not result in a noticeable improvement. Ignoring the fact that LI would eliminate the need of controlling high-order modes, we decided to keep the specified number of modes with the objective of getting the best out of the AO loop alone.
On the other hand, the static characterization parameters were established as follows: , , and . This combination of parameters produced a good signal-to-noise ratio even on sky tests, with a reasonable execution time. The sampling period of the WFS camera was set to 16.243 milliseconds, and the number of actuators of the DM was . As a result, static characterizations in AOLI took almost 10 minutes, which is coherent with equation (1).
Figure 8 shows the results of performing the static characterization both in the laboratory (using the instrument calibration source, which simulates the WHT telescope) and with a natural star in the WHT. Instead of representing all the Zernike modes for all the actuators, this figure shows the 2-D surface representation of the modes for a few actuators, in order to ease the interpretation of the result. In the case of the laboratory tests (first row of Figure 8) there was no simulated turbulence, while during the measurements with a natural star (second row of Figure 8) the atmosphere created a natural turbulence giving a seeing of about 0.9 arcsec.
The results show that the influence functions obtained in the laboratory and in the sky were approximately equal. Of course, the ones obtained in the laboratory were more accurate because there was no turbulence, so they could be used as a reference to estimate the quality of the measurements performed with natural stars.
The 2-D surface representations in Figure 8 show the peak caused by each actuator in the cases were one would expect a peak. For example, one would expect a peak in Figures 8(a) and 8(d) because these actuators correspond to the visible area of the WFS (that is, the areas in grey in Figure 7). In Figures 8(b) and 8(e) one can see the response of an actuator located just at the outer border of the Zernike area marked in green in Figure 7, which can still be detected it because it falls within the pupil region (red square in Figure 7). Lastly, Figures 8(c) and 8(f) show no peaks because the location of this actuator corresponds to the obscured area at the center of the pupils.
The main conclusion of the static characterization tests is that the TP3-WFS is able to reconstruct the high-resolution wavefronts generated by the movement of each individual actuator, even with pupils that have a central obscuration area as in the WHT. Knowing that the pupils in AOLI would have a central obscuration, we prepared an alternative version of the software which calculates annular Zernike modes (Mahajan, 1981) instead of the regular ones. However, it was not necessary to use it during the commissioning at the telescope because the main software behaved perfectly.
After verifying that the TP3-WFS apparently produced correct measurements with natural reference stars, it remained to be checked whether the same thing could be said about extended objects such as planets. For this purpose, the telescope was pointed to Neptune (apparent diameter = 2.3 arcsec) and the characterization procedure was executed again. The pupil images acquired by the WFS camera (Figure 9) were a good initial sign because they looked very similar to the ones that had been obtained while pointing to stars of similar apparent magnitudes. Figure 10 shows the result for a single actuator that is neither in the border nor in the center of the pupil region. The fact that the actuator was correctly detected suggests that the TP3-WFS may allow closing the AO loop with extended objects. This hypothesis will be confirmed later in Section 5.3.
5.2 Dynamic characterization
The dynamic characterization procedure described in Section 4.2 was performed on laboratory. The same results can be expected under all conditions, including sky observations.
The parameters of the dynamic characterization were established as follows: , , and seconds. These parameters were set this way because of the reasons already outlined in Section 4.2. The simulated delay of the RTC algorithm () was set to 0 because, in AOLI, this delay is several orders of magnitude lower than the rest of the delays of the system (just a few tens of microseconds). The sampling period of the WFS camera was set to 16.243 milliseconds, and only one actuator was measured: the one at the centre of the DM. The MLS order was set to , so the length of the input sequence was . As a result of the chosen parameters, dynamic characterizations in AOLI took almost 100 seconds, which is coherent with equation (2).
Figure 11 shows the impulse response of the actuator selected for this test. The impulse response of an actuator is actually a vector of Zernike modes, but in this figure only the defocus mode was represented. This choice is justified by the fact that, for an actuator located at the center of the pupil, only the circular modes (defocus, primary spherical, secondary spherical, etc.) have enough signal level over the noise. From the point of view of the timing analysis, the specific mode that is chosen does not matter as long as it provides enough S/N ratio. For other purposes different than this analysis, one could measure the response of any actuator over any mode by executing the dynamic characterization over a long enough time, but the shape of the resulting impulse response would be the same.
In Figure 11, the first feature that attracts the attention is the fact that the impulse response only has signal in two of the samples, the rest of the samples only contain noise. The rationale behind this behaviour is hard to realize unless one has some extra information about the timing of the system. That is exactly what Figure 12 tries to illustrate. This figure represents a timeline of the tasks that occur during the dynamic characterization of the system, using actual timing data from AOLI.
The first conclusion that can be extracted from Figure 12 is that transients of the DM cannot be observed by the WFS cameras. Given the fact that the integration period is much longer than the settling time of the DM, transients are somehow averaged during the integration process, and the camera sees approximately the same signal that it would see with a perfectly steep input. That is, from the point of view of the WFS, the DM responds instantly.
Further inspection of Figure 12 reveals that the reason why the response to an impulse is divided in two samples is related to the instant of time along the integration period in which the actuation occurs, which in turn depends on the rest of delays of the system. For a system with timings similar to those of AOLI, it makes sense that the impulse response has two samples different from zero at most. The actual position and relative amplitude of these samples only depend on the accumulated delay of the tasks that are part of the plant of the system under control.
5.3 Closed loop operation on the telescope
After gathering the required information and expertise to close the control loop with the TP3-WFS on laboratory tests, we managed to successfully close the control loop with a natural star in the first commissioning night of the complete AOLI instrument in May 2016, in spite of the bad atmospheric conditions (between 1 and 2 arcsec) and an unexpected alignment problem that was discovered just as the telescope was pointed to the first star. The effects of this alignment problem, located at the instrument-telescope interface, accumulated during the night and made it impossible to close the loop reliably with other targets. In addition, the conclusions that could be extracted from the first target were limited because the acquisition parameters of the science camera had been accidentally set in such a way that the detector got saturated on closed loop operation, causing the so-called blooming effect.
The following commissioning run took place in October 2016. This time a lot of effort was put on ensuring a good alignment between the optical axes of the instrument and the telescope. One of the methods used to align the AO subsystem with the telescope during daytime was to open its petals, turn on the interior dome lights, and then perform an iterative re-adjustment of the instrument so that both the telescope and the calibration unit produced the defocused pupil images at the same positions of the WFS detector, regardless the defocus distances.
Despite the improved alignment, it was determined that static characterizations performed with the instrument calibration unit can degrade the control performance when used with natural stars. The reason is that the slightest discrepancies between the optical axis at the output of the calibration unit and at the output of the telescope make the incoming light fall within different areas of the DM surface and the WFS detector, thus changing the static response of the AO system. Therefore, it is highly recommended to be cautious about this and spend some minutes calibrating with a natural star at least once at the beginning of the night. The calibration process can be accelerated by choosing a bright reference star, which allows setting a fast AO sampling rate and still obtain a good S/N.
During the telescope tests, the TP3-WFS was configured as explained in Section 5.1. Depending on the magnitude of the AO reference object, the exposure time of the WFS camera and the number of scan lines was tuned to set a proper AO sampling rate, following the guidelines given in Section 3.1. Regarding the configuration of the control loop, most of the tests were performed discarding the tip-tilt out of the 153 measured modes. The rationale behind this decision can be found in Section 3.3. Even though the PID parameters had already been tuned in the laboratory using the information obtained during the dynamic characterization, the PID parameters were further tuned using the real turbulence from the sky, seeking a fast and stable response. The PID parameters were finally set as follows: (depending on the atmospheric conditions), and for all the 151 controlled modes.
Figure 13 shows the root-mean-squared (RMS) plots of the error of the reconstructed wavefronts when using HD207470 (I magnitude = 7.5) as AO reference star. The error is calculated with respect to the control target, always set to a [math]-vector of Zernike modes with the exception of a manually-tuned defocus term that compensates the NCPA between the WFS camera and the science camera. When comparing open loop and closed loop operation, Figure 13 shows an improvement factor of 5.23 in the average RMS, as well as an improvement factor of 2.03 in the standard deviation, which constitutes clear evidence that the control loop is operating correctly.
A more in-depth analysis was performed over the same AO reference star, obtaining statistics for each measured Zernike mode. The results are shown in Figures 14. These figures represent the average values and the standard deviation of the error in the first 50 modes (excluding tip and tilt) in open loop and closed loop operation, respectively. The modes have been ordered using the Noll notation (Noll, 1976). Once again, these plots confirm the correct operation of the control loop, as the average value and standard deviation of each mode is reduced due to the closing of the loop. It was also checked that modifying a mode in the control target vector indeed changed the average value measured for that mode in the specified amount.
Similar results were obtained from other AO reference targets different from HD207470. Such results are summarized in Table 1. The RMS error plots for each target are analogous to the ones presented in Figure 13, but modulated by the different RMS averages and standard deviations. For example, the closed-loop error plot for HIP10644 would be shifted down with respect to the plot for HD207470, and it will be less noisy. On the other hand, the lower noise would result in shorter error bars in the mode-by-mode analysis.
One conclusion of Table 1 is that the performance of the control loop depends of the magnitude of the reference object, just as expected from any AO system. Unfortunately, due to a hardware failure that was discovered after the last commissioning run, it was not possible to perform an empirical study about the faintest magnitude of the reference star with which the AO subsystem can operate reliably. One of the EMI (electromagnetic interference) filters of the acquisition card of the WFS camera was physically damaged, resulting in a considerable degradation of the sensibility of the camera. The field study about the performance of the control loop under extremely low light levels is therefore postponed for future commissioning nights where this problem will be hopefully fixed.
Even though AOLI was not originally intended to do science with extended objects, Table 1 also presents the obtained control performances while pointing to Neptune, which confirm the ability of the TP3-WFS to work with extended objects. Further confirmation is presented in Figure 16, which plots the coordinates of Neptune on the science camera when the tip and tilt modes are controlled along with the rest of the modes. This figure is a clear evidence that the tip and tilt modes are being controlled correctly: the standard deviation of the euclidean distance to the mean position is 5.02 pixels in open loop operation, while in closed loop it is only 0.66. Regarding the rest of the modes, due of the lack of features in the surface of Neptune, the only possible test was to adjust the control target of the defocus mode and visually check how it indeed had a proportional effect on the blurriness of the science image.
The results presented so far demonstrate the suitability of the TP3-WFS as the input of an adaptive optics control loop, which was the main purpose of this paper. Nevertheless, further preliminary results will be presented in the following paragraphs regarding the improvement obtained in the images acquired by the science camera. A more comprehensive analysis of the results at the science segment of AOLI, including the application of the lucky imaging algorithm, is scheduled as future work.
Figure 17 shows a set of science images of HIP10644, in open and closed loop, all acquired with 30 ms exposure time. By looking at the speckles, it is clear that the RTC algorithm is effectively reducing the effect of atmospheric aberrations on the science image. The average value of the maximum pixel of each image is 846 in the case of open loop operation, while in closed loop the average value is 1577. This means that the average of the improvement factor of the Strehl ratio is 1.864.
Finally, Figure 18 plots the probability of obtaining an image whose peak pixel value is higher than a given value. The probabilities have been estimated from the images of HIP10644. This figure is specially interesting from the point of view of lucky imaging because it somehow represents the odds of getting a lucky image. For example, for a given number of images, the percentage of images whose maximum pixel value is over 2000 would be around 1% in open loop, while in closed loop it would be as high as 46.5%. This could mean an improvement from the point of view of the LI algorithm, which may be able to produce similar results with a significantly lower amount of processed images. This hypothesis, among others, will be thoroughly tested in future works that focus on the science segment of AOLI.
6 Conclusions
This paper has presented the first use of the TP3-WFS in a real-time adaptive optics system, with successful results. The analyses, practical considerations and results presented in this paper thus pave the way for new developments besides AOLI willing to use this new type of wavefront sensor, which theoretically provides better sky coverage than previously existing wavefront sensors. The empirical study needed to confirm this latest statement is scheduled for future commissioning runs.
The closure of the control loop improved the average RMS of the 151 controlled modes in a factor of 5.23, which resulted in a clear improvement in the quality of the acquired speckle images, whose average Strehl ratio was increased by a factor of 1.864. In addition, it was confirmed that the reconstruction technique used by the TP3-WFS is able to work with extended objects such as planets, even though such targets fall out of the initial purpose of AOLI.
The presented AO-only results are encouraging due to the fact that they represent just a fraction of what can be achieved by the instrument with the combination of the AO+LI parts. In this regard, future works will focus on thoroughly analyzing the LI performance (open loop vs. closed loop). The preliminary analyses presented in this paper point to a significant improvement of the percentage of lucky images, anticipating a positive outcome also on the science segment.
Regarding the future tests that will be executed to measure the faintest magnitude with which the AO control loop can be closed reliably, two main strategies will be used to maximize the sensibility of the TP3-WFS. First, the radius of the pupil images over the detector will be reduced so as to concentrate better the incoming flux. As explained previously in the article, this would improve the S/N ratio at expense of a reduction in the spatial resolution of the sensed wavefront. The loss of resolution will not pose a problem for AOLI because it was calculated that compensating just the lowest-order modes would enable the LI algorithm to work as expected. The second strategy for maximizing the sensibility would be to use the EMCCDs in photon counting mode instead of the regular imaging mode that was used during the tests described in this article, thus matching the worst case scenario that was assumed in computer simulations. We expect to reach the required limiting magnitude for AO (mag. 16 in the I band) by the combination of these two ideas.
Acknowledgements
This work was supported by the Spanish Ministry of Economy under the projects AYA2011-29024, ESP2014-56869-C2-2-P, ESP2015-69020-C2-2-R and DPI2015-66458-C2-2-R, by project 15345/PI/10 from the Fundación Séneca, by the Spanish Ministry of Education under the grant FPU12/05573, by project ST/K002368/1 from the Science and Technology Facilities Council and by ERDF funds from the European Commission. The results presented in this paper are based on observations made with the William Herschel Telescope operated on the island of La Palma by the Isaac Newton Group in the Spanish Observatorio del Roque de los Muchachos of the Instituto de Astrofísica de Canarias. Special thanks go to Lara Monteagudo and Marcos Pellejero for their timely contributions.
Appendix A Static characterization algorithm
The static characterization algorithm described in Algorithm 1 pushes and pulls each actuator with respect to a reference position in order to calculate the slope of the function that relates the WFS readout with the movement of that actuator. The push-pull technique is applied so as to avoid hysteresis effects to affect the measurement. Additionally, all measurements are averaged a given number of times in order to improve the S/N ratio.
Appendix B Dynamic characterization algorithm.
The dynamic characterization algorithm described in Algorithm 2 allows obtaining the impulse response of the desired actuator. In a first stage, the system is put in a steady state by introducing the input sequence at least once. Then, the same input sequence is introduced a given number of times, but also recording the output of the system every time a new sample is introduced, ultimately producing an averaged output sequence.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Beckers (1993) Beckers J. M., 1993, ARA&A , 31, 13 · doi ↗
- 2Berkefeld et al. (2012) Berkefeld T., Schmidt D., Soltau D., von der Lühe O., Heidecke F., 2012, Astronomische Nachrichten , 333, 863 · doi ↗
- 3Beuzit et al. (2008) Beuzit J.-L., et al., 2008, in Ground-based and Airborne Instrumentation for Astronomy II. p. 701418, doi:10.1117/12.790120 · doi ↗
- 4Borish & Angell (1983) Borish J., Angell J. B., 1983, Journal of the Audio Engineering Society, 31, 478
- 5Brandner & Hormuth (2016) Brandner W., Hormuth F., 2016, Lucky Imaging in Astronomy. Springer International Publishing, Cham, pp 1–16, doi:10.1007/978-3-319-39739-9_1 · doi ↗
- 6Close et al. (2012) Close L. M., et al., 2012, in Adaptive Optics Systems III. p. 84470 X, doi:10.1117/12.926545 · doi ↗
- 7Close et al. (2013) Close L. M., et al., 2013, Ap J , 774, 94 · doi ↗
- 8Colodro-Conde et al. (2015) Colodro-Conde C., et al., 2015, in Lecture Notes in Computer Science, Vol. 9108, Bioinspired Computation in Artificial Systems. Springer International Publishing, pp 51–60, doi:10.1007/978-3-319-18833-1_6 · doi ↗
