From 4b2a4780de57b958c93bee75a00a4343b4b3f5ff Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 26 Feb 2017 19:30:09 +0800 Subject: ciao_deproj_spectra.sh: Cleanup and simplification Use newly developed tools: + manifest.py + results.py + renorm_spectrum.py --- scripts/ciao_bkg_spectra.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/ciao_bkg_spectra.sh') diff --git a/scripts/ciao_bkg_spectra.sh b/scripts/ciao_bkg_spectra.sh index 3b2fb22..07a4bc9 100755 --- a/scripts/ciao_bkg_spectra.sh +++ b/scripts/ciao_bkg_spectra.sh @@ -45,7 +45,7 @@ case "$1" in -[hH]*|--[hH]*) printf "usage:\n" - printf " `basename $0` evt= reg= blank= nh= z= [ grouptype= grouptypeval= binspec= log= ]\n" + printf " `basename $0` reg= [ evt= blank= nh= z= grouptype= grouptypeval= binspec= log= ]\n" printf "\nNotes:\n" printf " If grouptype=NUM_CTS, then grouptypeval required.\n" printf " If grouptype=BIN, then binspec required.\n" @@ -155,14 +155,14 @@ else fi # check given nH if [ -z "${nh}" ]; then - N_H=$(results.py get nh) + N_H=$(results.py -b get nh) else N_H=${nh} fi printf "## use nH: ${N_H}\n" | ${TOLOG} # check given redshift if [ -z "${z}" ]; then - REDSHIFT=$(results.py get z) + REDSHIFT=$(results.py -b get z) else REDSHIFT=${z} fi -- cgit v1.2.2