Changing code from CR+LF to LF% tr -d "\15" < fin > foutFor "output.log", the followings should be used. % mv output.log output.log.bak % tr -d \\r < output.log.bak > output.log |
keeping command log in a file. % script logfile "exit" or Ctrl+D for quit. |
1.Obtain the rotation axis on top and bottom. X0 at layer 0, X1 at layer 1311. 2.calculate the ratio and base line. X0 = base (X1-X0)/1311 = step 3.Copy files for safety. mkdir tmp cp q*.img tmp/ cp dark.img tmp/ cp output.log tmp/ 4.rotate images cd tmp hp_irac.BLI base step 0 dark.img ls q*.img | hp_irac.BLI base step 1 5.check them