Sorry for making the confusion.
That was from the configuration file that I stopped using, so the processCcd.py
now contains
{‘i2’: ‘I’} instead of {‘i3’: ‘I’}.
import os.path
from lsst.utils import getPackageDir
cfhtConfigDir = os.path.join(getPackageDir("obs_cfht"), "config")
config.calibrate.photoCal.colorterms.load(os.path.join(cfhtConfigDir, 'colorterms.py'))
from lsst.obs.cfht.cfhtIsrTask import CfhtIsrTask
config.isr.retarget(CfhtIsrTask)
config.isr.doBias = False
config.isr.doDark = False
config.isr.doFlat = False
config.isr.doFringe = False
config.isr.fringeAfterFlat = False
config.isr.doWrite = False
config.isr.fringe.filters = ['i', 'i2', 'z']
config.isr.fringe.pedestal = True
config.isr.fringe.small = 1
config.isr.fringe.large = 50
config.isr.doAssembleIsrExposures = True
config.charImage.repair.doCosmicRay = True
config.charImage.repair.cosmicray.cond3_fac = 2.5
config.charImage.repair.cosmicray.cond3_fac2 = 0.4
config.charImage.repair.cosmicray.niteration = 3
config.charImage.repair.cosmicray.nCrPixelMax = 100000
config.charImage.repair.cosmicray.minSigma = 6.0
config.charImage.repair.cosmicray.min_DN = 150.0
# Configuration for AstrometryTask, the default. If the user retargets to
# ANetAstrometryTask, they must update the astrometry.solver.filterMap config
# manually; doing it here is impossible because these overrides are applied
# before any user overrides where retargeting could occur.
for refObjLoader in (config.calibrate.astromRefObjLoader,
config.calibrate.photoRefObjLoader,
config.charImage.refObjLoader):
refObjLoader.filterMap = {'i2': 'i'}
config.calibrate.astrometry.wcsFitter.order = 3
config.calibrate.astrometry.matcher.maxMatchDistArcSec = 5
config.calibrate.photoCal.applyColorTerms = True
config.calibrate.photoCal.photoCatName = "e2v"
# this was the default prior to DM-11521. New default is 2000.
config.calibrate.deblend.maxFootprintSize=0
The problem still remains, because of the i3 filter from the data.
Thank you for your patience. I really appreciate your continuous help.
processCcd.calibrate.astromRefObjLoader INFO: Loading reference objects using center IcrsCoord(296.0615092, 67.1779176) and radius 0.15131808280803208 deg
processCcd FATAL: Failed on dataId={'visit': 2086871, 'ccd': 12, 'runId': '17AT11', 'object': 'Draco Field2', 'date': '2017-03-23', 'filter': 'i3', 'state': 'p', 'extension': 13, 'taiObs': '2017-03-23T15:05:56.83', 'expTime': 31.155}: RuntimeError: Could not find flux field(s) i3_camFlux, i3_flux
Traceback (most recent call last):
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_base/15.0/python/lsst/pipe/base/cmdLineTask.py", line 408, in __call__
result = task.run(dataRef, **kwargs)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_base/15.0/python/lsst/pipe/base/timer.py", line 150, in wrapper
res = func(self, *args, **keyArgs)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/15.0/python/lsst/pipe/tasks/processCcd.py", line 199, in run
icSourceCat=charRes.sourceCat,
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_base/15.0/python/lsst/pipe/base/timer.py", line 150, in wrapper
res = func(self, *args, **keyArgs)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/15.0/python/lsst/pipe/tasks/calibrate.py", line 433, in run
icSourceCat=icSourceCat,
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_tasks/15.0/python/lsst/pipe/tasks/calibrate.py", line 523, in calibrate
sourceCat=sourceCat,
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_base/15.0/python/lsst/pipe/base/timer.py", line 150, in wrapper
res = func(self, *args, **keyArgs)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/meas_astrom/15.0/python/lsst/meas/astrom/astrometry.py", line 188, in run
res = self.solve(exposure=exposure, sourceCat=sourceCat)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_base/15.0/python/lsst/pipe/base/timer.py", line 150, in wrapper
res = func(self, *args, **keyArgs)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/meas_astrom/15.0/python/lsst/meas/astrom/astrometry.py", line 214, in solve
calib=expMd.calib,
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_base/15.0/python/lsst/pipe/base/timer.py", line 150, in wrapper
res = func(self, *args, **keyArgs)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/meas_algorithms/15.0/python/lsst/meas/algorithms/loadReferenceObjects.py", line 212, in loadPixelBox
loadRes = self.loadSkyCircle(circle.coord, circle.radius, filterName)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/pipe_base/15.0/python/lsst/pipe/base/timer.py", line 150, in wrapper
res = func(self, *args, **keyArgs)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/meas_extensions_astrometryNet/15.0/python/lsst/meas/extensions/astrometryNet/loadAstrometryNetObjects.py", line 142, in loadSkyCircle
fluxField = getRefFluxField(schema=refCat.schema, filterName=filterName)
File "/home/chiba/Research/lsst_stack/stack/miniconda3-4.3.21-10a4fa6/Linux64/meas_algorithms/15.0/python/lsst/meas/algorithms/loadReferenceObjects.py", line 66, in getRefFluxField
raise RuntimeError("Could not find flux field(s) %s" % (", ".join(fluxFieldList)))
RuntimeError: Could not find flux field(s) i3_camFlux, i3_flux