Debian Codegraph @

commissioning/process_wfc3.csh

raw
1 #! /bin/csh -x
2
3 set newfiles = (wfc3IRImagingPysynphotLog.txt wfc3IRSpecPysynphotLog.txt wfc3UVIS1ImagingPysynphotLog.txt wfc3UVIS1SpecPysynphotLog.txt wfc3UVIS2ImagingPysynphotLog.txt wfc3UVIS2SpecPysynphotLog.txt)
4
5 foreach x ($newfiles)
6 python parselog.py $x
7 end
8
9 set irfiles = ( wfc3IRImagingPysynphotLog_parsed.txt wfc3IRSpecPysynphotLog_parsed.txt )
10 foreach x ($irfiles)
11 cull_thermback.csh $x
12 end
13
14 set allfiles = (wfc3IRImagingPysynphotLog_parsed_thermback.txt wfc3IRSpecPysynphotLog_parsed_thermback.txt wfc3IRImagingPysynphotLog_parsed_nonthermback.txt wfc3IRSpecPysynphotLog_parsed_nonthermback.txt wfc3UVIS1ImagingPysynphotLog_parsed.txt wfc3UVIS1SpecPysynphotLog_parsed.txt wfc3UVIS2ImagingPysynphotLog_parsed.txt wfc3UVIS2SpecPysynphotLog_parsed.txt)
15
16 set oldfiles = (wfc3_ir_imaging_80_thermback.txt wfc3_ir_spec_62_thermback.txt wfc3_ir_imaging_78_cases.txt wfc3_ir_spec_61_cases.txt wfc3_uvis1_imaging_61_cases.txt wfc3_uvis1_spec_62_cases.txt wfc3_uvis2_imaging_18_cases.txt wfc3_uvis2_spec_18_cases.txt)
17
18 foreach i (1 2 3 4 5 6 7 8)
19 echo $oldfiles[$i]
20 python ../gencases.py $oldfiles[$i]
21 echo $allfiles[$i]
22 ln -s `basename $oldfiles[$i] txt`pickle `basename $newfiles[$i] txt`pickle
23 python ../gencases.py $allfiles[$i]
24 diff `basename $oldfiles[$i] txt`py `basename $allfiles[$i] txt`py
25 echo ".............."
26 end