24 __all__ = [
"FindCosmicRaysConfig"]
27 from .subtractBackground
import SubtractBackgroundTask
31 """Config for the findCosmicRays function
33 nCrPixelMax = pexConfig.Field(
35 doc=
"maximum number of contaminated pixels",
38 minSigma = pexConfig.Field(
40 doc=
"CRs must be > this many sky-sig above sky",
43 min_DN = pexConfig.Field(
45 doc=
"CRs must have > this many DN (== electrons/gain) in initial detection",
48 cond3_fac = pexConfig.Field(
50 doc=
"used in condition 3 for CR; see CR.cc code",
53 cond3_fac2 = pexConfig.Field(
55 doc=
"used in condition 3 for CR; see CR.cc code",
58 niteration = pexConfig.Field(
60 doc=
"number of times to look for contaminated pixels near known CR pixels",
63 keepCRs = pexConfig.Field(
65 doc=
"Don't interpolate over CR pixels",
68 background = pexConfig.ConfigurableField(
69 target=SubtractBackgroundTask,
70 doc=
"Background estimation configuration"
76 self.
backgroundbackground.statisticsProperty =
"MEDIAN"
77 self.
backgroundbackground.undersampleStyle =
"REDUCE_INTERP_ORDER"
78 self.
backgroundbackground.algorithm =
"AKIMA_SPLINE"