<< GetRasterValue | Raster analysis | PutRasterValue >>

CLaRiNet 0.1 beta >> Raster analysis > PutFlowDirValue

# PutFlowDirValue

Puts values at specified locations (records) in an existing flow direction grid.

### Calling Sequence

    PutRasterValue ( handle_fdr , CELLS , VALUES , DirCodes )

### Arguments

handle_fdr

  integer: handle on the flow direction grid

CELLS

  Matrix containing the record numbers (absolute reference in the flow direction grid, as returned by `XY2rec`) to be modified

VALUES

  Matrix of size `size(CELLS)` containing the values to be put at the specified locations

DirCodes

  3 x 3 matrix containing the codification of the 8 possible flow directions. ESRI convention is [ 32 , 64 , 128 ; 16 , -9999 , 1 ; 8 , 4 , 2 ]

### Description

Puts values at specified locations (records) in an existing flow direction grid.

### Examples

### See Also

- XY2rec, CreateFlowDirFromBinary, GetFlowDirValue

### Authors

- Nicolas LE MOINE

<< GetRasterValue | Raster analysis | PutRasterValue >>