[GRASS-user] i.segment and i.segment.stats errors

Moritz Lennert mlennert at club.worldonline.be
Thu Oct 11 12:23:10 PDT 2018


On 11/10/18 19:42, Jamille Haarloo wrote:
> Markus, that's great! I will install the latest version and retry. I 
> will report next Monday.
> 
> Thanks Moritz. The spaces and '&' in paths of output files did not give 
> problems before, but I retried without the spaces and '&' just in case.
> i.segment.stats -n --overwrite map=SegmW24IDM4DV4 at LUP1 
> rasters=W2 at LUP1,W4 at LUP1,DV2 at LUP1,DV4 at LUP1,IDM2 at LUP1,IDM4 at LUP1 
> raster_statistics=mean,stddev,variance,coeff_var,first_quart,median,third_quart,perc_90 
> area_measures=compact_circle 
> csvfile=Z:\grass_cmd_output-i.segment.statsSegmWV24IDM4DV4_11okt2018.txt 
> vectormap=VSegmWV24IDM4DV4 processes=4
> Calculating geometry statistics...
> Calculating statistics for raster maps...
> Calculating neighborhood statistics...
> Traceback (most recent call last):
>    File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
> pts/i.segment.stats.py <http://i.segment.stats.py>", line 370, in <module>
>      main()
>    File "C:\Users\haarlooj\AppData\Roaming\GRASS7\addons/scri
> pts/i.segment.stats.py <http://i.segment.stats.py>", line 282, in main
>      quiet=True).splitlines()])
>    File "C:\Program Files\GRASS GIS
> 7.6.svn\etc\python\grass\script\core.py", line 478, in
> read_command
>      return handle_errors(returncode, stdout, args, kwargs)
>    File "C:\Program Files\GRASS GIS
> 7.6.svn\etc\python\grass\script\core.py", line 334, in
> handle_errors
>      returncode=returncode)
> grass.exceptions.CalledModuleError: Module run None
> ['r.neighborhoodmatrix', '--q', '-d',
> 'input=SegmW24IDM4DV4 at LUP1'] ended with error

Try reinstalling r.neighborhoodmatrix with g.extension.

Moritz


More information about the grass-user mailing list