259 def setDefaults(self):
260 super().setDefaults()
261
262
263
264
265 self.install_simple_psf.fwhm = 4
266
267
268 self.psf_detection.thresholdValue = 5.0
269 self.psf_detection.includeThresholdMultiplier = 10.0
270
271
272
273 self.psf_detection.doTempLocalBackground = False
274
275
276
277
278
279
280
281
282 self.psf_source_measurement.plugins = ["base_PixelFlags",
283 "base_SdssCentroid",
284 "ext_shapeHSM_HsmSourceMoments",
285 "base_CircularApertureFlux",
286 "base_GaussianFlux",
287 "base_PsfFlux",
288 "base_ClassificationSizeExtendedness",
289 ]
290 self.psf_source_measurement.slots.shape = "ext_shapeHSM_HsmSourceMoments"
291
292 self.psf_source_measurement.plugins["base_CircularApertureFlux"].radii = [12.0]
293
294 self.psf_measure_psf.psfDeterminer["psfex"].photometricFluxField = \
295 "base_CircularApertureFlux_12_0_instFlux"
296
297
298
299 self.measure_aperture_correction.sourceSelector["science"].doUnresolved = False
300 self.measure_aperture_correction.sourceSelector["science"].flags.good = ["calib_psf_used"]
301 self.measure_aperture_correction.sourceSelector["science"].flags.bad = []
302
303
304
305 self.star_detection.thresholdValue = 5.0
306 self.star_detection.includeThresholdMultiplier = 2.0
307 self.star_measurement.plugins = ["base_PixelFlags",
308 "base_SdssCentroid",
309 "ext_shapeHSM_HsmSourceMoments",
310 'ext_shapeHSM_HsmPsfMoments',
311 "base_GaussianFlux",
312 "base_PsfFlux",
313 "base_CircularApertureFlux",
314 "base_ClassificationSizeExtendedness",
315 ]
316 self.star_measurement.slots.psfShape = "ext_shapeHSM_HsmPsfMoments"
317 self.star_measurement.slots.shape = "ext_shapeHSM_HsmSourceMoments"
318
319 self.star_measurement.plugins["base_CircularApertureFlux"].radii = [12.0]
320
321
322 self.star_selector["science"].doFlags = True
323 self.star_selector["science"].doUnresolved = True
324 self.star_selector["science"].doSignalToNoise = True
325 self.star_selector["science"].doIsolated = True
326 self.star_selector["science"].signalToNoise.minimum = 10.0
327
328
329 self.star_selector["science"].doSkySources = True
330
331
333
334 self.astrometry_ref_loader.anyFilterMapsToThis = "phot_g_mean"
335
336
337 self.astrometry.sourceSelector["science"].doFlags = True
338 self.astrometry.sourceSelector["science"].flags.bad = ["sky_source"]
339 self.photometry.match.sourceSelection.doFlags = True
340 self.photometry.match.sourceSelection.flags.bad = ["sky_source"]
341
342
343
344 self.compute_summary_stats.starSelection = "calib_photometry_used"
345 self.compute_summary_stats.starSelector.flags.good = ["calib_photometry_used"]
346
347