def get_your_data(runfile): data_proc = pchain.ProcessingChain() path = '/data/CHECS-data/astri_onsky/slowsignal/' + str(runfile) + '.hdf5' reader = Reader(path) data_proc.add(reader) frame_cleaner = PFCleaner() data_proc.add(frame_cleaner) aggr = Aggregate(["raw_resp"]) data_proc.add(aggr) data_proc.run() data = aggr.aggr["raw_resp"][0] dt = data.time - data.time[0] return (data, dt)
props = pickle.load(handle) print(props) # coefficient of f(x) = ax^2 + bx + d a = props["all_parameters"][:,0] b = props["all_parameters"][:,1] d = props["all_parameters"][:,2] # ============================================================================= # # Read in raw data # ============================================================================= # Pick runfile runfile = "Run13637_ss" # initializing our process chain data_proc = pchain.ProcessingChain() path = '/data/CHECS-data/astri_onsky/slowsignal/'+str(runfile)+'.hdf5' reader = Reader(path) data_proc.add(reader) #This module removes incomplete frames and marks bad and unstable pixels frame_cleaner = PFCleaner() data_proc.add(frame_cleaner) #The Aggregate module collects the computed object from the frame aggr = Aggregate(["raw_resp"]) data_proc.add(aggr) # Simple visualization of the chain print(data_proc) #Execute the chain data_proc.run() data = aggr.aggr["raw_resp"][0]
#list_of_calibrations = # "'Run13769_ss',' dumm = [ 'Run13638_ss', 'Run13770_ss', "Run13768_ss", 'Run13637_ss', 'Run13646_ss', 'Run13771_ss', 'Run13658_ss', 'Run13772_ss', 'Run13666_ss', 'Run13773_ss', 'Run13667_ss', 'Run13777_ss', 'Run13668_ss', 'Run13779_ss', 'Run13669_ss', 'Run13681_ss', 'Run13682_ss', 'Run13691_ss', 'Run13693_ss', 'Run13721_ss', 'Run13722_ss', 'Run13730_ss', 'Run13731_ss', 'Run13733_ss', 'Run13735_ss' ] #dumm = ['Run13769_ss'] dumm = ["Run13312"] for runfile in dumm: print(runfile) data_proc = pchain.ProcessingChain() path = '/data/CHECS-data/astri_onsky/slowsignal/' + str(runfile) + '.hdf5' reader = Reader(path) data_proc.add(reader) #This module removes incomplete frames and marks bad and unstable pixels frame_cleaner = PFCleaner() data_proc.add(frame_cleaner) #The Aggregate module collects the computed object from the frame aggr = Aggregate(["raw_resp"]) data_proc.add(aggr) # Simple visualization of the chain print(data_proc) #Execute the chain data_proc.run() data = aggr.aggr["raw_resp"][0]