##----------------------------------------------------------------------------
##Script used to generate ramps before and after forward biasing the diodes
##
##Files - Listed in /nfs/slac/g/ki/ki03/lances/H2RG-32-147/ForwardBiasedDiodes/NegPersistenceForwardBiasedDiodes1.lst
## 
##One Illuminated Image - Sky Pixel
run PlotRamps.py 'H2RG-32-147' 'ASIC' '07Dec17' 15 'I' 'ForwardBiasedDiodes' --FileList='/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ForwardBiasedDiodes/NegPersistenceForwardBiasedDiodes1.lst' --Col=240 --Row=209 --UseRef=1 --FirstFile=0 --LastFile=1 --SaveImg=1 --PlotTitle='Exposure before Forward Bias'

##4 Dark Images - Sky Pixel
run PlotRamps.py 'H2RG-32-147' 'ASIC' '07Dec17' 15 'I' 'ForwardBiasedDiodes' --FileList='/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ForwardBiasedDiodes/NegPersistenceForwardBiasedDiodes1.lst' --Col=240 --Row=209 --UseRef=1 --FirstFile=1 --SaveImg=1 --PlotTitle='Darks After Forward Bias'

##One Illuminated Image - Saturated Pixel
run PlotRamps.py 'H2RG-32-147' 'ASIC' '07Dec17' 15 'I' 'ForwardBiasedDiodes' --FileList='/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ForwardBiasedDiodes/NegPersistenceForwardBiasedDiodes1.lst' --Col=911 --Row=1011 --UseRef=1 --FirstFile=0 --LastFile=1  --SaveImg=1 --PlotTitle='Exposure before Forward Bias: Saturated Pixel'

##4 Dark Images -- Sky Pixel
run PlotRamps.py 'H2RG-32-147' 'ASIC' '07Dec17' 15 'I' 'ForwardBiasedDiodes' --FileList='/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ForwardBiasedDiodes/NegPersistenceForwardBiasedDiodes1.lst' --Col=911 --Row=1011 --UseRef=1 --FirstFile=1 --SaveImg=1 --PlotTitle='Darks After Forward Bias'

##One Illuminated Image-Halo Pixel
run PlotRamps.py 'H2RG-32-147' 'ASIC' '07Dec17' 15 'I' 'ForwardBiasedDiodes' --FileList='/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ForwardBiasedDiodes/NegPersistenceForwardBiasedDiodes1.lst' --Col=61 --Row=309 --UseRef=1 --FirstFile=0 --LastFile=1 --SaveImg=1 --PlotTitle='Exposure before Forward Bias: Halo Pixel'

##4 Dark Images -- Halo Pixel
run PlotRamps.py 'H2RG-32-147' 'ASIC' '07Dec17' 15 'I' 'ForwardBiasedDiodes' --FileList='/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ForwardBiasedDiodes/NegPersistenceForwardBiasedDiodes1.lst' --Col=61 --Row=309 --UseRef=1 --FirstFile=1 --SaveImg=1 --PlotTitle='Darks After Forward Bias'

##-----------------------------------------------------------------------
##==========================================================================
##ILLUMINATED IMAGES AFTER FORWARD BIAS  
##To generate histograms of the slopes of the illuminated image 
##(obtained from slopefits) following the forward bias after the 
##
##FILE 1
##run HistogramPixels.py '/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ASIC/Reduced/07Dec19/SaturationRamp/DithersAfterForwardBiases_I_H2RG_SIPIN_10_Reads_Dec20_2007_06_14_12_I_RPS_Slope.fits' --XStart=200 --XStop=400 --YStart=200 --YStop=400
##FILE 2
##run HistogramPixels.py '/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ASIC/Reduced/07Dec19/SaturationRamp/DithersAfterForwardBiases_I_H2RG_SIPIN_10_Reads_Dec20_2007_06_14_39_I_RPS_Slope.fits' --XStart=200 --XStop=400 --YStart=200 --YStop=400
##FILE 3
##run HistogramPixels.py '/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ASIC/Reduced/07Dec19/SaturationRamp/DithersAfterForwardBiases_I_H2RG_SIPIN_10_Reads_Dec20_2007_06_15_06_I_RPS_Slope.fits' --XStart=200 --XStop=400 --YStart=200 --YStop=400
##FILE 4
##run HistogramPixels.py '/nfs/slac/g/ki/ki03/lances/H2RG-32-147/ASIC/Reduced/07Dec19/SaturationRamp/DithersAfterForwardBiases_I_H2RG_SIPIN_10_Reads_Dec20_2007_06_15_34_I_RPS_Slope.fits' --XStart=200 --XStop=400 --YStart=200 --YStop=400
