Added pring channel method to LicelLidarMeasurement.

Tue, 28 Aug 2018 15:34:53 +0300

author
Iannis <i.binietoglou@impworks.gr>
date
Tue, 28 Aug 2018 15:34:53 +0300
changeset 151
0ec29d360d15
parent 149
6be372caf9fd
child 152
3e4e6472b88b
child 155
4a596849c721

Added pring channel method to LicelLidarMeasurement.

atmospheric_lidar/licel.py file | annotate | diff | comparison | revisions
--- a/atmospheric_lidar/licel.py	Thu Jun 21 16:41:32 2018 +0300
+++ b/atmospheric_lidar/licel.py	Tue Aug 28 15:34:53 2018 +0300
@@ -589,3 +589,16 @@
         This requires changes in generic.py
         """
         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))
\ No newline at end of file

mercurial