<< CreateCellTree Managing CLaRiNet data structures: "FloatRaster", "FlowDirGrid" and "CellTree" structures CreateFloatRaster >>

CLaRiNet 0.1 beta >> Managing CLaRiNet data structures: "FloatRaster", "FlowDirGrid" and "CellTree" structures > CreateConstantRaster

CreateConstantRaster

Creates a new raster having the same dimensions as an existing raster and initializes it to a constant.

Calling Sequence

handle_cst = CreateConstantRaster ( handle_src , const )

Arguments

handle_src

integer: handle on the 'source' raster which dimensions are to be taken for the new raster

const

double: value which will be used to fill the new raster (if %nan, then the new raster will be filled with the NODATA value of the source raster)

handle_cst

integer: handle on the newly created raster

Description

Creates a new raster having the same dimensions as an existing raster and initializes it to a constant. Returns a handle on this new raster.

Examples

References

See Also

Authors

<< CreateCellTree Managing CLaRiNet data structures: "FloatRaster", "FlowDirGrid" and "CellTree" structures CreateFloatRaster >>