Coverage for config/calibrate.py: 90%
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import os.path
3from lsst.meas.astrom import MatchOptimisticBTask
5configDir = os.path.dirname(__file__)
7config.photoCal.colorterms.load(os.path.join(configDir, 'colorterms.py'))
9config.astromRefObjLoader.ref_dataset_name = "gaia_dr2_20200414"
10# TODO DM-27843: workaround for gen3 not supporting anyFilterMapsToThis
11config.astromRefObjLoader.filterMap = {'g': 'phot_g_mean',
12 'r': 'phot_g_mean',
13 'i': 'phot_g_mean',
14 'z': 'phot_g_mean',
15 'y': 'phot_g_mean'}
17config.photoRefObjLoader.filterMap = {'i2': 'i'}
18config.photoRefObjLoader.ref_dataset_name = "ps1_pv3_3pi_20170110"
20config.connections.astromRefCat = "gaia_dr2_20200414"
21config.connections.photoRefCat = "ps1_pv3_3pi_20170110"
23config.astrometry.wcsFitter.order = 3
24if isinstance(config.astrometry.matcher, MatchOptimisticBTask): 24 ↛ 25line 24 didn't jump to line 25, because the condition on line 24 was never true
25 config.astrometry.matcher.maxMatchDistArcSec = 5
26 config.astrometry.sourceSelector['matcher'].excludePixelFlags = False
28config.photoCal.applyColorTerms = True
29config.photoCal.photoCatName = "ps1_pv3_3pi_20170110"
31# this was the default prior to DM-11521. New default is 2000.
32config.deblend.maxFootprintSize=0
34# Better astrometry matching
35config.astrometry.matcher.numBrightStars = 150
37# ====================================
38# TODO DM-31063: below are things taken from obs_subaru that should be moved
39# into a generic pipeline config once gen2 is gone.
40config.measurement.plugins.names |= ["base_CircularApertureFlux"]
41config.measurement.plugins["base_CircularApertureFlux"].radii = [3.0, 4.5, 6.0, 9.0, 12.0, 17.0, 25.0, 35.0, 50.0, 70.0]
42# Use a large aperture to be independent of seeing in calibration
43config.measurement.plugins["base_CircularApertureFlux"].maxSincRadius = 12.0
45import lsst.meas.extensions.photometryKron
46config.measurement.plugins.names |= ["ext_photometryKron_KronFlux"]
48from lsst.utils import getPackageDir
49config.measurement.load(os.path.join(getPackageDir("meas_extensions_shapeHSM"), "config", "enable.py"))
50config.measurement.plugins["ext_shapeHSM_HsmShapeRegauss"].deblendNChild = "deblend_nChild"
51# Enable debiased moments
52config.measurement.plugins.names |= ["ext_shapeHSM_HsmPsfMomentsDebiased"]
55config.measurement.plugins.names |= ["base_Jacobian", "base_FPPosition"]
56config.measurement.plugins["base_Jacobian"].pixelScale = 0.187