Changeset 13122


Ignore:
Timestamp:
03/15/12 21:43:41 (13 years ago)
Author:
lusterma
Message:
tiny modifications - still not final
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/pyscripts/tools/plot3.py

    r13105 r13122  
    1616    #print 'spike_ana - callback'
    1717    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'
     18path = '/home/luster/win7/FACT/data/raw/20120114/'
     19data_file_name = path + '20120114_024.fits.gz'
     20calib_file_name = path + '20120114_022.drs.fits.gz'
     21path = '/home/luster/win7/FACT/data/raw/20120114/'
     22data_file_name = path + '20120114_024.fits.gz'
     23calib_file_name = path + '20120114_022.drs.fits.gz'
    2124run = RawData( data_file_name, calib_file_name )
    2225
     
    2629
    2730remove_spikes = DRSSpikes(7., user_action=spike_ana, debug=False)
    28 raw_data_plot = Plotter('raw_data', x, 'g.', xlabel='slice in logical pipeline',
    29                         ylabel='amplitude in mV')
     31raw_data_plot = Plotter('raw_data', x, 'g.',
     32                        xlabel='slice in logical pipeline', ylabel='amplitude in mV')
    3033rem_spikes_plot = Plotter('rem_spikes', x, 'r.', xlabel='slice in logical pipeline',
    3134                          ylabel='amplitude in mV')
     
    3740#print data[ch,0:10]
    3841raw_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,:])
    4144
    4245while ( inp != 'q' ):
     
    5356    else:
    5457        data, scell, tt = run.next()
    55    
    56     #print data[ch, 0:10]
    57     raw_data_plot(data[ch,:])
    58     fdata = remove_spikes(data)
    59     rem_spikes_plot(fdata[ch,:])
     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,:])
    6063
Note: See TracChangeset for help on using the changeset viewer.