Image reduction template 1) Subtract dark imarith IRAS03507.122.fits - dark60.fits IRAS03507.122d.fits imarith IRAS03507.123.fits - dark60.fits IRAS03507.123d.fits imarith IRAS03507.124.fits - dark60.fits IRAS03507.124d.fits imarith IRAS03507.125.fits - dark60.fits IRAS03507.125d.fits imarith IRAS03507.126.fits - dark60.fits IRAS03507.126d.fits imarith IRAS03507.127.fits - dark60.fits IRAS03507.127d.fits imarith IRAS03507.128.fits - dark60.fits IRAS03507.128d.fits imarith IRAS03507.129.fits - dark60.fits IRAS03507.129d.fits imarith IRAS03507.130.fits - dark60.fits IRAS03507.130d.fits imstat IRAS03507.*d.fits >> awklist.txt 2) Scale images to same (mean = 12754.9 sky) value imarith IRAS03507.122d.fits * 0.985086 IRAS03507.122a.fits imarith IRAS03507.123d.fits * 0.994224 IRAS03507.123a.fits imarith IRAS03507.124d.fits * 1.00424 IRAS03507.124a.fits imarith IRAS03507.125d.fits * 0.99314 IRAS03507.125a.fits imarith IRAS03507.126d.fits * 0.989365 IRAS03507.126a.fits imarith IRAS03507.127d.fits * 0.994767 IRAS03507.127a.fits imarith IRAS03507.128d.fits * 0.998974 IRAS03507.128a.fits imarith IRAS03507.129d.fits * 1.01511 IRAS03507.129a.fits imarith IRAS03507.130d.fits * 1.02647 IRAS03507.130a.fits imstat IRAS03507*a.fits 3) Make skyflat (avg combine, min=0 max=2 reject) epar imcomb imcomb IRAS03507.*a.fits IRAS03507.sky3.fits 4) Normalize by midpt imstat IRAS03507.sky3.fits imarith IRAS03507.sky3.fits / 12758. IRAS03507.sky3N.fits 5) Divide by skyflat imarith IRAS03507.122d.fits / IRAS03507.sky3N.fits IRAS03507.122df.fits imarith IRAS03507.123d.fits / IRAS03507.sky3N.fits IRAS03507.123df.fits imarith IRAS03507.124d.fits / IRAS03507.sky3N.fits IRAS03507.124df.fits imarith IRAS03507.125d.fits / IRAS03507.sky3N.fits IRAS03507.125df.fits imarith IRAS03507.126d.fits / IRAS03507.sky3N.fits IRAS03507.126df.fits imarith IRAS03507.127d.fits / IRAS03507.sky3N.fits IRAS03507.127df.fits imarith IRAS03507.128d.fits / IRAS03507.sky3N.fits IRAS03507.128df.fits imarith IRAS03507.129d.fits / IRAS03507.sky3N.fits IRAS03507.129df.fits imarith IRAS03507.130d.fits / IRAS03507.sky3N.fits IRAS03507.130df.fits 6) Subtract by constant (midpt) imstat IRAS03507.*df.fits imarith IRAS03507.122df.fits - 12973. IRAS03507.122dfs.fits imarith IRAS03507.123df.fits - 12859. IRAS03507.123dfs.fits imarith IRAS03507.124df.fits - 12727. IRAS03507.124dfs.fits imarith IRAS03507.125df.fits - 12871. IRAS03507.125dfs.fits imarith IRAS03507.126df.fits - 12923. IRAS03507.126dfs.fits imarith IRAS03507.127df.fits - 12848. IRAS03507.127dfs.fits imarith IRAS03507.128df.fits - 12798. IRAS03507.128dfs.fits imarith IRAS03507.129df.fits - 12593. IRAS03507.129dfs.fits imarith IRAS03507.130df.fits - 12454. IRAS03507.130dfs.fits 7) get coords and shifts shifts: 445.90 588.60 444.90 484.48 445.71 689.93 340.54 589.62 547.42 588.74 0. 0. 1. 130.12 0.19 -129.33 129.36 -1.02 -129.52 -0.14 coords: 445.90 588.60 146.36 541.45 687.55 901.60 767.40 176.58 !textedit coords.txt & !textedit shifts.txt & disp IRAS03507.122dfs.fits 1 disp IRAS03507.123dfs.fits 2 disp IRAS03507.124dfs.fits 3 disp IRAS03507.125dfs.fits 4 disp IRAS03507.126dfs.fits 1 disp IRAS03507.127dfs.fits 1 disp IRAS03507.128dfs.fits 1 disp IRAS03507.129dfs.fits 1 disp IRAS03507.130dfs.fits 1 ls IRAS03507*dfs.fits >> input.txt ls IRAS03507*dfs.fits >> output.txt !textedit input.txt & !textedit output.txt & imalign @input.txt IRAS03507.122dfs.fits coords.txt @output.txt epar imcomb imcomb IRAS03507.*S.fits IRAS03507.fin.fits disp IRAS03507.fin.fits 1 image - the image name npix - the number of pixels used to do the statistics mean - the mean of the pixel distribution midpt - estimate of the median of the pixel distribution mode - the mode of the pixel distribution stddev - the standard deviation of the pixel distribution skew - the skew of the pixel distribution kurtosis - the kurtosis of the pixel distribution min - the minimum pixel value max - the maximum pixel value disp IRAS03507.130S.fits 1 disp IRAS03507.122S.fits 2 disp IRAS03507.123S.fits 3 disp IRAS03507.124S.fits 4 disp IRAS03507.125S.fits 1 disp IRAS03507236S.fits 2 disp IRAS03507.129S.fits 3 disp IRAS03507.130S.fits 4 disp IRAS03507.129S.fits 1