-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathciao_commands.tcl
160 lines (124 loc) · 8.98 KB
/
ciao_commands.tcl
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
ttk::frame $ds9(hack_top).ciao
pack $ds9(hack_top).ciao -padx 5
pack configure $ds9(hack_top).ciao -side left
ttk::button $ds9(hack_top).ciao.pi -text {PI Spectrum} -takefocus 0 -command {ds9Cmd "-analysis task PI"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/spectrum.png"]
ttk::button $ds9(hack_top).ciao.time -text {Lightcurve} -takefocus 0 -command {ds9Cmd "-analysis task TIME"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/lightcurve.png"]
ttk::button $ds9(hack_top).ciao.glvary -text {GL Vary} -takefocus 0 -command {ds9Cmd "-analysis task {Gregory-Loredo Lightcurve}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/glvary.png"]
ttk::button $ds9(hack_top).ciao.stats -text {Statistics} -takefocus 0 -command {ds9Cmd "-analysis task {Statistics (dmstat)}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/stats.png"]
ttk::button $ds9(hack_top).ciao.netcts -text {Net Counts} -takefocus 0 -command {ds9Cmd "-analysis task {Net Counts}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/net.png"]
ttk::button $ds9(hack_top).ciao.flux -text {Srcflux} -takefocus 0 -command {ds9Cmd "-analysis task {Photometry (srcflux)}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/flux.png"]
ttk::button $ds9(hack_top).ciao.coords -text {Cooridnates} -takefocus 0 -command {ds9Cmd "-analysis task {Chandra Coordinates}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/coords.png"]
## -- Sherpa
ttk::button $ds9(hack_top).ciao.specfit -text {Spectral Fit} -takefocus 0 -command {ds9Cmd "-analysis task {Spectral Fit}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/specfit.png"]
ttk::button $ds9(hack_top).ciao.imgfit -text {2D Fit} -takefocus 0 -command {ds9Cmd "-analysis task {2D Image Fit}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/imgfit.png"]
#~ pfold.png
ttk::button $ds9(hack_top).ciao.pfold -text {Period Fold} -takefocus 0 -command {ds9Cmd "-analysis task {Period Fold}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/pfold.png"]
#~ pixel_histogram.png
ttk::button $ds9(hack_top).ciao.imghist -text {Pixel Histogram} -takefocus 0 -command {ds9Cmd "-analysis task {Pixel}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/pixel_histogram.png"]
#~ radial_prof.png
ttk::button $ds9(hack_top).ciao.rprof -text {Radial Profile} -takefocus 0 -command {ds9Cmd "-analysis task {Radial Profile}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/radial_prof.png"]
#~ mexhat.png
ttk::button $ds9(hack_top).ciao.wav -text {Wavdetect} -takefocus 0 -command {ds9Cmd "-analysis task {wavdetect}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/mexhat.png"]
#~ cell.png
ttk::button $ds9(hack_top).ciao.cel -text {Celldetect} -takefocus 0 -command {ds9Cmd "-analysis task {celldetect}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/cell.png"]
#~ vtp.png
ttk::button $ds9(hack_top).ciao.vtp -text {Vtpdetect} -takefocus 0 -command {ds9Cmd "-analysis task {vtpdetect}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/vtp.png"]
ttk::button $ds9(hack_top).ciao.filth -text {Dmfilth} -takefocus 0 -command {ds9Cmd "-analysis task {Source Fill}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/dmfilth.png"]
ttk::button $ds9(hack_top).ciao.thresh -text {Dmimgthresh} -takefocus 0 -command {ds9Cmd "-analysis task {Threshold}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/dmimgthresh.png"]
ttk::button $ds9(hack_top).ciao.imgfilt -text {Dmimgfilt} -takefocus 0 -command {ds9Cmd "-analysis task {Non-Linear Filter}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/dmimgfilt.png"]
ttk::button $ds9(hack_top).ciao.imgadapt -text {Dmimgadapt} -takefocus 0 -command {ds9Cmd "-analysis task {Adaptive Smooth}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/adaptive_smooth.png"]
ttk::button $ds9(hack_top).ciao.csmooth -text {Csmooth} -takefocus 0 -command {ds9Cmd "-analysis task {Csmooth}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/csmooth.png"]
ttk::button $ds9(hack_top).ciao.nautilus -text {Dmnautilus} -takefocus 0 -command {ds9Cmd "-analysis task {Adaptive Bin}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/adaptive_bin.png"]
ttk::button $ds9(hack_top).ciao.lasso -text {Dmimglasso} -takefocus 0 -command {ds9Cmd "-analysis task {Lasso}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/dmimglasso.png"]
ttk::button $ds9(hack_top).ciao.ellipse -text {Dmellipse} -takefocus 0 -command {ds9Cmd "-analysis task {Ellipse}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/dmellipse.png"]
ttk::button $ds9(hack_top).ciao.calc_add -text {Add} -takefocus 0 -command {ds9Cmd "-analysis task {ADD: previous frame to current frame (c+p)}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/calc_add.png"]
ttk::button $ds9(hack_top).ciao.calc_sub -text {Sub} -takefocus 0 -command {ds9Cmd "-analysis task {SUB2: subtract current frame from previous (p-c)}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/calc_sub.png"]
ttk::button $ds9(hack_top).ciao.calc_mul -text {Mul} -takefocus 0 -command {ds9Cmd "-analysis task {MUL: multiply current and previous frame (c*p)}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/calc_mul.png"]
ttk::button $ds9(hack_top).ciao.calc_div -text {Div} -takefocus 0 -command {ds9Cmd "-analysis task {DIV2: divide previous frame by current (p/c)}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/calc_div.png"]
ttk::button $ds9(hack_top).ciao.marx -text {MARX} -takefocus 0 -command {ds9Cmd "-analysis task {Simulate PSF with MARX}"} \
-image [image create photo -file "$ds9_hack_root/UI/ciao/groucho.png"]
pack $ds9(hack_top).ciao.pi -side left
pack $ds9(hack_top).ciao.time -side left
pack $ds9(hack_top).ciao.glvary -side left
pack $ds9(hack_top).ciao.pfold -side left
pack $ds9(hack_top).ciao.specfit -padx {15 0} -side left
pack $ds9(hack_top).ciao.imgfit -side left
pack $ds9(hack_top).ciao.stats -padx {15 0} -side left
pack $ds9(hack_top).ciao.netcts -side left
pack $ds9(hack_top).ciao.flux -side left
pack $ds9(hack_top).ciao.coords -side left
pack $ds9(hack_top).ciao.imghist -padx {15 0} -side left
pack $ds9(hack_top).ciao.rprof -side left
pack $ds9(hack_top).ciao.wav -padx {15 0} -side left
pack $ds9(hack_top).ciao.cel -side left
pack $ds9(hack_top).ciao.vtp -side left
pack $ds9(hack_top).ciao.filth -padx {15 0} -side left
pack $ds9(hack_top).ciao.thresh -side left
pack $ds9(hack_top).ciao.imgfilt -side left
pack $ds9(hack_top).ciao.imgadapt -side left
pack $ds9(hack_top).ciao.csmooth -side left
pack $ds9(hack_top).ciao.nautilus -side left
pack $ds9(hack_top).ciao.lasso -side left -padx {15 0}
pack $ds9(hack_top).ciao.ellipse -side left
pack $ds9(hack_top).ciao.marx -side left -padx {15 0}
pack $ds9(hack_top).ciao.calc_add -padx {15 0} -side left
pack $ds9(hack_top).ciao.calc_sub -side left
pack $ds9(hack_top).ciao.calc_mul -side left
pack $ds9(hack_top).ciao.calc_div -side left
if { ![catch {package require tooltip}] } {
tooltip::tooltip $ds9(hack_top).ciao.pi "PI Spectrum"
tooltip::tooltip $ds9(hack_top).ciao.time "Lightcurve "
tooltip::tooltip $ds9(hack_top).ciao.glvary "Gregory-Loredo lightcurve"
tooltip::tooltip $ds9(hack_top).ciao.pfold "Period Fold"
tooltip::tooltip $ds9(hack_top).ciao.specfit "Spectral Fit"
tooltip::tooltip $ds9(hack_top).ciao.imgfit "2D Image Fit"
tooltip::tooltip $ds9(hack_top).ciao.stats "Statistics (dmstat)"
tooltip::tooltip $ds9(hack_top).ciao.netcts "Net Counts"
tooltip::tooltip $ds9(hack_top).ciao.flux "Source Flux"
tooltip::tooltip $ds9(hack_top).ciao.coords "Chandra Coordinates"
tooltip::tooltip $ds9(hack_top).ciao.imghist "Pixel Histogram"
tooltip::tooltip $ds9(hack_top).ciao.rprof "Radial Profile"
tooltip::tooltip $ds9(hack_top).ciao.wav "Wavdetect"
tooltip::tooltip $ds9(hack_top).ciao.cel "Celldetect"
tooltip::tooltip $ds9(hack_top).ciao.vtp "VTP detect"
tooltip::tooltip $ds9(hack_top).ciao.filth "Fill in holes (dmfilth)"
tooltip::tooltip $ds9(hack_top).ciao.thresh "Threshold"
tooltip::tooltip $ds9(hack_top).ciao.imgfilt "Non-linear filtering (dmimgfilt)"
tooltip::tooltip $ds9(hack_top).ciao.imgadapt "Adaptive Smooth (dmimgadapt)"
tooltip::tooltip $ds9(hack_top).ciao.csmooth "Csmooth"
tooltip::tooltip $ds9(hack_top).ciao.nautilus "Adaptive Binning (dmnautilus)"
tooltip::tooltip $ds9(hack_top).ciao.lasso "Lasso pixels (dmimglasso)"
tooltip::tooltip $ds9(hack_top).ciao.ellipse "ECF Ellipse (dmellipse)"
tooltip::tooltip $ds9(hack_top).ciao.marx "Run Marx"
tooltip::tooltip $ds9(hack_top).ciao.calc_add "Add current to previous frame"
tooltip::tooltip $ds9(hack_top).ciao.calc_sub "Subtract current from previous frame"
tooltip::tooltip $ds9(hack_top).ciao.calc_mul "Multiply current and previous frame"
tooltip::tooltip $ds9(hack_top).ciao.calc_div "Divide current frame by previous"
}