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(LicelCalibrationMeasurement): |
38 class CustomLidarMeasurement(LicelCalibrationMeasurement): |
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, plus45_files=None, minus45_files=None): |
42 super(CustomLidarMeasurement, self).__init__(filelist, use_id_as_name) |
42 super(CustomLidarMeasurement, self).__init__(plus45_files, minus45_files, use_id_as_name) |
43 |
43 |
44 def get_PT(self): |
44 def get_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 |
72 |
72 |
73 def main(): |
73 def main(): |
74 # Define the command line argument |
74 # Define the command line argument |
75 parser = argparse.ArgumentParser(description="A program to convert Licel binary files from depolarization calibration measurements to the SCC NetCDF format.") |
75 parser = argparse.ArgumentParser(description="A program to convert Licel binary files from depolarization calibration measurements to the SCC NetCDF format.") |
76 parser.add_argument("parameter_file", help="The path to a parameter file linking licel and SCC channels.") |
76 parser.add_argument("parameter_file", help="The path to a parameter file linking licel and SCC channels.") |
77 parser.add_argument("plus45_string", nargs='?', help="Search string for plus 45 degree files (default '*.*')", default="*.*") |
77 parser.add_argument("plus45_string", help="Search string for plus 45 degree files") |
78 parser.add_argument("minus45_string", nargs='?', help="Search string for minus 45 degree files (default '*.*')", default="*.*") |
78 parser.add_argument("minus45_string", help="Search string for minus 45 degree files") |
79 parser.add_argument("-i", '--id_as_name', |
79 parser.add_argument("-i", '--id_as_name', |
80 help="Use transient digitizer ids as channel names, instead of descriptive names", |
80 help="Use transient digitizer ids as channel names, instead of descriptive names", |
81 action="store_true") |
81 action="store_true") |
82 parser.add_argument("-m", "--measurement_id", help="The new measurement id", default=None) |
82 parser.add_argument("-m", "--measurement_id", help="The new measurement id", default=None) |
83 parser.add_argument("-n", "--measurement_number", |
83 parser.add_argument("-n", "--measurement_number", |