example_scripts/convert_lilas.py

changeset 168
9fed2446a59f
parent 92
6d26002aaeed
equal deleted inserted replaced
167:0604a628fb1e 168:9fed2446a59f
60 search_str = os.path.join(args.directory, args.searchstring) 60 search_str = os.path.join(args.directory, args.searchstring)
61 files = glob.glob(search_str) 61 files = glob.glob(search_str)
62 62
63 if files: 63 if files:
64 # Read the files 64 # Read the files
65 print "Reading {0} files from {1}".format(len(files), args.directory) 65 print("Reading {0} files from {1}".format(len(files), args.directory))
66 measurement = lilas.LilasLidarMeasurement(files) 66 measurement = lilas.LilasLidarMeasurement(files)
67 67
68 #Save the netcdf 68 #Save the netcdf
69 print "Saving netcdf." 69 print("Saving netcdf.")
70 measurement.set_measurement_id(args.measurement_id, args.measurement_number) 70 measurement.set_measurement_id(args.measurement_id, args.measurement_number)
71 measurement.save_as_SCC_netcdf() 71 measurement.save_as_SCC_netcdf()
72 print "Created file ", measurement.scc_filename 72 print("Created file ", measurement.scc_filename)
73 else: 73 else:
74 print "No files found when searching for ", search_str 74 print("No files found when searching for ", search_str)

mercurial