Viewing files generated by Arroyo

One important feature of the arroyo libraries is that they generate files in fits format. There is a file format for nearly every class. Some of these classes contain fits image data - others contain only fits header keyval pairs.

One useful program included in the source distribution is simhdr. This program prints out fits header information for any file generated by arroyo. This includes information on the type of file.

You can look at files that contain 2d fits image data using a fits viewer like ds9 .

The most useful things to view at this stage in development are refractive atmospheric layers and diffractive wavefronts. The former are 2d images of the OPD variations arising in the turbulent atmosphere. Refractive atmospheric layers contain a single 2d fits image, which may be viewed using

ds9 file.fits

Files containing diffractive wavefronts are composed of two 2d fits images. The first image stores the amplitudes (e.g. the square root of the intensities) and the second image stores the phases. You may look at the amplitudes using

ds9 file.fits

and the phases using

ds9 file.fits[1]

In the future I anticipate writing an observation class, in which will be stored a 2d image of the intensities. Instances of this class will be read out from the as-yet-to-be-written detector class.