-
Notifications
You must be signed in to change notification settings - Fork 0
/
cheese-2b.sh
executable file
·67 lines (55 loc) · 2.14 KB
/
cheese-2b.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
######################################################################
# runs the esas filters
#
# Snowden & Kuntz, 2011:
#
# cheese and cheese-bands do source detection on the observation
# images and create Swiss cheese masks which can be used later.
# cheese and cheese-bands use the combined source list from emldetect
# for the source excision so the masking for all instruments and
# exposures is the same. cheese-bands adds the additional ability to
# do the source detection and masking in two bands.
dir=$1
here=`pwd`
cd $dir
######################################################################
# detection settings
# defaults:
# elowlist='400 2000' # detection bands minima [eV]
# ehighlist='1250 7200' # detection bands maxima [eV]
# scale=0.5 # source flux extraction fraction
# ratet=1.0 # ps extraction total flux threshold [1e14 cgs]
# rates=1.0 # ps extraction soft flux threshold [1e14 cgs]
# rateh=1.0 # ps extraction hard flux threshold [1e14 cgs]
# dist=40.0 # minimal distance for neighbour ps
elowlist='400 2000' # detection bands minima [eV]
ehighlist='1250 7200' # detection bands maxima [eV]
scale=0.5 # source flux extraction fraction
ratet=1.0 # ps extraction total flux threshold [1e14 cgs]
rates=1.0 # ps extraction soft flux threshold [1e14 cgs]
rateh=1.0 # ps extraction hard flux threshold [1e14 cgs]
dist=40.0 # minimal distance for neighbour ps
######################################################################
# cheese using single band detection
cheese-bands prefixm="$MOS_EV_PREFIX_LIST" prefixp="$PN_EV_PREFIX_LIST" \
elowlist=$elowlist \
ehighlist=$ehighlist \
scale=$scale \
ratet=$ratet \
rates=$rates \
rateh=$rateh \
dist=$dist \
verb=4 \
clobber=$CHEESE_CLOBBER
if [[ $? -ne 0 ]]
then
echo -e "\n** error: cheese two band failed!"
echo -e "*** error in script: $0\n"
cd $startdir
exit 1
fi
######################################################################
# exit
cd $here
echo -e "\n$0 in $obsid done!"
exit 0