Skip to content
DominiqueFouchez edited this page Feb 26, 2019 · 3 revisions

Welcome to the minicookbook wiki!

Cookbook for new dia_pipe

look at : https://github.com/LSSTDESC/dia_pipe, for dia_pipe doc

Environment

export DM_RELEASE=w_2018_39

export DM_SETUP="/cvmfs/sw.lsst.eu/linux-x86_64/lsst_distrib/${DM_RELEASE}/loadLSST.bash"

export REFCAT="/sps/lsst/users/nchotard/dc2/test/input/ref_cats"

export CALIB="/sps/lsst/users/lsstprod/desc/DC2-test/newCam/input/CALIB"

source ${DM_SETUP}

setup lsst_distrib

Install dia_pipe + setup

export DIADIR = mydiadir

cd $DIADIR

git clone https://github.com/LSSTDESC/dia_pipe.git

cd dia_pipe/

setup -k -r .

scons opt=3

eups declare -r $DIADIR/dia_pipe dia_pipe bob

eups declare -c dia_pipe bob

cd ..

git clone https://github.com/lsst/obs_lsstCam.git

cd obs_lsstCam/

git checkout dc2/run1.2i_diff

setup -k -r .

scons opt=3

eups declare -r $DIADIR/obs_lsstCam obs_lsstCam dc2i

eups declare -c obs_lsstCam dc2i

Here is the setup, needed once first installation of package has been done the firs time

setup dia_pipe bob

setup obs_lsstCam dc2i

Run the image difference

export repo = _repo with calexp and coadd _

Would be good to produce first a repo with a coadd made from a list of visita covering a perios (a year .. or less) then to do imdiff with another set of visit (next year .. or next visits)

echo '--id visit=00182014' > visitlist.txt

imageDifferenceDriver.py $repo/output --rerun 1 @visitlist.txt -C $DIADIR/dia_pipe/config/imageDifferenceDriver.py --cores 12

export atract = 5555

associationDriver.py $repo/output --rerun 1 --id tract=$atract filter=u^g^r^i^z^y --cores 1

forcedPhotCcdDiaDriver.py $repo/output --rerun 1 @visitlist.txt --cores 12

Clone this wiki locally