Skip to content

Commit

Permalink
Merge pull request #473 from lsst/tickets/DM-44232
Browse files Browse the repository at this point in the history
DM-44232: Replace makeWarp with makeDirectWarp and makePsfMatchedWarp
  • Loading branch information
arunkannawadi authored Aug 15, 2024
2 parents 4181653 + 0491f72 commit 50830eb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
4 changes: 0 additions & 4 deletions config/assembleCoadd.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import os.path
from lsst.pipe.tasks.selectImages import PsfWcsSelectImagesTask

# Load configs shared between assembleCoadd and makeCoaddTempExp
config.load(os.path.join(os.path.dirname(__file__), "coaddBase.py"))

# 200 rows (since patch width is typically < 10k pixels)
config.subregionSize = (10000, 200)
config.doMaskBrightObjects = True
Expand Down
2 changes: 0 additions & 2 deletions config/coaddBase.py

This file was deleted.

4 changes: 4 additions & 0 deletions config/makeDirectWarp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
config.doApplyNewBackground = True

config.warper.warpingKernelName = 'lanczos5'
config.coaddPsf.warpingKernelName = 'lanczos5'
3 changes: 3 additions & 0 deletions config/makePsfMatchedWarp.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
config.modelPsf.defaultFwhm = 7.7
config.psfMatch.kernel['AL'].kernelSize = 29
config.psfMatch.kernel['AL'].alardSigGauss = [1.0, 2.0, 4.5]
7 changes: 1 addition & 6 deletions config/makeWarp.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import os.path

# Load configs shared between assembleCoadd and makeWarp
config.load(os.path.join(os.path.dirname(__file__), "coaddBase.py"))

config.makePsfMatched = True
config.doApplySkyCorr = True

config.modelPsf.defaultFwhm = 7.7
config.warpAndPsfMatch.psfMatch.kernel["AL"].kernelSize = config.matchingKernelSize
config.warpAndPsfMatch.psfMatch.kernel["AL"].kernelSize = 29
config.warpAndPsfMatch.psfMatch.kernel["AL"].alardSigGauss = [1.0, 2.0, 4.5]
config.warpAndPsfMatch.warp.warpingKernelName = "lanczos5"
config.coaddPsf.warpingKernelName = "lanczos5"

0 comments on commit 50830eb

Please sign in to comment.