==============================================================
 Checking Pupil Stops repeatability between positions 
 naomi-obs and naomi-clr

 4-April-2003
 Test performed by Simon Rees and analyzed by Almudena Zurita
==============================================================

We run the script copied at the end of this file, which after 
datumming the INGRID filter and pstop wheels, moves the pstop 
wheel between the naomi-obs and naomi-clr positions.
The PI was in the beam during the test.

The table below contains the run number and the position 
of the center of the pupil stop (naomi-obs or naomi-clr) 
on the detector for the images taken after each movement
of the wheel.

The position of the center of the stop was obtained 
with the task 'imcent' of iraf, but it was also checked by
hand. The x position was well fitted by 'imcent'. There were
small differences in the y position, but as the y postion is
not important for us that is not a problem.

See the plot showing the drift in pixels of the pupil
stops and the estimated vignetting due to the drift 
(for the measurements of the naomi-obs (plot1) and the
naomi-clr (plot2) pupil stops).
There is evidence of drift, but it seems to be smaller
than the one measured on the 8th of March for the cass-j 
and cass-k pupil stops.

----------------------------------------------------
		     (fitted center)   (by-hand)
  Image   pstop        x        y       x     y   
                     (pix)    (pix)
----------------------------------------------------
r586866  naomi-obs   608.529  488.396  607  489   
r586867  naomi-clr   606.279  486.153  607  489  r=92
r586868  naomi-obs   605.093  488.349  604  489
r586869  naomi-clr   604.497  486.150  604  489 
r586870  naomi-obs   603.432  488.358  602  489
r586871  naomi-clr   603.603  486.147  602  489
r586872  naomi-obs   603.270  488.420  602  489
r586873  naomi-clr   601.239  485.556  601  489  
r586874  naomi-obs   603.315  488.304
r586875	 naomi-clr   603.337  486.048
r586876	 naomi-obs   603.540  488.392
r586877	 naomi-clr   603.125  486.172
r586878	 naomi-obs   603.322  488.285
r586879	 naomi-clr   603.409  486.127  603  489
r586880	 naomi-obs   603.339  488.298
r586881  naomi-clr   603.715  486.181
r586882  naomi-obs   603.346  488.361
r586883	 naomi-clr   602.284  486.544
r586884	 naomi-obs   601.938  488.152
r586885	 naomi-clr   601.856  486.360
r586886	 naomi-obs   601.972  488.187
r586887	 naomi-clr   602.119  486.248
r586888	 naomi-obs   601.912  488.325
r586889  naomi-clr   602.019  486.194
r586890  naomi-obs   601.967  488.240  601 489 
r586891  naomi-clr   601.824  486.063  602 489

###########################Command used to fit the central position of 
                           the stops (r*pp.fits are the post-pre files):

imcent r*pp.fits " " coords box=300 big=300 l=0 u=3000

###########################Script used to check repeatability of pstop wheel

#!/usr/bin/csh -f -x
#
#script to check repeatibility of pupil stop wheel
#
#



@ i = 1
while ($i < 14)
  pstop ingrid  naomi-obs
  run ingrid 2 "naomi-obs"
  sleep 50
  pstop ingrid naomi-clr
  run ingrid 2 "naomi-clr"
  sleep 50
   
  @ i = $i + 1

end 

exit
=========================================================