Editing the Transform Log file

The Transform_Collect routine writes a log file with the name transform_luci1.log in the directory where IDL is started. Transform_Collect writes the log file in APPEND mode so that each time the routine is started the log file is not overwritten. The result is that there may lines in the log file that are not needed.

An example of the original Transform_Collect log file transform_luci1.log is:

#Title LUCI1 Transformation 20200109
#Date 20200109
#Type agw_transformation
#Station LFBG
#Instrument LUCI1
#Center 1012.0 1064.0
#Data_Dir /Repository/20200109
#Bg_Available 1
#Dark_Available 0
#Labels GS          PCS_X         PCS_Y      AGW_X_req     AGW_Y_req      AGW_X_ach    AGW_Y_ach       RotAng        PosAng     Image Num          Image File          Image Type
         3         -0.070        -0.222         0.062       612.427         0.088       612.400       205.348      -135.000        10       luci1.20200109.0007.fits   Background
         3         -0.070        -0.222         0.062       612.427         0.088       612.400       205.348      -135.000        09       luci1.20200109.0006.fits   On-Axis        
#        3   Collimated: WFS image number: 0
        70       -161.751        30.526       161.946       580.747       161.985       580.734       204.603      -135.000        11       luci1.20200109.0008.fits   Field        
#Title LUCI1 Transformation 20200109
#Date 20200109
#Type agw_transformation
#Station LFBG
#Instrument LUCI1
#Center 1012.0 1064.0
#Data_Dir /Volumes/repository/20200109
#Bg_Available 1
#Dark_Available 0
#Labels GS          PCS_X         PCS_Y      AGW_X_req     AGW_Y_req      AGW_X_ach    AGW_Y_ach       RotAng        PosAng     Image Num          Image File          Image Type
         3         -0.070        -0.222         0.062       612.427         0.088       612.400       205.348      -135.000        10       luci1.20200109.0010.fits   Background
         3         -0.070        -0.222         0.062       612.427         0.088       612.400       205.348      -135.000        09       luci1.20200109.0009.fits   On-Axis        
#        3   Collimated: WFS image number: 1
        70       -161.751        30.526       161.946       580.747       161.985       580.734       204.603      -135.000        11       luci1.20200109.0011.fits   Field        
         9        -79.733        11.686        79.845       600.066        79.858       600.063       204.316      -135.000        12       luci1.20200109.0012.fits   Field        
...
...

In the log file above Transform_Collect was executed twice. The first set of header lines and the three lines listing luci1 images collected were written by the first execution of Transform_Collect. Apparently the routine failed and exited. These lines do not have useful or needed data so they should be removed. In the second set of header plus transform data there are lines with information about telescope collimation, which must be removed from the log file. These lines begin with a # and have the commend "Collimated: WFS image number:"

The final form of the log file that is ready for reading and analysis by Transform_Process_Set looks like:

#Title LUCI1 Transformation 20200109
#Date 20200109
#Type agw_transformation
#Station LFBG
#Instrument LUCI1
#Center 1012.0 1064.0
#Data_Dir /Repository/20200109
#Bg_Available 1
#Dark_Available 0
#Labels GS          PCS_X         PCS_Y      AGW_X_req     AGW_Y_req      AGW_X_ach    AGW_Y_ach       RotAng        PosAng     Image Num          Image File          Image Type
#        70       -161.751        30.526       161.946       580.747       161.985       580.734       204.603      -135.000        11       luci1.20200109.0008.fits   Field        
         3         -0.070        -0.222         0.062       612.427         0.088       612.400       205.348      -135.000        10       luci1.20200109.0010.fits   Background
         3         -0.070        -0.222         0.062       612.427         0.088       612.400       205.348      -135.000        09       luci1.20200109.0009.fits   On-Axis        
        70       -161.751        30.526       161.946       580.747       161.985       580.734       204.603      -135.000        11       luci1.20200109.0011.fits   Field        
         9        -79.733        11.686        79.845       600.066        79.858       600.063       204.316      -135.000        12       luci1.20200109.0012.fits   Field        
        65       -135.895        68.327       135.806       543.016       135.823       543.010       203.972      -135.000        13       luci1.20200109.0013.fits   Field        
        21        -62.874        55.368        62.688       556.394        62.715       556.387       203.285      -135.000        14       luci1.20200109.0014.fits   Field        
        27        -11.093        73.258        10.679       538.751        10.629       538.751       202.998      -135.000        15       luci1.20200109.0015.fits   Field        
        85        -35.942       143.174        35.175       468.571        35.196       468.568       202.655      -135.000        16       luci1.20200109.0016.fits   Field        
        61          6.231       108.471        -6.894       503.567        -6.904       503.566       202.024      -135.000        17       luci1.20200109.0017.fits   Field        
        45         54.341        72.239       -54.905       540.126       -54.962       540.117       201.738      -135.000        18       luci1.20200109.0018.fits   Field        
        30         33.984        54.743       -34.397       557.544       -34.347       557.545       201.451      -135.000        19       luci1.20200109.0019.fits   Field        
        36         72.642         5.012       -72.853       607.577       -72.926       607.571       200.477      -135.000        20       luci1.20200109.0020.fits   Field        
        82        119.785        37.707      -120.301       575.076      -120.304       575.074       200.134      -135.000        21       luci1.20200109.0021.fits   Field        
        80         88.293        82.837       -89.000       529.692       -88.983       529.691       199.847      -135.000        22       luci1.20200109.0022.fits   Field        
        53       -113.222        73.621       113.048       537.835       113.078       537.827       199.274      -135.000        23       luci1.20200109.0023.fits   Field        
         4        -29.368        25.230        29.280       586.770        29.291       586.768       198.988      -135.000        24       luci1.20200109.0024.fits   Field        
        48        -39.794       104.168        39.265       507.628        39.280       507.625       198.701      -135.000        25       luci1.20200109.0025.fits   Field        
        43          9.143        84.836        -9.674       527.261        -9.681       527.258       197.956      -135.000        26       luci1.20200109.0026.fits   Field        
        20         42.897        14.525       -43.094       597.886       -43.094       597.884       197.670      -135.000        27       luci1.20200109.0027.fits   Field        
        64         89.596        51.197       -90.119       561.398       -90.095       561.398       197.097      -135.000        28       luci1.20200109.0028.fits   Field        
        89        135.048        10.620      -135.440       602.296      -135.461       602.290       196.811      -135.000        29       luci1.20200109.0029.fits   Field        
        96         39.683       141.725       -40.622       470.432       -40.546       470.438       196.581      -135.000        30       luci1.20200109.0030.fits   Field        
       118        -21.182       172.856        20.205       438.914        20.234       438.911       195.894      -135.000        31       luci1.20200109.0031.fits   Field        
       108        155.710        21.006      -156.212       592.003      -156.215       592.000       195.607      -135.000        32       luci1.20200109.0032.fits   Field        
        92       -152.359        99.447       152.126       511.749       152.158       511.738       194.175      -135.000        33       luci1.20200109.0033.fits   Field        
         3         -0.032        -0.289         0.024       612.495        -0.029       612.492       193.175      -135.000        34       luci1.20200109.0034.fits   On-Axis        
         3         -0.025        -0.304         0.017       612.509         0.029       612.506       192.170      -135.000        35       luci1.20200109.0035.fits   On-Axis        
        52       -147.280        24.192       147.477       587.171       147.481       587.168       191.425      -135.000        37       luci1.20200109.0037.fits   Field        
        28        -35.481        75.617        35.111       536.256        35.036       536.258       191.196      -135.000        38       luci1.20200109.0038.fits   Field        
        76         52.740       108.031       -53.510       504.260       -53.512       504.255       191.024      -135.000        39       luci1.20200109.0039.fits   Field        
         3         -0.018        -0.319         0.010       612.524         0.044       612.522       191.000      -135.000        40       luci1.20200109.0040.fits   On-Axis       

Note, commented line (#) can be included only before tranform information lines. The line above with GS 70 was found to be 3 sigma outside the rest of the data so was removed from the analysis list. This lines could have been simply deleted but in order to retain a history of data collected and data removed I moved the line to above the first tranformation data line and added a comment sign (#) to the first column.

-- DougMiller - 24 Jan 2020
Topic revision: r1 - 24 Jan 2020, DougMiller
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback