Skip to content
Permalink
Browse files
Update gridcalculator.rst
Added a conditional example
  • Loading branch information
pcav committed Jun 6, 2014
1 parent 126c3d3 commit 86ab4c8b95e61acc9021cda945b41092d06b6230
Showing with 9 additions and 0 deletions.
  1. +9 −0 python/plugins/processing/algs/saga/help/gridcalculator.rst
@@ -48,6 +48,15 @@ Outputs

- ``Result[Raster]``: The resulting layer.

Example
-------

You can for instance use the Grid Calculator module to flag 0 cells with -1:

ifelse(eq(g1,0), (-1), g2)

The formula reads like "if the cell is equal to zero, then write -1 else write the current value to the output grid".

See also
---------

0 comments on commit 86ab4c8

Please sign in to comment.