;Different ADC Ranges for Different Nights ;GAIN was higher on last three nights ; ;KeyStr.Upper/KeyStr.Lower ADC Range - ; The upper and lower limits of the linear region of the ; detector. This is approximate at the moment; not tested. ; ;Repaced ;KeyStr.Upper/KeyStr.Lower ADC Threshold - with upper/lowerlinlim ; The upper and lower limits used to detect leaky and dead pixels ; in the routines. ; If stregex(KeyStr.Date, '07Nov17', /boolean) or $ stregex(KeyStr.Date, '07Nov19', /boolean) or $ stregex(KeyStr.Date, '07Nov16', /boolean) then begin ;Ranges on the ASIC for tonight KeyStr.UpperLinLim = 35200. KeyStr.LowerLinLim = 22000. KeyStr.UpperADCThreshold = 36000. KeyStr.LowerADCThreshold = 20000. KeyStr.SlopeSigThresh = 5 KeyStr.ReadNoiseMax = 300 EndIf Else If stregex(KeyStr.Date, '2007Nov14', /boolean) or $ stregex(KeySTr.Date, '2007Nov18', /boolean) then begin KeyStr.UpperLinLim = 33000. KeyStr.LowerLinLim = 14000. KeyStr.UpperADCThreshold = 36000. KeyStr.LowerADCThreshold = 20000. KeyStr.SlopeSigThresh = 5 KeyStr.ReadNoiseMax = 300 EndIf ;For Slope Fits of Flat, the bias has been subtracted If stregex(KeyStr.ObjectName, 'Flat', /boolean) then begin KeyStr.UpperLinLim = 60000. KeyStr.LowerLinLim = -60000. KeyStr.UpperADCThreshold = 60000. KeyStr.LowerADCThreshold = -60000. KeyStr.SlopeSigThresh = 5 KeyStr.ReadNoiseMax = 300 EndIf