# HG changeset patch # User Iannis B # Date 1536837246 -10800 # Node ID 001baed1f6406d0a8eb530c902abc9012059c7cf # Parent 24ce9e10906cf20198479f3bab17259fb06139bf Print channels manual copy. diff -r 24ce9e10906c -r 001baed1f640 atmospheric_lidar/licel.py --- a/atmospheric_lidar/licel.py Thu Sep 13 13:59:32 2018 +0300 +++ b/atmospheric_lidar/licel.py Thu Sep 13 14:14:06 2018 +0300 @@ -591,6 +591,18 @@ """ raise NotImplementedError("Subsetting by time, not yet implemented for Licel files.") + def print_channels(self): + """ Print the available channel information on the screen. + """ + keys = sorted(self.channels.keys()) + + print("Name Wavelength Mode Resolution Bins ") + + for key in keys: + channel = self.channels[key] + print("{0:<3} {1:<10} {2:<4} {3:<10} {4:<5}".format(channel.name, channel.wavelength, + channel.analog_photon_string, channel.resolution, + channel.points)) class LicelDivaLidarMeasurement(DivaMixin, LicelLidarMeasurement): pass \ No newline at end of file