====================================================================================
INGRID tests to measure tilt of array

Date: 19-May-2003  
Observers:   MFB,SGR
Analysis:    AZ
====================================================================================

in> imheader r*[1]
r595499.fit[1][1024,1024][real]: I-FOCRUN-1/10 with pinhole mask (filter J)
r595500.fit[1][1024,1024][real]: I-FOCRUN-2/10
r595501.fit[1][1024,1024][real]: I-FOCRUN-3/10
r595502.fit[1][1024,1024][real]: I-FOCRUN-4/10
r595503.fit[1][1024,1024][real]: I-FOCRUN-5/10
r595504.fit[1][1024,1024][real]: I-FOCRUN-6/10
r595505.fit[1][1024,1024][real]: I-FOCRUN-7/10
r595506.fit[1][1024,1024][real]: I-FOCRUN-8/10
r595507.fit[1][1024,1024][real]: I-FOCRUN-9/10
r595508.fit[1][1024,1024][real]: I-FOCRUN-10/10
r595509.fit[1][1024,1024][real]: KL 400
r595510.fit[1][1024,1024][real]: KR 400
r595511.fit[1][1024,1024][real]: KR 1200 wrong title (-1200)
r595512.fit[1][1024,1024][real]: KL 1200
r595513.fit[1][1024,1024][real]: KL -800
r595514.fit[1][1024,1024][real]: KR -800

1/ Get instrument focus for the pinhole mask images.
   
   * Best focus -1151.52 with FWHM of 2.84 but ellip ~0.3
   * but  focus -800. with average FWHM of 3.40 ellip ~0.1

       INGPSNAM INGFOCUS   UTSTART         ZD 	
        clear   -1200.0 08:18:21.426    -0.280156
	clear   -1000.0 08:18:33.477    -0.280156
	clear   -800.00 08:18:45.168    -0.280156
	clear   -600.00 08:18:56.891    -0.280156
	clear   -400.00 08:19:08.549    -0.280156
	clear   -200.00 08:19:20.441    -0.280156
	clear   0.00    08:19:32.153    -0.280156
	clear   200.00  08:19:43.831    -0.280156
	clear   400.00  08:19:55.714    -0.280156
	clear   600.00  08:20:07.813    -0.280156
r595509 kel     400.00  08:28:21.077    -0.280156
r595510 ker     400.00  08:28:56.688    -0.280156
r595511 ker    -1200.00 08:29:39.216    -0.280156
r595512 kel    -1200.00 08:30:13.278    -0.280156
r595513 kel     -800.00 08:31:34.219    -0.280156
r595514 ker     -800.00 08:32:00.562    -0.280156



Reduction
===========

1. post - pre of the files
 
2. get coordinates of the holes (file:    holes.coords)
   Check that we have selected all the holes:
   
  in>displ r595511pp 1 
  in>field holes.coords "1,2" | tvmark 1 "STDIN" color=204

3. Use imcentroid to get accurate positions of the holes on
   each Hartmann image:

  imcentroid r595509pp "" holes.coords.r595509pp > r595509pp.imcentroid 
  imcentroid r595510pp "" holes.coords.r595509pp > r595510pp.imcentroid 
  imcentroid r595511pp "" holes.coords >     r595511pp.imcentroid  
  imcentroid r595512pp "" holes.coords >     r595512pp.imcentroid 
  imcentroid r595513pp "" holes.coords2 >    r595513pp.imcentroid 
  imcentroid r595514pp "" holes.coords2 >    r595514pp.imcentroid 


4. Use 'arregla.imcen' to read the output file from imcentroid and get 
   files file.imcen. These are the input for hartmann.pro

5. Results (after running 'hartmann.pro' for each pair of files):

    KEL      KER    IFOCUS y in origin     slope       elevation
r595512pp r595511pp -1200    3.2409812   -0.0027972937 90.2802
r595513pp r595514pp -800     0.76118730  -0.0024327503 90.2802

Errors in slope ~0.0003 
Errors in y in origin ~0.2

See images 

+ r595512pp+r595511pp.ps  for focus -1200
+ r595513pp+r595514pp.ps  for focus -800

in  /data/instruments/INGRID/tests/20030519

Therefore:

 -0.0026 pixel X-shift/ pixel * 1024 pixels = -2.66 pixel X-shift in 1024 pix
 -2.66 pixel X-shift * -400 micr./2.48 pixel X-shift = +430 micr. tilt in Y


This result is consistent with the value previoulsy found by Maarten and Sue
in October 2002.

====================================================================================