I am trying to run imageDifference.py on HSC images with HSCpipe 8.4. I am subtracting individual exposures from coadded templates. I am confused by entries like the following in HSCMapper.yaml regarding difference imaging products:
deepDiff_differenceExp: template: 'deepDiff/%(pointing)05d/%(filter)s/DIFFEXP-%(visit)07d-%(ccd)03d.fits'
I think this mapper needs to have a tract entry like following:
deepDiff_differenceExp: template: 'deepDiff/%(pointing)05d/%(filter)s/tract%(tract)d/DIFFEXP-%(visit)07d-%(ccd)03d.fits'
This is because imageDifference.py requires specification of the tract and the differencing is done tract by tract. In case there is a ccd chip which falls in an overlap region between tracts, depending upon which tract was differenced first, the second one can overwrite the files produced by the first one.
Has anyone experienced this before?
I think the simple fix like what is shown above to alll of the difference imaging products in the
HscMapper.yaml file will solve the problem.