[Liblas-commits] hg: clean up scale argument, actually fetch the blue band ; )

liblas-commits at liblas.org liblas-commits at liblas.org
Fri Jul 23 23:31:23 EDT 2010


changeset 25d13655dd41 in /Volumes/Data/www/liblas.org/hg
details: http://hg.liblas.orghg?cmd=changeset;node=25d13655dd41
summary: clean up scale argument, actually fetch the blue band ;)

diffstat:

 python/scripts/colorize.py |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r 84eba420aa2b -r 25d13655dd41 python/scripts/colorize.py
--- a/python/scripts/colorize.py	Fri Jul 23 22:20:53 2010 -0500
+++ b/python/scripts/colorize.py	Fri Jul 23 22:31:18 2010 -0500
@@ -77,8 +77,9 @@
         g.add_option("-b", "--bands", dest='bands',
                           help="Comma-separated list of bands numbers to use for R,G,B ", metavar="BANDS")
 
-        g.add_option("-s", "--scale", dest='scale',
-                          help="Scale the color values to 16 bit by multiplying by 256 ", metavar="SCALE")
+        g.add_option("-s", "--scale",
+                          action="store_true", dest="scale", 
+                          help="Scale the color values to 16 bit by multiplying by 256")
                           
         g.add_option("-t", "--target-srs", dest='target_srs',
                           help="Output SRS for LAS file", metavar="TARGET_SRS")
@@ -202,7 +203,7 @@
         
         red_band = self.options.image.GetRasterBand(self.options.bands[0]) # 1-based index
         green_band = self.options.image.GetRasterBand(self.options.bands[1])
-        blue_band = self.options.image.GetRasterBand(self.options.bands[1])
+        blue_band = self.options.image.GetRasterBand(self.options.bands[2])
         
         for p in self.options.las:
 


More information about the Liblas-commits mailing list