atmospheric_lidar/raymetrics.py

changeset 131
7225c844bdc5
parent 130
24e450fdd25c
child 132
dc48952c383d
equal deleted inserted replaced
130:24e450fdd25c 131:7225c844bdc5
43 self.azimuth_offset = float(self.raw_info['azimuth_offset']) 43 self.azimuth_offset = float(self.raw_info['azimuth_offset'])
44 44
45 45
46 class ScanningChannel(LicelChannel): 46 class ScanningChannel(LicelChannel):
47 def __init__(self): 47 def __init__(self):
48 super(ScanningChannel, self).__init__()
49
48 self.azimuth_start = None 50 self.azimuth_start = None
49 self.azimuth_stop = None 51 self.azimuth_stop = None
50 self.azimuth_step = None 52 self.azimuth_step = None
51 self.zenith_start = None 53 self.zenith_start = None
52 self.zenith_finish = None 54 self.zenith_finish = None
53 self.zenith_step = None 55 self.zenith_step = None
54 self.azimuth_offset = None 56 self.azimuth_offset = None
55 super(ScanningChannel, self).__init__() 57 self.zenith_angles = []
58 self.azimuth_angles = []
59
60 def append_file(self, current_file, file_channel):
61 super(ScanningChannel, self).append_file(current_file, file_channel)
62 self.zenith_angles.append(current_file.zenith_angle)
63 self.azimuth_angles.append(current_file.azimuth_angle)
64
65 def _assign_properties(self, current_file, file_channel):
66 super(ScanningChannel, self)._assign_properties(current_file, file_channel)
67 self._assign_unique_property('azimuth_start', current_file.azimuth_start)
68 self._assign_unique_property('azimuth_stop', current_file.azimuth_stop)
69 self._assign_unique_property('azimuth_step', current_file.azimuth_step)
70 self._assign_unique_property('zenith_start', current_file.zenith_start)
71 self._assign_unique_property('zenith_finish', current_file.zenith_finish)
72 self._assign_unique_property('zenith_step', current_file.zenith_step)
56 73
57 74
58 class ScanningLidarMeasurement(LicelLidarMeasurement): 75 class ScanningLidarMeasurement(LicelLidarMeasurement):
59 file_class = ScanningFile 76 file_class = ScanningFile
60 channel_class = LicelChannel 77 channel_class = ScanningChannel
61 photodiode_class = PhotodiodeChannel 78 photodiode_class = PhotodiodeChannel

mercurial