Skip to content

Use dia_pipe with a given template and calexps from other nights #18

@BenjaminRacine

Description

@BenjaminRacine

Hi all,

I am trying to use dia_pipe on HSC data.
My issue is that in the way I ran my pipeline up to now, I have an output directory per night, for instance one for HSC-Z night 00817, and one for HSC-R night 01111, where the outputs of jointcal and coaddDriver are.
If I want to run imageDifferenceDriver , it works if I use the directory of coadded night as input, and chose the visits from that same night:

imageDifferenceDriver.py $Template_night --output $output_imdiff --id visit=$VisitZ_from_template tract=9812^9813 patch=0,0^0,1^0,2^0,3^0,4^0,5^0,6^0,7^0,8^1,0^1,1^1,2^1,3^1,4^1,5^1,6^1,7^1,8^2,0^2,1^2,2^2,3^2,4^2,5^2,6^2,7^2,8^3,0^3,1^3,2^3,3^3,4^3,5^3,6^3,7^3,8^4,0^4,1^4,2^4,3^4,4^4,5^4,6^4,7^4,8^5,0^5,1^5,2^5,3^5,4^5,5^5,6^5,7^5,8^6,0^6,1^6,2^6,3^6,4^6,5^6,6^6,7^6,8^7,0^7,1^7,2^7,3^7,4^7,5^7,6^7,7^7,8^8,0^8,1^8,2^8,3^8,4^8,5^8,6^8,7^8,8 --cores 8 --job imageDifferenceDriver --time 100 --longlog --clobber-config --config imageDifference.doSelectSources=True imageDifference.kernelSourcesFromRef=True

But if I want to do something more interesting, where I use a coadd from a night and do DIA on the visits of another night, then it fails.:

imageDifferenceDriver.py $Template_night --output $output_imdiff --id visit=$VisitZ_from_anothernight tract=9812^9813 patch=0,0^0,1^0,2^0,3^0,4^0,5^0,6^0,7^0,8^1,0^1,1^1,2^1,3^1,4^1,5^1,6^1,7^1,8^2,0^2,1^2,2^2,3^2,4^2,5^2,6^2,7^2,8^3,0^3,1^3,2^3,3^3,4^3,5^3,6^3,7^3,8^4,0^4,1^4,2^4,3^4,4^4,5^4,6^4,7^4,8^5,0^5,1^5,2^5,3^5,4^5,5^5,6^5,7^5,8^6,0^6,1^6,2^6,3^6,4^6,5^6,6^6,7^6,8^7,0^7,1^7,2^7,3^7,4^7,5^7,6^7,7^7,8^8,0^8,1^8,2^8,3^8,4^8,5^8,6^8,7^8,8 --cores 8 --job imageDifferenceDriver --time 100 --longlog --clobber-config --config imageDifference.doSelectSources=True imageDifference.kernelSourcesFromRef=True

It doesn’t crash but prints Failure warnings like:

178061 WARN 2020-08-03T12:37:30.942+0200 imageDifferenceDriver ({'visit': 1202, 'tract': '9812', 'patch': '0,0', 'pointing': 817, 'filter': 'HSC-R', 'ccd': 23, 'field': 'SSP_UDEEP_COSMOS', 'dateObs': '2014-03-28', 'taiObs': '2014-03-28', 'expTime': 360.0})(imageDifferenceDriver.py:52)- Failed imageDifferenceDriver: No coadd PhotoCalib found!

and no output is created.
It makes sense, but I was wondering if there is a way to provide a path for the template that is different from the individual visits path, as one does for ap_pipe with the --template option.
Alternatively, I could rerun the pipeline and use a single path for all outputs, but even then I am not sure how to let imageDifferenceDriver know that I want to use a template from a night and visits from another night.

Is there a plan to allow these kinds of dia analyses?

Thanks,

Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions