Coverage for config / calibrateImage.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.12.0, created at 2025-12-12 02:06 -0800

1# DRP CONFIGURATION FOR CalibrateImageTask 

2# 

3# This configuration can't go in the task defaults, because those are shared 

4# with AP. It could be moved directly into a pipeline YAML after the v1->v2 

5# migration is done. 

6 

7# In DRP not calibrating the pixels (or the backgrounds) until we have 

8# our final photometric calibration makes everything downstream much 

9# simpler. 

10config.do_calibrate_pixels = False 

11 

12# TODO[DM-49218]: for now we make output catalog as similar to the old 'src' as 

13# possible; we'll try to go back to calibrateImage defaults with a smaller 

14# catalog after it's integrated. Goal is to remove all of these overrides 

15# except the aperture radii, which we instead want to set to the same as the 

16# compensated to-phat radii below for 

17# lsst.fgcmcal.fgcmOutputProducts.FgcmOutputProductsTask 

18config.star_detection.includeThresholdMultiplier = 1.0 

19config.star_selector["science"].doUnresolved = False 

20config.star_selector["science"].doSignalToNoise = False 

21config.star_measurement.plugins["base_CircularApertureFlux"].radii = [ 

22 3.0, 6.0, 9.0, 12.0, 17.0, 25.0, 35.0, 50.0, 70.0 

23] 

24config.star_measurement.plugins.names |= [ 

25 "base_FPPosition", 

26 "base_LocalBackground", 

27 "base_Variance", 

28 "ext_shapeHSM_HsmPsfMomentsDebiased", 

29 "ext_shapeHSM_HsmShapeRegauss", 

30 "ext_shapeHSM_HigherOrderMomentsSource", 

31 "base_Blendedness", 

32 "base_Jacobian", 

33] 

34 

35# fgcmcal needs an inner and outer aperture and may want an estimate of 

36# the local background 

37config.star_measurement.plugins["base_CircularApertureFlux"].maxSincRadius = 12.0 

38config.star_measurement.plugins["base_CompensatedTophatFlux"].apertures = [12, 17] 

39 

40config.psf_source_measurement.plugins.names |= [ 

41 "ext_shapeHSM_HigherOrderMomentsSource", 

42]