1 | Title: Status of the programs and scripts used for Amas@Nancay analysis at CCIN2P3 |
---|
2 | Revision: 11/10/11 (JEC) |
---|
3 | Author: J.E Campagne 22/7/11 |
---|
4 | ---------------------------- |
---|
5 | |
---|
6 | Intro: |
---|
7 | All these tools are located for the while in J.E Campagne private directory, so they are not |
---|
8 | yet available to public usage and this note is essentially for information and software tracking. |
---|
9 | |
---|
10 | ----------------------------------------------------------- |
---|
11 | Analysis program |
---|
12 | ------------------------------------------------------------ |
---|
13 | o analysis.cc |
---|
14 | - perfom |
---|
15 | . gain spectra determination + monitoring |
---|
16 | . ON-OFF spectra without calibration |
---|
17 | . calibration coefficient determination + monitoring |
---|
18 | . ON-OFF spectra determination (no RT calibration included) |
---|
19 | - Todo |
---|
20 | . include RT calibration, or a RT/BAO calibration using a calibrator source |
---|
21 | - comments |
---|
22 | . the STANDARD usage since end september 11 is GAIN + ON-OFF wo calibration |
---|
23 | |
---|
24 | ----------------------------------------------------------- |
---|
25 | Collection of Bourne SHELL script for analysis |
---|
26 | ------------------------------------------------------------ |
---|
27 | |
---|
28 | A) Utilitary scripts to follow the DAQ & Analysis progress |
---|
29 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
30 | o statusdaq.sh |
---|
31 | -------------- |
---|
32 | - perform |
---|
33 | . scan all the /baoradio/data/AmamNancay to look at the directories and and make |
---|
34 | a summary of the Data Acquisition |
---|
35 | |
---|
36 | o statusheader.sh |
---|
37 | ----------------- |
---|
38 | - perform |
---|
39 | . scan Irods directories to look at header fits files extraction progress |
---|
40 | |
---|
41 | o statusgain.sh |
---|
42 | --------------- |
---|
43 | - perform |
---|
44 | . scan Irods directories to look at FINAL gain_* files production progress |
---|
45 | |
---|
46 | o statuscalib.sh |
---|
47 | ---------------- |
---|
48 | - perform |
---|
49 | . scan Irods directories to look at INTERMEDIATE calibcycle files production progress |
---|
50 | - Todo |
---|
51 | . scan also for FINAL calib_* files progress |
---|
52 | o statusonoff.sh |
---|
53 | ---------------- |
---|
54 | - perform |
---|
55 | . scan Irods On and Off directories to look at datacycle<cycle> contents |
---|
56 | |
---|
57 | o statusCycles.sh |
---|
58 | ----------------- |
---|
59 | - perform |
---|
60 | . scan Irods directories to look at sca<>.sum files to count the number of cycles per run |
---|
61 | |
---|
62 | B) Utilitary scripts to send to BQS system high level task |
---|
63 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
64 | o submit2bqs-hdrfitsextractor.sh |
---|
65 | -------------------------------- |
---|
66 | - SHOULD BE DONE BEFORE gain/calib/analysis |
---|
67 | - send the hdrfitsextractor.sh script to BQS system |
---|
68 | - Todo list |
---|
69 | - TO MIGRATE TO NEW BATCH |
---|
70 | |
---|
71 | o submit2bqs-scaextractor.sh |
---|
72 | -------------------------------- |
---|
73 | - SHOULD BE DONE BEFORE gain/calib/analysis |
---|
74 | - send the scaextractor.sh script to BQS system |
---|
75 | although this script is called by getscafiles lower level script |
---|
76 | - Todo list |
---|
77 | - TO MIGRATE TO NEW BATCH |
---|
78 | |
---|
79 | o submit2bqs-procspecmfib.sh |
---|
80 | ----------------------------- |
---|
81 | - SHOULD BE DONE for processing signals for FFT/paquet median filtering |
---|
82 | - GAIN/CALIB/ON, OFF... |
---|
83 | - prepare and send in batch the proc_specmfib.sh to BQS |
---|
84 | - exemple |
---|
85 | - Todo list |
---|
86 | - TO MIGRATE TO NEW BATCH |
---|
87 | |
---|
88 | o submit2bqs-anagainmaker.sh |
---|
89 | ---------------------------- |
---|
90 | - done after proc_specmfib |
---|
91 | - prepare and send the analyse.cc prg for gain computation |
---|
92 | - exemple |
---|
93 | - Todo list |
---|
94 | - TO MIGRATE TO NEW BATCH |
---|
95 | |
---|
96 | o submit2bqs-anacalibmaker.sh |
---|
97 | ---------------------------- |
---|
98 | - done after proc_specmfib |
---|
99 | - prepare and send the analyse.cc prg for calibration computation |
---|
100 | - exemples: |
---|
101 | > $./submit2bqs-anacalibmaker.sh -src Abell85 -date 20110410 |
---|
102 | |
---|
103 | |
---|
104 | - Todo list |
---|
105 | - TO MIGRATE TO NEW BATCH |
---|
106 | |
---|
107 | o submit2qs-onoffmaker.sh (OBSOLETE ???) |
---|
108 | -------------------------- |
---|
109 | - send the onoffmaker.sh script to BQS system |
---|
110 | - Todo list |
---|
111 | - TO MIGRATE TO NEW BATCH |
---|
112 | |
---|
113 | o submit2bqs-rawonoffmaker.sh (OBSOLETE ???) |
---|
114 | ----------------------------- |
---|
115 | - used after the anagainmaker |
---|
116 | - prepare and send in batch the proc_rawonoff.sh to BQS system |
---|
117 | - exemple submit2bqs-rawonoffmaker.sh -src Abell85 -date 20110417 -fcycle 8 -lcycle 23 -type ON |
---|
118 | - Todo list |
---|
119 | - TO MIGRATE TO NEW BATCH |
---|
120 | |
---|
121 | o submit2qs-gainmaker.sh (OBSOLETE) |
---|
122 | ------------------------- |
---|
123 | - send the gainmaker.sh script to BQS system |
---|
124 | - Todo list |
---|
125 | - TO MIGRATE TO NEW BATCH |
---|
126 | |
---|
127 | o submit2qs-calibmaker.sh (OBSOLETE) |
---|
128 | -------------------------- |
---|
129 | - send the calibmaker.sh script to BQS system |
---|
130 | - Todo list |
---|
131 | - TO MIGRATE TO NEW BATCH |
---|
132 | |
---|
133 | |
---|
134 | C) High level scripts |
---|
135 | ++++++++++++++++++++++ |
---|
136 | o hdrfitsextractor.sh |
---|
137 | --------------------- |
---|
138 | - SHOULD BE DONE BEFORE ANYTHING |
---|
139 | - perform |
---|
140 | . extraction of the header part of the signalXYZ.fits files and |
---|
141 | . put the results into Irods |
---|
142 | - use |
---|
143 | . statusdaq.sh |
---|
144 | |
---|
145 | o anagainmaker.sh |
---|
146 | ----------------- |
---|
147 | - perform |
---|
148 | . the analysis of the above fits files to determine the |
---|
149 | gains of each channel: produce gain_* files (monitoring + gain files) |
---|
150 | . put the results into Irods |
---|
151 | - use |
---|
152 | - getscafiles.sh |
---|
153 | - analysis.cc |
---|
154 | |
---|
155 | o anacalibmaker.sh |
---|
156 | ------------------ |
---|
157 | - perfom |
---|
158 | . prepare the analysis of the above fits files |
---|
159 | . put calib_* files (monitoring + calibration files) into Irods |
---|
160 | - use |
---|
161 | - getscafiles.sh |
---|
162 | - analysis.cc |
---|
163 | |
---|
164 | |
---|
165 | o gainmaker.sh (OBOLETE) |
---|
166 | --------------- |
---|
167 | - perform |
---|
168 | 1) the extraction of signalXYZ.fits files |
---|
169 | concerned by the OFF-calibration time window |
---|
170 | of the cycle located at the middle of the run |
---|
171 | 2) . the analysis of the above fits files to determine the |
---|
172 | gains of each channel: produce gain_* files (monitoring + gain files) |
---|
173 | . put the results into Irods |
---|
174 | - use |
---|
175 | - statusdaq.sh, proc_script.sh, getscafiles.sh |
---|
176 | - analysis.cc |
---|
177 | |
---|
178 | o calibmaker.sh (OBSOLETE) |
---|
179 | --------------- |
---|
180 | - perfom |
---|
181 | 1) several x-checks to see at which stage of the analysis process we are |
---|
182 | 2) trig the proc_script.sh script if necessary to create the spectra fits files via specmfib.cc prg |
---|
183 | 3) . prepare the analysis of the above fits files |
---|
184 | . put calib_* files (monitoring + calibration files) into Irods |
---|
185 | - use |
---|
186 | - statusdaq.sh, proc_script.sh, getscafiles.sh |
---|
187 | - analysis.cc |
---|
188 | |
---|
189 | o onoffmaker.sh (preliminary) |
---|
190 | ---------------------------- |
---|
191 | - perform |
---|
192 | 1) several x-checks to see at which stage of the analysis process we are |
---|
193 | 2) trig the proc_script.sh script if necessary to create the spectra fits files via specmfib.cc prg |
---|
194 | 3) prepare the analysis of the above fits files |
---|
195 | 4) put dataRaw_* (raw spectra), |
---|
196 | dataBAOCalib_* (after BAO calibration), |
---|
197 | dataBAORTCalib_* (after BAO & RT calibration), |
---|
198 | diffOnOff_* (ON-OFF spectra) |
---|
199 | |
---|
200 | D) Lower level scripts |
---|
201 | ++++++++++++++++++++++ |
---|
202 | |
---|
203 | o proc_specmfib.sh |
---|
204 | ------------------ |
---|
205 | - perform all the preparation work to send in batch the "specmfib" |
---|
206 | program which perform the FFT and median/mean spectra |
---|
207 | for the GAIN/CALIB/ON-OFF... task |
---|
208 | - use |
---|
209 | - getscafiles.sh, select.sh, statusdaq.sh, getsignalfiles.sh |
---|
210 | - comments |
---|
211 | - this is the pre-processing of the data to be used before |
---|
212 | anaXYZ script which are post-processing |
---|
213 | |
---|
214 | |
---|
215 | o proc_rawonoff.sh (OBSOLETE) |
---|
216 | ------------------ |
---|
217 | - this is the script to use to perform the "datacycle" contents |
---|
218 | - perform all the preparation work to send in batch the "specmfib" program |
---|
219 | which perform the FFT and median/mean spectra for the ON-OFF task |
---|
220 | - use |
---|
221 | - getscafiles.sh, select.sh, statusdaq.sh, getsignalfiles.sh |
---|
222 | - comments |
---|
223 | - contrary to proc_script (below) specmfib is activated in the same thread |
---|
224 | |
---|
225 | o proc_script.sh (OBSOLETE) |
---|
226 | ----------------- |
---|
227 | - VERY BUSY script |
---|
228 | - perform |
---|
229 | 1) all the preparation work to send in batch the "specmfib" program |
---|
230 | which perform the FFT and median/mean spectra for GAIN, CALIBRATION, ON-OFF task |
---|
231 | 2) the script that is sent in batch put the results into Irods |
---|
232 | - use |
---|
233 | - getscafiles.sh, select.sh, getsignalfiles.sh |
---|
234 | - Todo list |
---|
235 | - TO MIGRATE TO NEW BATCH |
---|
236 | |
---|
237 | |
---|
238 | o scaextractor.sh |
---|
239 | ----------------- |
---|
240 | - perform |
---|
241 | 1) extraction of the scaXYZ file |
---|
242 | 2) if the scaXYZ.sum and the scaXYZ.sum.trans files do not exist |
---|
243 | . create and put them into Irods |
---|
244 | . scaXYZ.sum = summary of the SCA file |
---|
245 | . scaXYZ.sum.trans = transformation of the date format of the scaXYZ.sum file |
---|
246 | - use |
---|
247 | - sca.sh, transdate.sh |
---|
248 | |
---|
249 | o sca.sh |
---|
250 | -------- |
---|
251 | - perform |
---|
252 | . produce the scaXYZ.sum (= summary of the SCA file) from a scaXYZ file |
---|
253 | |
---|
254 | o transdate.sh |
---|
255 | -------------- |
---|
256 | - perform |
---|
257 | . produce the scaXYZ.sum.trans (= transformation of the date format) from the scaXYZ.sum file |
---|
258 | |
---|
259 | o select.sh |
---|
260 | ----------- |
---|
261 | -perform |
---|
262 | . the selection of the signalXYZ.fits files according to the type of task requested |
---|
263 | as ON, OFF, CALIBON, CALIBOFF, GAIN |
---|
264 | |
---|
265 | o getscafiles.sh |
---|
266 | ---------------- |
---|
267 | - perform |
---|
268 | . download from Irods the scaXYZ, scaXYZ.sum and scaXYZ.sum.trans files |
---|
269 | - use |
---|
270 | scaextractor.sh |
---|
271 | |
---|
272 | o getsignals.sh |
---|
273 | --------------- |
---|
274 | - perform |
---|
275 | . download from Irods the signalXYZ.fits files |
---|
276 | |
---|
277 | |
---|
278 | |
---|
279 | |
---|