Hi all,
I am trying to run ProcessCcd on some HSC data and am running into the following error:
Traceback (most recent call last):
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/meas_algorithms/g0e4bf8285c+96dd2c2ea9/python/lsst/meas/algorithms/loadReferenceObjects.py", line 66, in getFormatVersionFromRefCat
version = md.getScalar("REFCAT_FORMAT_VERSION")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/daf_base/gf041782ebf+171108ac67/python/lsst/daf/base/propertyContainer/propertyContainerContinued.py", line 877, in getScalar
return _propertyContainerGet(self, name, returnStyle=ReturnStyle.SCALAR)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/daf_base/gf041782ebf+171108ac67/python/lsst/daf/base/propertyContainer/propertyContainerContinued.py", line 214, in _propertyContainerGet
raise KeyError(name + " not found")
KeyError: 'REFCAT_FORMAT_VERSION not found'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/mpGraphExecutor.py", line 473, in _executeQuantaInProcess
self.quantumExecutor.execute(qnode.taskDef, qnode.quantum)
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/singleQuantumExecutor.py", line 161, in execute
result = self._execute(taskDef, quantum)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/singleQuantumExecutor.py", line 258, in _execute
self.runQuantum(task, quantum, taskDef, limited_butler)
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/singleQuantumExecutor.py", line 460, in runQuantum
task.runQuantum(butlerQC, inputRefs, outputRefs)
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/pipe_tasks/g4a941329ef+4f7594a38e/python/lsst/pipe/tasks/calibrate.py", line 481, in runQuantum
outputs = self.run(**inputs)
^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/utils/g34fdc7a0c9+81bc2a20b4/python/lsst/utils/timer.py", line 295, in timeMethod_wrapper
res = func(self, *args, **keyArgs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/pipe_tasks/g4a941329ef+4f7594a38e/python/lsst/pipe/tasks/calibrate.py", line 600, in run
astromRes = self.astrometry.run(
^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/utils/g34fdc7a0c9+81bc2a20b4/python/lsst/utils/timer.py", line 295, in timeMethod_wrapper
res = func(self, *args, **keyArgs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/meas_astrom/g0a0026dc87+17526d298f/python/lsst/meas/astrom/astrometry.py", line 179, in run
res = self.solve(exposure=exposure, sourceCat=sourceCat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/utils/g34fdc7a0c9+81bc2a20b4/python/lsst/utils/timer.py", line 295, in timeMethod_wrapper
res = func(self, *args, **keyArgs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/meas_astrom/g0a0026dc87+17526d298f/python/lsst/meas/astrom/astrometry.py", line 225, in solve
loadRes = self.refObjLoader.loadPixelBox(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/meas_algorithms/g0e4bf8285c+96dd2c2ea9/python/lsst/meas/algorithms/loadReferenceObjects.py", line 603, in loadPixelBox
return self.loadRegion(outerSkyRegion, filterName, filtFunc=_filterFunction, epoch=epoch)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/meas_algorithms/g0e4bf8285c+96dd2c2ea9/python/lsst/meas/algorithms/loadReferenceObjects.py", line 695, in loadRegion
version = getFormatVersionFromRefCat(refCat)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/meas_algorithms/g0e4bf8285c+96dd2c2ea9/python/lsst/meas/algorithms/loadReferenceObjects.py", line 72, in getFormatVersionFromRefCat
raise ValueError(f"No version number found in refcat header metadata. {errMsg}")
ValueError: No version number found in refcat header metadata. Version 0 refcats are no longer supported: refcat fluxes must have nJy units.
lsst.ctrl.mpexec.mpGraphExecutor INFO: Executed 2 quanta successfully, 1 failed and 0 remain out of total 3 quanta.
lsst.daf.butler.cli.utils ERROR: Caught an exception, details are in traceback:
Traceback (most recent call last):
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/cli/cmd/commands.py", line 208, in run
script.run(qgraphObj=qgraph, **kwargs)
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/cli/script/run.py", line 214, in run
f.runPipeline(qgraphObj, taskFactory, args)
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/cmdLineFwk.py", line 800, in runPipeline
executor.execute(graph)
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/mpGraphExecutor.py", line 405, in execute
self._executeQuantaInProcess(graph, self.report)
File "/opt/lsst/software/stack/stack/miniconda3-py38_4.9.2-7.0.1/Linux64/ctrl_mpexec/g218a3a8f53+ca4789321c/python/lsst/ctrl/mpexec/mpGraphExecutor.py", line 529, in _executeQuantaInProcess
raise MPGraphExecutorError("One or more tasks failed during execution.")
lsst.ctrl.mpexec.mpGraphExecutor.MPGraphExecutorError: One or more tasks failed during execution.
I realise now it is because my Pan-STARRS (ps1_pv3_3pi_20170110) reference catalogues haven’t been converted to the proper LSST format. Following this page: How to generate an LSST reference catalog I tried converting them, however, my reference catalogue files are in .fits
format, not a text file format and therefore running convertReferenceCatalog
doesn’t work. Does anyone know how I might be able to convert my files? Or is there anywhere I can download the LSST formatted version from? I’m working with v26 of the software. Thanks!