The scenario is that a user wants to know the input configuration parameters that the deblender used. I have two questions about how to find that information.
(1) We can do the following, and see the contents of the configuration class, but I suspect that this code is printing the default configuration parameters for Weekly 2023_07 of the LSST Science Pipelines, not necessarily what was run to create the DP0.2 data products. Is that a correct interpretation?
from lsst.meas.deblender import SourceDeblendTask
import lsst.afw.table as afwTable
schema = afwTable.SourceTable.makeMinimalSchema()
sourceDeblendTask = SourceDeblendTask(schema=schema)
help(sourceDeblendTask.ConfigClass)
Output:
Help on class SourceDeblendConfig in module lsst.meas.deblender.sourceDeblendTask:
class SourceDeblendConfig(lsst.pex.config.config.Config)
| SourceDeblendConfig(*args, **kw)
|
| Method resolution order:
...
(output truncated, lots of info, but it gives a whole list).
(2) We can also use the butler to get DP0.2 deblender data products, and we can see that there is a deblend_config
in the butler:
import lsst.daf.butler as Butler
butler = Butler.Butler('dp02', collections='2.2i/runs/DP0.2')
dataId = {'tract': 2897, 'patch': 5, 'band': 'i'}
registry = butler.registry
for dt in sorted(registry.queryDatasetTypes('*blend*')):
print(dt)
But whereas these two butler.get
statements work:
dbFlux_schema = butler.get('deepCoadd_deblendedFlux_schema', dataId=dataId)
dbFlux = butler.get('deepCoadd_deblendedFlux', dataId=dataId)
This one returns an error:
dbConfig = butler.get('deblend_config', dataId)
Getting the configuration parameters with a statement like the above is something that has worked for me in the past, but in a scenario where I’ve created a simpleButler
and rerun aspects of the pipelines, and then asked for the configs of what I’ve rerun (this was in now-defunct tutorials 09a and 09b, creating custom coadds).
Should this work to get the deblender configuration parameters that were used to create the butler-available DP0.2 data products?