How To Make the Primary Inverse Matrix
1. Take the Imat
1.1 Save your imat under /home/ao/data/imat/date
2. Using IDL to produce the inverse.
2.1 login into any IRTF workstation (or aoui) as 'ao'
2.2 cd to your data directory:
> cd data/imat/example
2.3 Run the IDL code to produce the inverse. The IDL program syntax is:
imat2inv, filename [, condnum=f]
> idl
IDL> imat2inv, "imat.fits"
Put "" around your filename.
If not specified, the condition number is 0.03.
This IDL routine will produce:
U.fits
V.fits
W.fits
Winv.fits
inverse.fits
inverse.txt
test_ID.fits
2.4 After you are done, type "exit" to quit IDL.
3. Using DV to look at the data.
3.1 Start DV in large mode:
> dv -l
3.2 Open and read in your imat data
(this also sets the default data path).
3.3 Execute the "read_imat_lgr.m" macro.
(or the read_imat_med.m if you ran 'dv -m').
4. Using the inverse data
4.1 Once you are happy with the inverse data, read the 'inverse.txt'
file into the AO system. Use the "Pr.Inverse.File" button in the
XUI's Imat notebook page.
4.2 On startup, the AO reads '/home/ao/data/imat/default/inverse.txt'
Put your default imat here.