-
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.
Add fgcmBuildFromIsolatedStars.py config overrides.
- Loading branch information
Showing
1 changed file
with
27 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,27 @@ | ||
import os.path | ||
|
||
# Demand at least 2 observations of a star to be considered for calibration | ||
config.minPerBand = 2 | ||
# High density cut to keep high density regions from dominating statistics. | ||
# 2000 is chosen to be reasonable for typical HSC depths | ||
config.densityCutMaxPerPixel = 2000 | ||
# The mapping from HSC short filter name to FGCM "band". This mapping | ||
# ensures that stars observed in HSC-R + HSC-R2 can be matched, and | ||
# HSC-I + HSC-I2 can be matched. | ||
from lsst.obs.hsc.hscFilters import HSC_FILTER_DEFINITIONS | ||
config.physicalFilterMap = HSC_FILTER_DEFINITIONS.physical_to_band | ||
config.primaryBands = ('i', 'r', 'g', 'z', 'y', 'N387', 'N816', 'N921', 'N1010') | ||
config.doSubtractLocalBackground = True | ||
|
||
hscConfigDir = os.path.join(os.path.dirname(__file__)) | ||
config.fgcmLoadReferenceCatalog.load(os.path.join(hscConfigDir, 'filterMap.py')) | ||
config.fgcmLoadReferenceCatalog.applyColorTerms = True | ||
config.fgcmLoadReferenceCatalog.colorterms.load(os.path.join(hscConfigDir, 'colorterms.py')) | ||
config.fgcmLoadReferenceCatalog.referenceSelector.doSignalToNoise = True | ||
# Choose reference catalog signal-to-noise based on the PS1 i-band. | ||
config.fgcmLoadReferenceCatalog.referenceSelector.signalToNoise.fluxField = 'i_flux' | ||
config.fgcmLoadReferenceCatalog.referenceSelector.signalToNoise.errField = 'i_fluxErr' | ||
# Minimum signal-to-noise cut for a reference star to be considered a match. | ||
config.fgcmLoadReferenceCatalog.referenceSelector.signalToNoise.minimum = 10.0 | ||
|
||
config.connections.ref_cat = 'ps1_pv3_3pi_20170110' |