atmospheric_lidar/scripts/licel2scc.py

changeset 92
6d26002aaeed
parent 90
e2088d39ee9b
child 101
3e97bd360eda
equal deleted inserted replaced
91:f9d9d3ea8edb 92:6d26002aaeed
36 custom_netcdf_parameters = read_settings_file(custom_netcdf_parameter_path) 36 custom_netcdf_parameters = read_settings_file(custom_netcdf_parameter_path)
37 37
38 class CustomLidarMeasurement(LicelLidarMeasurement): 38 class CustomLidarMeasurement(LicelLidarMeasurement):
39 extra_netcdf_parameters = custom_netcdf_parameters 39 extra_netcdf_parameters = custom_netcdf_parameters
40 40
41 def __init__(self, filelist=None): 41 def __init__(self, file_list=None):
42 super(CustomLidarMeasurement, self).__init__(filelist, use_id_as_name) 42 super(CustomLidarMeasurement, self).__init__(file_list, use_id_as_name)
43 43
44 def get_PT(self): 44 def set_PT(self):
45 ''' Sets the pressure and temperature at station level. This is used if molecular_calc parameter is 45 ''' Sets the pressure and temperature at station level. This is used if molecular_calc parameter is
46 set to 0 (i.e. use US Standard atmosphere). 46 set to 0 (i.e. use US Standard atmosphere).
47 47
48 The results are stored in the info dictionary. 48 The results are stored in the info dictionary.
49 ''' 49 '''
145 sys.exit(1) 145 sys.exit(1)
146 146
147 # Save the netcdf 147 # Save the netcdf
148 logger.info("Saving netcdf") 148 logger.info("Saving netcdf")
149 measurement.set_measurement_id(args.measurement_id, args.measurement_number) 149 measurement.set_measurement_id(args.measurement_id, args.measurement_number)
150 measurement.save_as_netcdf() 150 measurement.save_as_SCC_netcdf()
151 logger.info("Created file %s" % measurement.scc_filename) 151 logger.info("Created file %s" % measurement.scc_filename)
152 152

mercurial