[GRASS-user] i.spectral error

Markus Neteler neteler at osgeo.org
Fri Jun 3 08:00:11 EDT 2011


2011/6/3 Gaspar Reyes Póndigo <gos47 at hotmail.com>:
> Hi, Dear  grass-user  colleague
>
> I want obtain a spectral response of four images with i.spectral, but when
> run the code, this send me a error. I have gnuplot version 4.4
> (installed from macport). How to can i solve this error? Thank in advance
> i.spectral -i -m raster=Acrf_b1,Acrf_b2,Acrf_2010_b3,Acrf_2010_b4
> output=Spectralresponce.png
> # THE CODE
> Buttons:
> Left:   where am i
> Middle: draw to/from here
> Right:  quit this
>              EAST:             NORTH:
>    731739.14835165   1758715.54945055
>    731893.26923077   1755787.25274725
> set data style lines  # THIS IS THE ERROR  MESSAGE
>     ^
> "spectrum.gnuplot", line 10: Unrecognized option.  See 'help set'.

Yes: the correct syntax is this:

set style data lines

I have fixed it in all GRASS versions.
In your local copy, you can simply apply this change with a text
editor, even in the installed version since it is just a script:

(the line numbers are at the left side, the fix is easy to do).
http://trac.osgeo.org/grass/changeset/46545

Thanks for catching it,
Markus


More information about the grass-user mailing list