| 96 duration = self._get_duration(raw_start_in_seconds) |
96 duration = self._get_duration(raw_start_in_seconds) |
| 97 |
97 |
| 98 raw_stop_in_seconds = raw_start_in_seconds + duration |
98 raw_stop_in_seconds = raw_start_in_seconds + duration |
| 99 raw_Data_Stop_Time.append(raw_stop_in_seconds) |
99 raw_Data_Stop_Time.append(raw_stop_in_seconds) |
| 100 |
100 |
| 101 self.variables['Raw_Data_Start_Time']= raw_Data_Start_Time |
101 self.variables['Raw_Data_Start_Time'] = raw_Data_Start_Time |
| 102 self.variables['Raw_Data_Stop_Time']= raw_Data_Stop_Time |
102 self.variables['Raw_Data_Stop_Time'] = raw_Data_Stop_Time |
| 103 |
103 |
| 104 # Make a dictionary to match time scales and channels |
104 # Make a dictionary to match time scales and channels |
| 105 channel_timescales = [] |
105 channel_timescales = [] |
| 106 for (channel_name, current_time_scale) in zip(channel_name_list, all_time_scales): |
106 for (channel_name, current_time_scale) in zip(channel_name_list, all_time_scales): |
| 107 # The following lines are PEARL specific. The reason they are here is not clear. |
107 # The following lines are PEARL specific. The reason they are here is not clear. |
| 374 self.channels[channel].plot(show_plot = False) |
374 self.channels[channel].plot(show_plot = False) |
| 375 plt.show() |
375 plt.show() |
| 376 |
376 |
| 377 def get_dark_measurements(self): |
377 def get_dark_measurements(self): |
| 378 return None |
378 return None |
| |
379 |
| |
380 @property |
| |
381 def mean_time(self): |
| |
382 start_time = self.info['start_time'] |
| |
383 stop_time = self.info['stop_time'] |
| |
384 dt = stop_time - start_time |
| |
385 t_mean = start_time + dt / 2 |
| |
386 return t_mean |
| 379 |
387 |
| 380 |
388 |
| 381 class Lidar_channel: |
389 class Lidar_channel: |
| 382 |
390 |
| 383 def __init__(self,channel_parameters): |
391 def __init__(self,channel_parameters): |