# HG changeset patch # User Ioannis # Date 1537871445 -10800 # Node ID 5d99df1c7e8113c30f4d629b2da408e22e1323e1 # Parent 03b470b0a05f5ced1d05021bc9a64f2f0adcb430# Parent 3e4e6472b88befa0ba7f8b1a605651e2391397f0 Added vertical lidar measurement class. diff -r 03b470b0a05f -r 5d99df1c7e81 atmospheric_lidar/raymetrics.py --- a/atmospheric_lidar/raymetrics.py Tue Sep 25 12:43:14 2018 +0300 +++ b/atmospheric_lidar/raymetrics.py Tue Sep 25 13:30:45 2018 +0300 @@ -150,3 +150,24 @@ file_class = ScanningFile channel_class = ScanningChannel photodiode_class = PhotodiodeChannel + + +class VerticalFile(LicelFile): + """ Raymetrics is using a custom version of licel file format to store + vertical lidar measurements. + + `temperature` + Ambient temperature (degrees C) + + `pressure` + Ambient pressure (hPa) + """ + # Specifications of the header lines. + licel_file_header_format = ['filename', + 'start_date start_time end_date end_time altitude longitude latitude zenith_angle azimuth_angle temperature pressure', + # Appart from Site that is read manually + 'LS1 rate_1 LS2 rate_2 number_of_datasets', ] + + +class VerticalLidarMeasurement(LicelLidarMeasurement): + file_class = VerticalFile