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