Skip to content

Commit

Permalink
i.vi: fix PVI formula (OSGeo#1985)
Browse files Browse the repository at this point in the history
* Fix wrong mathematical formula in the PVI index computation in i.vi

* fix OSGeo#1984
  • Loading branch information
pesekon2 authored and ninsbl committed Oct 26, 2022
1 parent 005e99e commit de304b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imagery/i.vi/pvi.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ double p_vi(double redchan, double nirchan)
result = -1.0;
}
else {
result = (sin(1) * nirchan) / (cos(1) * redchan);
result = (sin(1) * nirchan) - (cos(1) * redchan);
}
return result;
}
Expand Down

0 comments on commit de304b0

Please sign in to comment.