55 Ambient pressure (hPa) |
55 Ambient pressure (hPa) |
56 """ |
56 """ |
57 |
57 |
58 # Specifications of the header lines. |
58 # Specifications of the header lines. |
59 licel_file_header_format = ['filename', |
59 licel_file_header_format = ['filename', |
60 'start_date start_time end_date end_time altitude longitude latitude zenith_angle azimuth_angle temperature pressure', |
60 'start_date start_time end_date end_time altitude longitude latitude zenith_angle azimuth_angle temperature pressure custom_info', |
61 # Appart from Site that is read manually |
61 # Appart from Site that is read manually |
62 'azimuth_start azimuth_stop azimuth_step zenith_start zenith_stop zenith_step azimuth_offset', |
62 'azimuth_start azimuth_stop azimuth_step zenith_start zenith_stop zenith_step azimuth_offset', |
63 'LS1 rate_1 LS2 rate_2 number_of_datasets', ] |
63 'LS1 rate_1 LS2 rate_2 number_of_datasets', ] |
64 |
64 |
65 # Specifications of the channel lines in the header |
65 # Specifications of the channel lines in the header |
129 self.zenith_start = self._correct_zenith_angle(self.zenith_start_raw) |
129 self.zenith_start = self._correct_zenith_angle(self.zenith_start_raw) |
130 self.zenith_stop = self._correct_zenith_angle(self.zenith_stop_raw) |
130 self.zenith_stop = self._correct_zenith_angle(self.zenith_stop_raw) |
131 else: |
131 else: |
132 self.zenith_start = self.zenith_start_raw |
132 self.zenith_start = self.zenith_start_raw |
133 self.zenith_stop = self.zenith_stop_raw |
133 self.zenith_stop = self.zenith_stop_raw |
|
134 |
|
135 try: |
|
136 self.custom_info = self.raw_info['custom_info'].strip('"') |
|
137 except KeyError: |
|
138 self.custom_info = None |
134 |
139 |
135 def get_coordinates(self, channel_name): |
140 def get_coordinates(self, channel_name): |
136 """ |
141 """ |
137 Calculate the lat, lon, z coordinates for each measurement point. |
142 Calculate the lat, lon, z coordinates for each measurement point. |
138 |
143 |
729 `pressure` |
734 `pressure` |
730 Ambient pressure (hPa) |
735 Ambient pressure (hPa) |
731 """ |
736 """ |
732 # Specifications of the header lines. |
737 # Specifications of the header lines. |
733 licel_file_header_format = ['filename', |
738 licel_file_header_format = ['filename', |
734 'start_date start_time end_date end_time altitude longitude latitude zenith_angle azimuth_angle temperature pressure', |
739 'start_date start_time end_date end_time altitude longitude latitude zenith_angle azimuth_angle temperature pressure custom_info', |
735 # Appart from Site that is read manually |
740 # Appart from Site that is read manually |
736 'LS1 rate_1 LS2 rate_2 number_of_datasets', ] |
741 'LS1 rate_1 LS2 rate_2 number_of_datasets', ] |
737 |
742 |
738 fix_zenith_angle = True |
743 fix_zenith_angle = True |
739 |
744 |
742 super(FixedPointingFile, self)._assign_properties() |
747 super(FixedPointingFile, self)._assign_properties() |
743 |
748 |
744 self.temperature = float(self.raw_info['temperature']) |
749 self.temperature = float(self.raw_info['temperature']) |
745 self.pressure = float(self.raw_info['pressure']) |
750 self.pressure = float(self.raw_info['pressure']) |
746 self.azimuth_angle = float(self.raw_info['azimuth_angle']) |
751 self.azimuth_angle = float(self.raw_info['azimuth_angle']) |
|
752 |
|
753 try: |
|
754 self.custom_info = self.raw_info['custom_info'].strip('"') |
|
755 except KeyError: |
|
756 self.custom_info = None |
747 |
757 |
748 |
758 |
749 class FixedPointingChannel(LicelChannel): |
759 class FixedPointingChannel(LicelChannel): |
750 """ A class representing measurements of a specific lidar channel, during a fixed pointing measurement. """ |
760 """ A class representing measurements of a specific lidar channel, during a fixed pointing measurement. """ |
751 |
761 |