aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/ciao_expcorr_only.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/ciao_expcorr_only.sh')
-rwxr-xr-xscripts/ciao_expcorr_only.sh11
1 files changed, 9 insertions, 2 deletions
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 }}}