[GRASS-dev] [GRASS GIS] #3820: Error i.pansharpen in grass76 relbranch
GRASS GIS
trac at osgeo.org
Thu Apr 18 14:28:59 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
Resolution: | Keywords: i.pansharpen
CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------
Comment (by veroandreo):
It does work in trunk with no reported errors. However, if I run it in
trunk compiled with python 3 in a virtualenv, I get:
{{{
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
Using 8bit image channels
Performing pan sharpening with hi res pan image: 14.250000
Transforming to IHS color space...
100%
Histogram matching...
100%
Traceback (most recent call last):
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/i.pansharpen", line 632, in <module>
main()
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/i.pansharpen", line 259, in main
ihs(pan, ms1, ms2, ms3, out, pid, sproc)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/i.pansharpen", line 380, in ihs
panmatch = matchhist(pan, target, outname)
File "/home/veroandreo/software/grass7_trunk/dist.x86_64-pc-linux-
gnu/scripts/i.pansharpen", line 552, in matchhist
stats = stats_out.communicate()[0].split('\n')[:-1]
TypeError: a bytes-like object is required, not 'str'
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3820#comment:1>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list