-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakeWarp.py
38 lines (28 loc) · 1.25 KB
/
makeWarp.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import os.path
# Load configs shared between assembleCoadd and makeWarp
config.load(os.path.join(os.path.dirname(__file__), "coaddBase.py"))
# config.doApplyExternalPhotoCalib = False # This is also done in the HS example. Why?
# config.doApplyExternalSkyWcs = False
# config.doApplySkyCorr = False
# 'EDGE' removed to avoid cropping stacks
#config.badMaskPlanes=['BAD', 'DETECTED_NEGATIVE', 'NO_DATA']
# Added after all calexps being rejected
# Maximum median ellipticity residual
config.select.maxEllipResidual=0.1 #default 0.007
# Maximum scatter in the size residuals, scaled by the median size
config.select.maxScaledSizeScatter=1.0 #default 0.009
#From obs_subaru:
# config.makePsfMatched = True
# config.doApplySkyCorr = True
#
# config.modelPsf.defaultFwhm = 7.7
# config.warpAndPsfMatch.psfMatch.kernel['AL'].alardSigGauss = [1.0, 2.0, 4.5]
# config.warpAndPsfMatch.warp.warpingKernelName = 'lanczos5'
# config.coaddPsf.warpingKernelName = 'lanczos5'
#Added after required by makeWarp
#config.doApplyFinalizedPsf=False
config.makePsfMatched = True
config.modelPsf.defaultFwhm = 7.7
config.warpAndPsfMatch.psfMatch.kernel['AL'].alardSigGauss = [1.0, 2.0, 4.5]
config.warpAndPsfMatch.warp.warpingKernelName = 'lanczos5'
config.coaddPsf.warpingKernelName = 'lanczos5'