Hi all,
i tried i.landsat.rgb on GRASS 6.3 but I have this error message and the
color tables of the three raster are setted with all values white.
I obtained this three brov raster from i.fusion.brovey applied on
Landsat images.
i.landsat.rgb -p red=brov.red@PERMANENT green=brov.green@PERMANENT
blue=brov.blue@PERMANENT strength=90
Processing [brov.red@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 36.9801: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.7707: integer
expression expected
Processing [brov.green@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 39.6825: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.1483: integer
expression expected
Processing [brov.blue@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 24.107: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 13.1111: integer
expression expected
Color table for <brov.red@PERMANENT> set to rules
Color table for <brov.green@PERMANENT> set to rules
Color table for <brov.blue@PERMANENT> set to rules
the attached patch should fix the problem with floating point arithmetic.
Martin
2008/1/17, Leonardo Lami <lami@faunalia.it>:
Hi all,
i tried i.landsat.rgb on GRASS 6.3 but I have this error message and the
color tables of the three raster are setted with all values white.
I obtained this three brov raster from i.fusion.brovey applied on
Landsat images.
i.landsat.rgb -p red=brov.red@PERMANENT green=brov.green@PERMANENT
blue=brov.blue@PERMANENT strength=90
Processing [brov.red@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 36.9801: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.7707: integer
expression expected
Processing [brov.green@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 39.6825: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.1483: integer
expression expected
Processing [brov.blue@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 24.107: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 13.1111: integer
expression expected
Color table for <brov.red@PERMANENT> set to rules
Color table for <brov.green@PERMANENT> set to rules
Color table for <brov.blue@PERMANENT> set to rules
I am responding to an old (Jan 2008) post in the hopes someone can help me
out a bit. I am trying to use i.landsat.rgb, and am finding that after I do
so, the colour tables of the rasters I am using are changed to white (same
problem as Leonardo Lami had below).
I am very much a beginner grass user. Can someone please tell me how to use
the patch that Martin Landa provided below? It sounds like it will address
my problem, but I do not know how to load it / apply it. I am running Grass
6.3 through the plug-in on QGIS 0.11.0.
Thanks,
Tim
Martin Landa wrote:
Hi,
the attached patch should fix the problem with floating point arithmetic.
Martin
2008/1/17, Leonardo Lami <lami@faunalia.it>:
Hi all,
i tried i.landsat.rgb on GRASS 6.3 but I have this error message and the
color tables of the three raster are setted with all values white.
I obtained this three brov raster from i.fusion.brovey applied on
Landsat images.
i.landsat.rgb -p red=brov.red@PERMANENT green=brov.green@PERMANENT
blue=brov.blue@PERMANENT strength=90
Processing [brov.red@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 36.9801: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.7707: integer
expression expected
Processing [brov.green@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 39.6825: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 15.1483: integer
expression expected
Processing [brov.blue@PERMANENT] ..
/usr/lib/grass/scripts/i.landsat.rgb: line 138: [: 24.107: integer
expression expected
/usr/lib/grass/scripts/i.landsat.rgb: line 141: [: 13.1111: integer
expression expected
Color table for <brov.red@PERMANENT> set to rules
Color table for <brov.green@PERMANENT> set to rules
Color table for <brov.blue@PERMANENT> set to rules