rali.py

changeset 36
a281a26f4626
parent 35
b1146c96f727
child 37
7c76fdbdf1a3
--- a/rali.py	Mon Feb 22 16:50:03 2016 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-import radiometer
-
-from licel import LicelLidarMeasurement
-
-import rali_netcdf_parameters
-
-class RaliLidarMeasurement(LicelLidarMeasurement):
-    extra_netcdf_parameters = rali_netcdf_parameters
-    
-    def get_PT(self):
-        ''' Gets the pressure and temperature from Radiometer data.
-        If no data file is found, mean values from past measurements are 
-        used.
-        '''
-        
-        start_time = self.info['start_time']
-        stop_time = self.info['stop_time']
-        dt = stop_time - start_time
-        mean_time = start_time + dt/2
-        
-        meteo_triplet = radiometer.get_mean_PT(mean_time)
-        
-        if meteo_triplet:
-            pressure, temperature, humidity = meteo_triplet
-        else:
-            print "Radiometer meteo data not available. Using past values."
-            pressure = radiometer.P_mean[mean_time.month - 1, mean_time.hour]
-            temperature = radiometer.T_mean[mean_time.month - 1, mean_time.hour]
-            
-        self.info['Temperature'] = temperature - 273.15
-        self.info['Pressure'] = pressure
-
-

mercurial