-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make config options match those of calibrate
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
""" | ||
Subaru-specific overrides for ProcessCcdWithFakesTask (applied before SuprimeCam- and HSC-specific overrides). | ||
""" | ||
import os.path | ||
|
||
from lsst.utils import getPackageDir | ||
from lsst.meas.algorithms import ColorLimit | ||
|
||
ObsConfigDir = os.path.join(getPackageDir("obs_subaru"), "config") | ||
|
||
bgFile = os.path.join(ObsConfigDir, "background.py") | ||
|
||
# Cosmic rays and background estimation | ||
config.detection.background.load(bgFile) | ||
|
||
# Set to match defaults curretnly used in HSC production runs (e.g. S15B) | ||
config.catalogCalculation.plugins['base_ClassificationExtendedness'].fluxRatio = 0.95 | ||
|
||
# Detection | ||
config.detection.isotropicGrow = True | ||
|
||
config.measurement.load(os.path.join(ObsConfigDir, "apertures.py")) | ||
config.measurement.load(os.path.join(ObsConfigDir, "kron.py")) | ||
config.measurement.load(os.path.join(ObsConfigDir, "hsm.py")) | ||
|
||
# Deblender | ||
config.deblend.maxFootprintSize = 0 | ||
config.deblend.maskLimits["NO_DATA"] = 0.25 # Ignore sources that are in the vignetted region | ||
config.deblend.maxFootprintArea = 10000 | ||
|
||
config.measurement.plugins.names |= ["base_Jacobian", "base_FPPosition"] |