From 0caec8c48363149d203f94eb2d7e5cca16a66a57 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Tue, 29 Jul 2014 16:25:03 +0800 Subject: fixes to ciao_expcorr_only.sh: verbose params, symbolic links --- scripts/ciao_expcorr_only.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/ciao_expcorr_only.sh b/scripts/ciao_expcorr_only.sh index 1321382..f4d390b 100755 --- a/scripts/ciao_expcorr_only.sh +++ b/scripts/ciao_expcorr_only.sh @@ -365,14 +365,21 @@ if `which merge_all >/dev/null 2>&1`; then dmimgcalc infile="${IMG_ORIG}" infile2="${EXPMAP}" \ outfile="${IMG_EXPCORR}" operation=div clobber=yes else - # `merge_all' deprecated and not available + ## `merge_all' deprecated and not available ## use 'fluximage' to generate `exposure map' and apply exposure correction printf "fluximage ...\n" punlearn fluximage fluximage infile="${EVT_E}" outroot="${ROOTNAME}" \ binsize=1 bands="${SPEC_WGT}" xygrid="${XYGRID}" \ asol="@${ASOLIS}" badpixfile="${BPIX}" \ - maskfile="${MSK}" clobber=yes verbose=2 + maskfile="${MSK}" clobber=yes + ## make symbolic links + # clipped counts image + ln -sv "${ROOTNAME}*band*thresh.img" "${IMG_ORIG%.fits}_thresh.fits" + # clipped exposure map + ln -sv "${ROOTNAME}*band*thresh.expmap" "${EXPMAP}" + # exposure-corrected image + ln -sv "${ROOTNAME}*band*flux.img" "${IMG_EXPCORR}" fi ## main }}} -- cgit v1.2.2