Print channels manual copy.

Thu, 13 Sep 2018 14:14:06 +0300

author
Iannis B <ioannis@inoe.ro>
date
Thu, 13 Sep 2018 14:14:06 +0300
changeset 154
001baed1f640
parent 153
24ce9e10906c
child 155
4a596849c721

Print channels manual copy.

atmospheric_lidar/licel.py file | annotate | diff | comparison | revisions
--- 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

mercurial