def initialize_hessio(filename,tel_id, file_closed): if file_closed: util_functions.load_hessio(filename) util_functions.nextevent_hessio() else: pass ld.mirror_area.append(h.get_mirror_area(tel_id)) ld.mirror_number.append(h.get_mirror_number(tel_id)) if file_closed: util_functions.close_hessio()
def initialize_hessio(filename, tel_id, file_closed): if file_closed: util_functions.load_hessio(filename) util_functions.nextevent_hessio() else: pass px = h.get_pixel_position(tel_id)[0] py = h.get_pixel_position(tel_id)[1] ld.pixel_posX.append(px) ld.pixel_posY.append(py) ld.camera_class.append(guess_camera_geometry(px * u.m, py * u.m).cam_id) #to use this, one has to go through every event of the run... n_channel = h.get_num_channel(tel_id) ld.channel_num = n_channel #for chan in range(n_channel): # ld.adc_samples.append(h.get_adc_sample(tel_id,chan).tolist()) if file_closed: util_functions.close_hessio()
def initialize_hessio(filename,tel_id, file_closed): if file_closed: util_functions.load_hessio(filename) util_functions.nextevent_hessio() else: pass px = h.get_pixel_position(tel_id)[0] py = h.get_pixel_position(tel_id)[1] ld.pixel_posX.append(px) ld.pixel_posY.append(py) ld.camera_class.append(guess_camera_geometry(px*u.m,py*u.m).cam_id) #to use this, one has to go through every event of the run... n_channel = h.get_num_channel(tel_id) ld.channel_num = n_channel #for chan in range(n_channel): # ld.adc_samples.append(h.get_adc_sample(tel_id,chan).tolist()) if file_closed: util_functions.close_hessio()
def initialize_hessio(filename,file_closed): if file_closed: file_closed = util_functions.load_hessio(filename) print(file_closed) util_functions.nextevent_hessio() else: pass #ld.telescope_id = h.get_telescope_ids().tolist() #--> this function only can be used if the according python wrapper hase been added to pyhessio.c and hessio.py ld.telescope_id = h.get_teldata_list().tolist() ld.telescope_num = h.get_num_telescope() return file_closed
def initialize_hessio(filename, file_closed): if file_closed: file_closed = util_functions.load_hessio(filename) print(file_closed) util_functions.nextevent_hessio() else: pass #ld.telescope_id = h.get_telescope_ids().tolist() #--> this function only can be used if the according python wrapper hase been added to pyhessio.c and hessio.py ld.telescope_id = h.get_teldata_list().tolist() ld.telescope_num = h.get_num_telescope() return file_closed