A routine to aid in adjusting the shuffle.cfg values following an engineering run on the HET. This code runs the trs_ routines needed to derive new acm positions following an engineering run on the HET. After the user has measured the acm positions of points in the fplane.txt file (i.e. positions for 056=LRS2B, 066=LRS2R, 555=BIB, and 600=HPFacq) the positions are stored in a single data file:
% find_ihmp_on_acm -h usage: find_ihmp_on_acm Data.ALL [-v] [-h] arg1 = input data file Additional options: -v = print verbose comments and run in debug mode -h = just show usage message % cat Data.ALL # IHMP-acm positions after Sep2018 FPA take-down # name X,Y_ihmp X,Y_acm X,Y_acm _prev # data 555 0.7 -73.1 455.0 398.7 455.0 398.7 600 -39.9 9.97 148.7 250.3 148.7 250.3 056 -50.0 -150.0 738.6 211.6 738.6 211.6 066 50.0 -150.0 739.7 577.3 739.7 577.3 % find_ihmp_on_acm Data.ALL Newly derived IHMP center in units of acm pixels: acam_x_origin = 185.251 -+ 0.302 acam_y_origin = 397.199 -+ 1.711 See file Final_Residuals.List for more detail.The user is interactively given the option of viewing a summary plot and a final file of the fit residuals (named "Final_Residuals.List") is created. A typical plot produced in this process is shown below.
![]() |
The IHMP to acm fit made with the positions (acm coordinate frame in pixel units) for
056 (LRS2-B), 066(LRS2-R), 555(BIB), and 600(HPFacq). In this case the small blue
squares are the original acm positions. The larger red squares are the IHMP positions
transformed to the acm system using the results from a run of the trs_solve_2 routine.
These results are contained in the local file named TRS.final. Below is the
the command line call to run the routine find_ihmp_on_acm:
(3) the new acm parameters for shuffle:
% find_ihmp_on_acm Data.ALL # the command line Newly derived IHMP center in units of acm pixels: acam_x_origin = 185.251 -+ 0.302 acam_y_origin = 397.199 -+ 1.711 |