23 from .
import algorithmsLib
24 from .
import detection
27 """Config for the findCosmicRays function
29 nCrPixelMax = pexConfig.Field(
31 doc =
"maximum number of contaminated pixels",
34 minSigma = pexConfig.Field(
36 doc =
"CRs must be > this many sky-sig above sky",
39 min_DN = pexConfig.Field(
41 doc =
"CRs must have > this many DN (== electrons/gain) in initial detection",
44 cond3_fac = pexConfig.Field(
46 doc =
"used in condition 3 for CR; see CR.cc code",
49 cond3_fac2 = pexConfig.Field(
51 doc =
"used in condition 3 for CR; see CR.cc code",
54 niteration = pexConfig.Field(
56 doc =
"number of times to look for contaminated pixels near known CR pixels",
59 keepCRs = pexConfig.Field(
61 doc =
"Don't interpolate over CR pixels",
64 background = pexConfig.ConfigField(
65 dtype = detection.estimateBackground.ConfigClass,
66 doc =
"Background estimation configuration"
70 self.background.useApprox =
False
71 self.background.binSize = 100000
72 self.background.statisticsProperty =
"MEDIAN"
73 self.background.undersampleStyle =
"REDUCE_INTERP_ORDER"
74 self.background.algorithm =
"AKIMA_SPLINE"