Fri, 25 Oct 2019 11:10:10 +0300
Correct handling of azimuth angle in FixedPoint measurement files.
atmospheric_lidar/raymetrics.py | file | annotate | diff | comparison | revisions |
--- a/atmospheric_lidar/raymetrics.py Fri Oct 25 10:18:53 2019 +0300 +++ b/atmospheric_lidar/raymetrics.py Fri Oct 25 11:10:10 2019 +0300 @@ -720,9 +720,12 @@ def _assign_properties(self): """ Assign scanning-specific parameters found in the header as object properties.""" super(FixedPointingFile, self)._assign_properties() - self.azimuth_angle = float(self.raw_info['azimuth_angle']) + self.temperature = float(self.raw_info['temperature']) self.pressure = float(self.raw_info['pressure']) + self.azimuth_angle_raw = float(self.raw_info['azimuth_angle']) + self.azimuth_offset = float(self.raw_info['azimuth_offset']) + self.azimuth_angle = (self.azimuth_angle_raw + self.azimuth_offset) % 360 class FixedPointingChannel(LicelChannel):