@kfindeisen Ok I managed to get this running now. It is a brute force approach, but I am writing it out so that others can use in a similar situation:
First I modified the python/lsst/pipe/tasks/imageDifference.py
script as:
455c455,458
< butlerQC.put(outputs, outputRefs)
---
> # SM edits
> print("1:", outputRefs, "fakes_"+outputRefs)
> butlerQC.put(outputs, "fakes_"+outputRefs)
> # butlerQC.put(outputs, outputRefs)
500c503,505
< exposure = sensorRef.get("calexp", immediate=True)
---
> # Retrieve the science image we wish to analyze SM change
> exposure = sensorRef.get("fakes_calexp", immediate=True)
> #### exposure = sensorRef.get("calexp", immediate=True)
505c510,512
< if sensorRef.datasetExists("src"):
---
> # SM change
> if sensorRef.datasetExists("fakes_src"):
> #### if sensorRef.datasetExists("src"):
508c515,516
< selectSources = sensorRef.get("src")
---
> selectSources = sensorRef.get("fakes_src")
> #### selectSources = sensorRef.get("src")
522a531
> # SM edits
524c533,535
< sensorRef.put(results.diaSources, self.config.coaddName + "Diff_diaSrc")
---
> #sensorRef.put(results.diaSources, self.config.coaddName + "Diff_diaSrc")
> print("2:", "fakes_" + self.config.coaddName + "Diff_diaSrc")
> sensorRef.put(results.diaSources, "fakes_" + self.config.coaddName + "Diff_diaSrc")
526c537,539
< sensorRef.put(results.warpedExposure, self.config.coaddName + "Diff_warpedExp")
---
> #sensorRef.put(results.warpedExposure, self.config.coaddName + "Diff_warpedExp")
> print("3:", "fakes_" + self.config.coaddName + "Diff_warpedExp")
> sensorRef.put(results.warpedExposure, "fakes_" + self.config.coaddName + "Diff_warpedExp")
528c541,543
< sensorRef.put(results.matchedExposure, self.config.coaddName + "Diff_matchedExp")
---
> #sensorRef.put(results.matchedExposure, self.config.coaddName + "Diff_matchedExp")
> print("4:", "fakes_" + self.config.coaddName + "Diff_matchedExp")
> sensorRef.put(results.matchedExposure, "fakes_" + self.config.coaddName + "Diff_matchedExp")
530c545,547
< sensorRef.put(results.selectSources, self.config.coaddName + "Diff_kernelSrc")
---
> #sensorRef.put(results.selectSources, self.config.coaddName + "Diff_kernelSrc")
> print("5:", "fakes_" + self.config.coaddName + "Diff_kernelSrc")
> sensorRef.put(results.selectSources, "fakes_" + self.config.coaddName + "Diff_kernelSrc")
532c549,551
< sensorRef.put(results.subtractedExposure, subtractedExposureName)
---
> #sensorRef.put(results.subtractedExposure, subtractedExposureName)
> print("6:", "fakes_" + subtractedExposureName)
> sensorRef.put(results.subtractedExposure, "fakes_" + subtractedExposureName)
1129c1148,1149
< parser.add_id_argument("--id", "calexp", help="data ID, e.g. --id visit=12345 ccd=1,2")
---
> parser.add_id_argument("--id", "fakes_calexp", help="data ID, e.g. --id visit=12345 ccd=1,2")
> #### parser.add_id_argument("--id", "calexp", help="data ID, e.g. --id visit=12345 ccd=1,2")
Then, the $OBS_SUBARU_DIR/policy/HscMapper.yaml
as:
185a186,191
> fakes_deepDiff_differenceExp:
> template: 'deepDiff/%(pointing)05d/%(filter)s/tract%(tract)d/DIFFEXP-%(visit)07d-%(ccd)03d.fits'
> fakes_deepDiff_warpedExp:
> template: 'deepDiff/%(pointing)05d/%(filter)s/tract%(tract)d/WARPEDEXP-%(visit)07d-%(ccd)03d.fits'
> fakes_deepDiff_matchedExp:
> template: 'deepDiff/%(pointing)05d/%(filter)s/tract%(tract)d/MATCHEDEXP-%(visit)07d-%(ccd)03d.fits'
434a441,446
> fakes_deepDiff_diaSrc:
> persistable: SourceCatalog
> python: lsst.afw.table.SourceCatalog
> storage: FitsCatalogStorage
> tables: raw_skytile
> template: 'deepDiff/%(pointing)05d/%(filter)s/tract%(tract)d/DIASRC-%(visit)07d-%(ccd)03d.fits'
436a449,450
> fakes_deepDiff_kernelSrc:
> template: 'deepDiff/%(pointing)05d/%(filter)s/tract%(tract)d/KERNELSRC-%(visit)07d-%(ccd)03d.fits'