Skip to content

Commit

Permalink
Add configuration for fgcmcal star building for comCamSim.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Mar 6, 2024
1 parent a072690 commit 16ecd94
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions config/comCamSim/fgcmBuildFromIsolatedStars.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import os

physical_to_band = {
"g_01": "g",
"r_03": "r",
"i_06": "i",
}

config.requiredBands = []
config.primaryBands = ["i", "r", "g"]

config.coarseNside = 64

config.minPerBand = 2
config.connections.ref_cat = "uw_stars_20240130"

configDir = os.path.join(os.path.dirname(__file__))
config.physicalFilterMap = physical_to_band
config.doSubtractLocalBackground = True
config.sourceSelector["science"].flags.bad.append("localBackground_flag")
config.fgcmLoadReferenceCatalog.filterMap = {
"g": "lsst_g",
"r": "lsst_r",
"i": "lsst_i",
"g_01": "lsst_g",
"r_03": "lsst_r",
"i_06": "lsst_i",
}
config.fgcmLoadReferenceCatalog.applyColorTerms = False
config.fgcmLoadReferenceCatalog.referenceSelector.doSignalToNoise = True
config.fgcmLoadReferenceCatalog.referenceSelector.signalToNoise.fluxField = "lsst_i_flux"
config.fgcmLoadReferenceCatalog.referenceSelector.signalToNoise.errField = "lsst_i_fluxErr"
config.fgcmLoadReferenceCatalog.referenceSelector.signalToNoise.minimum = 50.0

0 comments on commit 16ecd94

Please sign in to comment.