| 
 
      Convert from the Chip to Tiled Detector (TDET) coordinate system.
     
Array_Type pix_chip_to_tdet( Integer_Type chip_id, Double_Type x,
Double_Type y ) 
      
	This routine converts a position in the Chip coordinate system
	to the matching position in the Tiled Detector (TDET) coordinate system,
	using the current settings of the pixlib module.
	The inputs are chip ID (the ccd_id value for ACIS and chip_id
	value for HRC data) and the chip location (x,y) in pixels.
	The return value is a two-element array which gives the
	TDET coordinates in pixels.  
       
chips> require( "pixlib" )
chips> pix_init_pixlib
chips> tdet = pix_chip_to_tdet( 3, 512, 512 )
chips> print( tdet )
4620
3573
	  
	    Using the default settings of the pixlib module (i.e.
	    the detector is ACIS with the aimpoint on ACIS-I1), we
	    find that the chip position (512,512) on ACIS-3 (i.e. ACIS-I3)
	    corresponds to the location (4620, 3573)
	    in the TDET system.
	   |