[GRASS-dev] [GRASS GIS] #3820: Error i.pansharpen in grass76 relbranch

GRASS GIS trac at osgeo.org
Thu Apr 18 14:04:32 PDT 2019


#3820: Error i.pansharpen in grass76 relbranch
--------------------------+---------------------------------
 Reporter:  veroandreo    |      Owner:  grass-dev@…
     Type:  defect        |     Status:  new
 Priority:  normal        |  Milestone:  7.6.2
Component:  Imagery       |    Version:  svn-releasebranch76
 Keywords:  i.pansharpen  |        CPU:  Unspecified
 Platform:  Unspecified   |
--------------------------+---------------------------------
 When compiling grass76_relbranch I got an indentation error in
 i.pansharpen at line 257
 (https://trac.osgeo.org/grass/browser/grass/branches/releasebranch_7_6/scripts/i.pansharpen/i.pansharpen.py#L257)

 {{{
 File "/home/veroandreo/software/grass76_release/dist.x86_64-pc-linux-
 gnu/scripts/i.pansharpen", line 256
     pr.wait()
     ^
 IndentationError: unexpected indent
 }}}

 I entered the directory of i.pansharpen, run make, still the same error.
 So I open the code and locally moved lines 257-263 to the left.
 Compilation of i.pansharpen went fine, no errors. But when I try to run
 the examples in the manual page for Landsat 7 in NC Location, I get:

 {{{
 GRASS 7.6.2svn (nc_spm_08_grass7):~ > i.pansharpen
 red=lsat7_2002_30 at PERMANENT   green=lsat7_2002_20 blue=lsat7_2002_10
 pan=lsat7_2002_80 method=ihs   output=lsat7_2002_ihs
 Traceback (most recent call last):
   File "/home/veroandreo/software/grass76_release/dist.x86_64-pc-linux-
 gnu/scripts/i.pansharpen", line 402, in <module>
     main()
   File "/home/veroandreo/software/grass76_release/dist.x86_64-pc-linux-
 gnu/scripts/i.pansharpen", line 135, in main
     if bits == 8:
 NameError: global name 'bits' is not defined
 }}}

 Is this related to the backport in r74385?

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3820>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list