[GRASS-user] Error with pansharpening

Vishal Mehta vishalm1975 at gmail.com
Wed Feb 23 12:02:49 PST 2022


Thanks Markus,

It's 7.8.2
g.version -rge

version=7.8.2
date=2019
revision=3900fb114
build_date=2019-12-11
build_platform=x86_64-w64-mingw32
build_off_t_size=8
libgis_revision=00000
libgis_date="?"
proj=6.2.1
gdal=3.0.2
geos=3.8.0
sqlite=3.29.0

I did see your email recently about 7.8.7..
I could just try version 8?

-V



[image: image.png]

On Wed, Feb 23, 2022 at 11:56 AM Markus Neteler <neteler at osgeo.org> wrote:

> Hi Vishal,
>
> On Wed, Feb 23, 2022 at 8:22 PM Vishal Mehta <vishalm1975 at gmail.com>
> wrote:
> >
> > Hi all,
> >
> > I'm using GRASS 7.8 on WIndows 10, and trying out some of the Landsat
> routines.
>
> Which version do you precisely use?
>
> g.version -rge
>
> Is it 7.8.6 or older?
>
> Markus
>
> PS: Just a few minutes ago I released 7.8.7 :-)
>        https://github.com/OSGeo/grass/releases/tag/7.8.7
>       (Windows and other binaries aren't ready yet)
>
> >
> > I'm getting an error on pan sharpening, at the very end of the
> processing: and i see some temp files have been created. is there a way to
> fix this? Thanks, Vishal
> > ---
> > Wed Feb 23 11:14:22 2022)
> > i.pansharpen red=Refl_3 at PERMANENT green=Refl_2 at PERMANENT
> blue=Refl_1 at PERMANENT
> pan=LC08_L1TP_044033_20180225_20180308_01_T1_B8 at PERMANENT
> output=brovey_pansharpen method=brovey bitdepth=8
> > Using 8bit image channels
> > Performing pan sharpening with hi res pan image: 15.000000
> > Pan channel/intensity histogram matching using linear regression
> > Histogram matching...
> > Traceback (most recent call last):
> >   File "C:\PROGRA~1\QGIS3~1.10\apps\grass\grass78/scripts/i.
> > pansharpen.py", line 632, in <module>
> >     main()
> >   File "C:\PROGRA~1\QGIS3~1.10\apps\grass\grass78/scripts/i.
> > pansharpen.py", line 257, in main
> >     brovey(pan, ms1, ms2, ms3, out, pid, sproc)
> >   File "C:\PROGRA~1\QGIS3~1.10\apps\grass\grass78/scripts/i.
> > pansharpen.py", line 315, in brovey
> >     panmatch1 = matchhist(pan, ms1, outname)
> >   File "C:\PROGRA~1\QGIS3~1.10\apps\grass\grass78/scripts/i.
> > pansharpen.py", line 552, in matchhist
> >     stats = stats_out.communicate()[0].split('\n')[:-1]
> > TypeError: a bytes-like object is required, not 'str'
> > (Wed Feb 23 11:14:31 2022) Command finished (9 sec)
> ...
>


-- 
Vishal K. Mehta, PhD
Sr. Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616
www.sei-us.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20220223/1c4f7899/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 15541 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20220223/1c4f7899/attachment-0001.png>


More information about the grass-user mailing list