[GRASS-user] error in g.extension while installing i.fusion.hpf in windows

that's the reason of g.extension failing

downloading the zip-file (see link above) and copying the files into the corresponding folders in

C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\

should help.

now tested in this way:

g.region -p -a raster=lsat7_2002_80@PERMANENT align=lsat7_2002_80@PERMANENT
-------------------
i.fusion.hpf pan=lsat7_2002_80@PERMANENT msx=lsat7_2002_10@PERMANENT,lsat7_2002_20@PERMANENT,lsat7_2002_30@PERMANENT,lsat7_2002_40@PERMANENT suffix=_hpf
|! Region's resolution matched to Pan's (14.25)
Processing image: lsat7_2002_10@PERMANENT
|1 Determining ratio of low to high resolution

Retrieving image resolutions

Resolution ratio low (28.500) to high (14.250): 2.0

|2 High Pass Filtering the Panchromatic Image
|3 Upsampling (bilinearly) low resolution image
|4 Weighting the High-Pass-Filtered image (HPFi)

Weighting = StdDev(MSx) / StdDev(HPFi) * Modulating Factor

StdDev of <lsat7_2002_10@PERMANENT>: 20.702
StdDev of HPFi: 257.949
Modulating Factor: 0.25

|5 Adding weighted HPFi to upsampled image
|+ Quantile scaling of Pansharpened image to lsat7_2002_10@PERMANENT
Processing image: lsat7_2002_20@PERMANENT
|1 Determining ratio of low to high resolution

Retrieving image resolutions

Resolution ratio low (28.500) to high (14.250): 2.0

|2 High Pass Filtering the Panchromatic Image
|3 Upsampling (bilinearly) low resolution image
|4 Weighting the High-Pass-Filtered image (HPFi)

Weighting = StdDev(MSx) / StdDev(HPFi) * Modulating Factor

StdDev of <lsat7_2002_20@PERMANENT>: 23.325
StdDev of HPFi: 257.949
Modulating Factor: 0.25

|5 Adding weighted HPFi to upsampled image
|+ Quantile scaling of Pansharpened image to lsat7_2002_20@PERMANENT
Processing image: lsat7_2002_30@PERMANENT
|1 Determining ratio of low to high resolution

Retrieving image resolutions

Resolution ratio low (28.500) to high (14.250): 2.0

|2 High Pass Filtering the Panchromatic Image
|3 Upsampling (bilinearly) low resolution image
|4 Weighting the High-Pass-Filtered image (HPFi)

Weighting = StdDev(MSx) / StdDev(HPFi) * Modulating Factor

StdDev of <lsat7_2002_30@PERMANENT>: 34.711
StdDev of HPFi: 257.949
Modulating Factor: 0.25

|5 Adding weighted HPFi to upsampled image
|+ Quantile scaling of Pansharpened image to lsat7_2002_30@PERMANENT
Processing image: lsat7_2002_40@PERMANENT
|1 Determining ratio of low to high resolution

Retrieving image resolutions

Resolution ratio low (28.500) to high (14.250): 2.0

|2 High Pass Filtering the Panchromatic Image
|3 Upsampling (bilinearly) low resolution image
|4 Weighting the High-Pass-Filtered image (HPFi)

Weighting = StdDev(MSx) / StdDev(HPFi) * Modulating Factor

StdDev of <lsat7_2002_40@PERMANENT>: 20.479
StdDev of HPFi: 257.949
Modulating Factor: 0.25

|5 Adding weighted HPFi to upsampled image
|+ Quantile scaling of Pansharpened image to lsat7_2002_40@PERMANENT
|! Original Region restored

Hint, rebalancing colors (via i.colors.enhance) may improve appearance of RGB composites!

WARNING: No data base element files found
(Fri Mar 19 21:27:40 2021) Befehl ausgeführt (15 Sek)

the script itself (downloaded from https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/) works.

now we have to solve the g.extension issue.

kind regards
helli

That's great Helmut :slight_smile:

Nikos

---

On 2021-03-19 22:39, Helmut Kudrnovsky wrote:
..

the script itself (downloaded from
https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/) works.

now we have to solve the g.extension issue.

kind regards
helli

Thanks both!

So the solution in the meantime is to:

  1. download the zip file from https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/
  2. unzip and remove the pychache folder
  3. copy everything to C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\

Is that correct?

I hope the g.extension problem can be fixed soon? @Helli would you mind opening an issue for that, please?

Cheers,
Vero

El sáb, 20 mar 2021 a las 23:33, <nik@nikosalexandris.net> escribió:

That’s great Helmut :slight_smile:

Nikos


On 2021-03-19 22:39, Helmut Kudrnovsky wrote:

the script itself (downloaded from
https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/) works.

now we have to solve the g.extension issue.

kind regards
helli

So the solution in the meantime is to:

1. download the zip file from https://wingrass.fsv.cvut.cz/grass78/x86_64/addons/latest/
2. unzip and remove the __pychache__ folder
3. copy everything to C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\

yes; the contents of following folders

D:\dl\i.fusion.hpf>dir /b
bin
docs
etc
scripts

into the corresponding folders in C:\Users\YourUserName\AppData\Roaming\GRASS7\addons\

@Helli would you mind opening an issue for that, please?

done: https://github.com/OSGeo/grass/issues/1477

ciao
helli