Changeset 13122
- Timestamp:
- 03/15/12 21:43:41 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/tools/plot3.py
r13105 r13122 16 16 #print 'spike_ana - callback' 17 17 print len(candidates), len(singles), len(doubles) 18 19 data_file_name = '/data00/fact-construction/raw/2011/11/24/20111124_111.fits.gz' 20 calib_file_name = '/data00/fact-construction/raw/2011/11/24/20111124_111.drs.fits.gz' 18 path = '/home/luster/win7/FACT/data/raw/20120114/' 19 data_file_name = path + '20120114_024.fits.gz' 20 calib_file_name = path + '20120114_022.drs.fits.gz' 21 path = '/home/luster/win7/FACT/data/raw/20120114/' 22 data_file_name = path + '20120114_024.fits.gz' 23 calib_file_name = path + '20120114_022.drs.fits.gz' 21 24 run = RawData( data_file_name, calib_file_name ) 22 25 … … 26 29 27 30 remove_spikes = DRSSpikes(7., user_action=spike_ana, debug=False) 28 raw_data_plot = Plotter('raw_data', x, 'g.', xlabel='slice in logical pipeline',29 31 raw_data_plot = Plotter('raw_data', x, 'g.', 32 xlabel='slice in logical pipeline', ylabel='amplitude in mV') 30 33 rem_spikes_plot = Plotter('rem_spikes', x, 'r.', xlabel='slice in logical pipeline', 31 34 ylabel='amplitude in mV') … … 37 40 #print data[ch,0:10] 38 41 raw_data_plot(data[ch,:]) 39 fdata = remove_spikes(data)40 rem_spikes_plot(fdata[ch,:])42 #fdata = remove_spikes(data) 43 #rem_spikes_plot(fdata[ch,:]) 41 44 42 45 while ( inp != 'q' ): … … 53 56 else: 54 57 data, scell, tt = run.next() 55 56 #print data[ch, 0:10]57 raw_data_plot(data[ch,:])58 59 58 if inp != 'q': 59 print data[ch, 0:20] 60 raw_data_plot(data[ch,:]) 61 # fdata = remove_spikes(data) 62 # rem_spikes_plot(fdata[ch,:]) 60 63
Note:
See TracChangeset
for help on using the changeset viewer.