Skip to content

Commit

Permalink
Update gridcalculator.rst
Browse files Browse the repository at this point in the history
Added a conditional example
  • Loading branch information
pcav committed Jun 6, 2014
1 parent 126c3d3 commit 86ab4c8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions python/plugins/processing/algs/saga/help/gridcalculator.rst
Expand Up @@ -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
---------

Expand Down

0 comments on commit 86ab4c8

Please sign in to comment.