[GRASS-user] Error with i.colors.enhance on Windows Grass 7.21

Hi All,

I am getting an error using i.colors.enhance on Windoes Grass 7.2.1 which crashes the session.

I get the following error in the command window.

Any advice would be greatly appreciated.

Cheers
Andrew

((Sat Jul 15 14:25:12 2017)
i.colors.enhance red=s1_vv_10@PERMANENT green=s1_vh_10@PERMANENT blue=s1_10_diff@PERMANENT
Processing…
Process Process-3:
Traceback (most recent call last):
File “C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py”, line 258, in
_bootstrap
self.run()
File “C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py”, line 114, in
run
self._target(*self._args, **self._kwargs)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\scripts[i.colors.enhance.py](http://i.colors.enhance.py)”, line 105, in
get_percentile_mp
result = get_percentile(map, percentiles)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\scripts[i.colors.enhance.py](http://i.colors.enhance.py)”, line 89, in
get_percentile
percentiles=values, quiet=True)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py”, line 461, in
read_command
return handle_errors(returncode, stdout, args, kwargs)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py”, line 329, in
handle_errors
returncode=returncode)
CalledModuleError: Module run None [‘r.quantile’, ‘–q’,
‘input=s1_10_diff@PERMANENT’, ‘percentiles=2,98’] ended with
error
Process ended with non-zero return code 255. See errors in
the (error) output.
Process Process-1:
Traceback (most recent call last):
File “C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py”, line 258, in
_bootstrap
self.run()
File “C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py”, line 114, in
run
self._target(*self._args, **self._kwargs)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\scripts[i.colors.enhance.py](http://i.colors.enhance.py)”, line 105, in
get_percentile_mp
result = get_percentile(map, percentiles)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\scripts[i.colors.enhance.py](http://i.colors.enhance.py)”, line 89, in
get_percentile
percentiles=values, quiet=True)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py”, line 461, in
read_command
return handle_errors(returncode, stdout, args, kwargs)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py”, line 329, in
handle_errors
returncode=returncode)
CalledModuleError: Module run None [‘r.quantile’, ‘–q’,
‘input=s1_vv_10@PERMANENT’, ‘percentiles=2,98’] ended with
error
Process ended with non-zero return code 255. See errors in
the (error) output.
Process Process-2:
Traceback (most recent call last):
File “C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py”, line 258, in
_bootstrap
self.run()
File “C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py”, line 114, in
run
self._target(*self._args, **self._kwargs)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\scripts[i.colors.enhance.py](http://i.colors.enhance.py)”, line 105, in
get_percentile_mp
result = get_percentile(map, percentiles)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\scripts[i.colors.enhance.py](http://i.colors.enhance.py)”, line 89, in
get_percentile
percentiles=values, quiet=True)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py”, line 461, in
read_command
return handle_errors(returncode, stdout, args, kwargs)
File “C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py”, line 329, in
handle_errors
returncode=returncode)
CalledModuleError: Module run None [‘r.quantile’, ‘–q’,
‘input=s1_vh_10@PERMANENT’, ‘percentiles=2,98’] ended with
error
Process ended with non-zero return code 255. See errors in
the (error) output.

andrew haywood wrote

Hi All,

I am getting an error using i.colors.enhance on Windoes Grass 7.2.1 which
crashes the session.

I get the following error in the command window.

Any advice would be greatly appreciated.

Cheers
Andrew

((Sat Jul 15 14:25:12 2017)

i.colors.enhance red=s1_vv_10@PERMANENT green=s1_vh_10@PERMANENT
blue=s1_10_diff@PERMANENT
Processing...
Process Process-3:
Traceback (most recent call last):
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py", line 258, in
_bootstrap
    self.run()
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py", line 114, in
run
    self._target(*self._args, **self._kwargs)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\scripts\i.colors.enhance.py", line 105, in
get_percentile_mp
    result = get_percentile(map, percentiles)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\scripts\i.colors.enhance.py", line 89, in
get_percentile
    percentiles=values, quiet=True)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py", line 461, in
read_command
    return handle_errors(returncode, stdout, args, kwargs)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py", line 329, in
handle_errors
    returncode=returncode)
CalledModuleError: Module run None ['r.quantile', '--q',
'input=s1_10_diff@PERMANENT', 'percentiles=2,98'] ended with
error
Process ended with non-zero return code 255. See errors in
the (error) output.
Process Process-1:
Traceback (most recent call last):
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py", line 258, in
_bootstrap
    self.run()
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py", line 114, in
run
    self._target(*self._args, **self._kwargs)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\scripts\i.colors.enhance.py", line 105, in
get_percentile_mp
    result = get_percentile(map, percentiles)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\scripts\i.colors.enhance.py", line 89, in
get_percentile
    percentiles=values, quiet=True)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py", line 461, in
read_command
    return handle_errors(returncode, stdout, args, kwargs)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py", line 329, in
handle_errors
    returncode=returncode)
CalledModuleError: Module run None ['r.quantile', '--q',
'input=s1_vv_10@PERMANENT', 'percentiles=2,98'] ended with
error
Process ended with non-zero return code 255. See errors in
the (error) output.
Process Process-2:
Traceback (most recent call last):
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py", line 258, in
_bootstrap
    self.run()
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\Python27\lib\multiprocessing\process.py", line 114, in
run
    self._target(*self._args, **self._kwargs)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\scripts\i.colors.enhance.py", line 105, in
get_percentile_mp
    result = get_percentile(map, percentiles)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\scripts\i.colors.enhance.py", line 89, in
get_percentile
    percentiles=values, quiet=True)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py", line 461, in
read_command
    return handle_errors(returncode, stdout, args, kwargs)
  File "C:\Program Files (x86)\GRASS GIS
7.2.1\etc\python\grass\script\core.py", line 329, in
handle_errors
    returncode=returncode)
CalledModuleError: Module run None ['r.quantile', '--q',
'input=s1_vh_10@PERMANENT', 'percentiles=2,98'] ended with
error
Process ended with non-zero return code 255. See errors in
the (error) output.

tested here with

System Info
GRASS version: 7.2.1
GRASS SVN revision: r71013
Build date: 2017-05-03
Build platform: x86_64-w64-mingw32
GDAL: 2.1.3
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.17.0
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)

GRASS version: 7.3.svn
GRASS SVN revision: r71251
Build date: 2017-07-10
Build platform: x86_64-w64-mingw32
GDAL: 2.2.1
PROJ.4: 4.9.3
GEOS: 3.5.0
SQLite: 3.17.0
Python: 2.7.5
wxPython: 2.8.12.1
Platform: Windows-8-6.2.9200 (OSGeo4W)

and the example from the manual:

https://grass.osgeo.org/grass73/manuals/i.colors.enhance.html

------
g.region raster=lsat7_2002_10 -p
i.colors.enhance blue=lsat7_2002_10 green=lsat7_2002_20 red=lsat7_2002_30
strength=95
------
it works as expected.

did you set your region to your images? could you test the manual example
with the NC sample data set?

-----
best regards
Helmut
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-i-colors-enhance-on-Windows-Grass-7-21-tp5327995p5328003.html
Sent from the Grass - Users mailing list archive at Nabble.com.