The old ProcessCcdTask
explicitly set detection.includeThresholdMultiplier=10
(as opposed to its default of 1), and otherwise used the default of detecting at 5 sigma.
In contract, the new task will start with a high S/N detection pass (e.g. 10 sigma), use that to determine PSF (and write the results as “icSrc", then perform a low S/N detection (e.g. 5 sigma) and measure those sources and use them for astrometric and photometric calibration (and write the results as “src”). I’m trying to figure out if I should also set includeThresholdMultiplier
.
Also…a more obscure question. The old calibrate task did the following in its config’s setDefault
method. Why? It looks like a no-op to me, and what is special about the catalog star selector that it needs such a tweak?
initflags = [x for x in self.measurePsf.starSelector["catalog"].badStarPixelFlags]
self.measurePsf.starSelector["catalog"].badStarPixelFlags.extend(initflags)