I’m using GRASS 7.8 on WIndows 10, and trying out some of the Landsat routines.
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
···
Vishal K. Mehta, PhD
Sr. Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616 www.sei-us.org
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@PERMANENT green=Refl_2@PERMANENT blue=Refl_1@PERMANENT pan=LC08_L1TP_044033_20180225_20180308_01_T1_B8@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)
Essentially, after downloading the Landsat 8 OLI scene:
Copy blue, green and red channels rasters so that the GRASS module for converting to reflectance can work
Convert DN to reflectance
i.enhance.colors
pansharpen with Landsat band 8
This last step is where I haven’t yet succeeded. Note that i did not convert the DN to reflectance for band 8. Could that be the problem? Note also that i was using older Grass versions for step 2 and 3.
This is the Grass version i’m trying now:
···
Vishal K. Mehta, PhD
Sr. Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616 www.sei-us.org