[GRASS-user] Convert landsat for pansharpening

Andrea Peri aperi2007 at gmail.com
Wed Jul 1 00:54:59 PDT 2015


Hi,

Following the hint of Anna (use the python file) I have success to
start the script.

But I have some error.
More probably I insert wrong values.

Infact the script ask me the
"high resolution panchromatic image" . I insert the B8 from landsat8
that is the high resolution image.
after the script ask for the "Low resolution Multispectral images".
Here I need to insert the three images : B4,B3 and B2 of landsat8.
But I'm not sure how to insert them in a combo-list so I click three
time in this sequence: B4 B3 B2" and see they are added one after the
other.

I hope this was the correct sequence because AFAIK in the L8 the red
channel is the B4, green=B3 and blue=B2

However after that insert I click on execute and the plugin report this error.

(Wed Jul 01 09:52:49 2015)
i.fusion.hpf pan=LC80160352013134LGN03_B8 at andrea
msx=LC80160352013134LGN03_B4 at andrea,LC80160352013134LGN03_B3 at andrea,LC80160352013134LGN03_B2 at andrea
suffix=hpf
Traceback (most recent call last):
  File "D:\progetti\149-gestione-immagini-landsat\i.fusion
.hpf-master\i.fusion.hpf.py", line 595, in <module>
    sys.exit(main())
  File "D:\progetti\149-gestione-immagini-landsat\i.fusion
.hpf-master\i.fusion.hpf.py", line 326, in main
    g.message("|! Region's resolution matched to Pan's
({p})".format(p=panres))
  File "C:\MY-PRO~1\osgeo4w\apps\grass\grass-7.0.1RC1\etc\py
thon\grass\pygrass\modules\interface\module.py", line 584,
in __call__
    return self.run()
  File "C:\MY-PRO~1\osgeo4w\apps\grass\grass-7.0.1RC1\etc\py
thon\grass\pygrass\modules\interface\module.py", line 681,
in run
    G_debug(1, self.get_bash())
  File "C:\MY-PRO~1\osgeo4w\apps\grass\grass-7.0.1RC1\etc\py
thon\grass\pygrass\modules\interface\env.py", line 32, in
G_debug
    debug_level = get_debug_level()
  File "C:\MY-PRO~1\osgeo4w\apps\grass\grass-7.0.1RC1\etc\py
thon\grass\pygrass\modules\interface\env.py", line 25, in
get_debug_level
    debug = get_env().get('DEBUG')
  File "C:\MY-PRO~1\osgeo4w\apps\grass\grass-7.0.1RC1\etc\py
thon\grass\pygrass\modules\interface\env.py", line 19, in
get_env
    for k, v in [row.split(':') for row in grc if row]])
ValueError: too many values to unpack
(Wed Jul 01 09:52:50 2015) Comando terminato (1 sec)


So I understand I wrong insert the values.
But I don't understand how the script like to have the values inserted.

Any hint ?

Thx.


2015-06-30 11:19 GMT+02:00 Nikos Alexandris <nik at nikosalexandris.net>:
> * Andrea Peri <aperi2007 at gmail.com> [2015-06-30 10:12:06 +0200]:
>
>> Hi Nikos,
>> unfortunately,
>>
>> I'm not able to compile it on windows.
>> My windows Grass installation come from osgeo4w.
>> and is not vailable the compile environment.
>
> I am sorry.  I simply failed to find the time to upload this in the add-ons from where it
> would should work.
>
> But some people reported it did work on Windows too.
>
> Good luck, Nikos



-- 
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------


More information about the grass-user mailing list