dir = '/0d2/ops/reformat/'
;
xst = 30
xen0 = -50
yst = 30        ;appears to be BLS bleed problems
yen0 = -5       ;everything except first and last five lines
nx = 20.
ny = 20.
xstep = 20
ystep = 20
;
;qplot = 0              ;no plots
;qplot = 1              ;linear plot only
;qplot = 4              ;log plot only
qplot = 1 + 2           ;linear/hist plots only
;qplot = 1 + 2 + 4      ;all plots
;qplot = 1 + 2 + 4 + 128
method = 3
;
;the next items should be gotten from dark current image
areadnoise2 = 0.8
aavg_off = 15.0

max_gainc = 120

filnamdc = ' '
;
imin = 100
imax = 3600	;for 1x1
;
ltf_auto, -1, 'ltf_run1.out', dir, 'sfr911007.2016', [109, 174, 242], ' ', $
                imin, imax, qplot, method, $
                xst, xen0, yst, yen0, nx, ny, xstep, ystep, $
                areadnoise2, aavg_off, max_gainc


ltf_auto, -1, 'ltf_run2.out', dir, 'sfr911007.2016', [111,114,176,179,180,245,246], ' ', $
                imin, imax, qplot, method, $
                xst, xen0, yst, yen0, nx, ny, xstep, ystep, $
                areadnoise2, aavg_off, max_gainc

close, 1
end
