[GRASS-dev] [GRASS GIS] #2098: i.vi gari wrong formula?

Yann Chemin ychemin at gmail.com
Wed Oct 9 11:57:33 PDT 2013


>From the code:

result = (nirchan - (greenchan - (bluechan - redchan)))/(nirchan -
(greenchan - (bluechan + redchan)));



On 10 October 2013 00:07, GRASS GIS <trac at osgeo.org> wrote:

> #2098: i.vi gari wrong formula?
>
> -----------------------+----------------------------------------------------
>  Reporter:  kristinah  |       Owner:  grass-dev@…
>      Type:  defect     |      Status:  new
>  Priority:  normal     |   Milestone:  6.4.4
> Component:  Default    |     Version:  unspecified
>  Keywords:             |    Platform:  Unspecified
>       Cpu:  All        |
>
> -----------------------+----------------------------------------------------
>  The formula for GARI in the manual
>  (http://grass.osgeo.org/grass70/manuals/i.vi.html) seems to be wrong. As
>  it is now, the result would always be 1.
>
>  It is
>  "
>  GARI = ( nirchan - (greenchan-(bluechan - redchan))) /
>  ( nirchan- (greenchan-(bluechan - redchan)))
>  "
>
>  It should be (e.g. according to
>  http://www.indexdatabase.de/db/i-single.php?id=363)
>  "
>  GARI = ( nirchan - (greenchan-(bluechan - redchan))) /
>  ( nirchan- (greenchan+(bluechan - redchan)))
>  "
>
>  As the formula in the manual seems to be taken from code, the code might
>  be wrong as well. I did not test the function, only read the manual
>  online.
>
> --
> Ticket URL: <https://trac.osgeo.org/grass/ticket/2098>
> GRASS GIS <http://grass.osgeo.org>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev




-- 
----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20131010/29a47446/attachment.html>


More information about the grass-dev mailing list