<< CreateFlowDirFromBinary Managing CLaRiNet data structures: "FloatRaster", "FlowDirGrid" and "CellTree" structures CropFlowDir >>

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

CreateRasterFromBinary

Creates and initializes a single-precision floating-point raster from the content of a binary file.

Calling Sequence

handle_ras = CreateRasterFromBinary ( binfile , TYPE [, name] )

Arguments

binfile

character string: path of the binary file to be read. The extension can be anything, but a header file with the same root and with the extension ".hdr" must be present in the same directory.

TYPE

character string: type of the data to be read and converted to single-precision

'c' : char

'uc' : unsigned char

's' : short int

'us' : unsigned short int

'i' : int

'ui' : unsigned int

'f' : float

'l' : long int

'ul' : unsigned long int

'd' : double

Name

(optional) character string

handle_ras

integer: handle on the newly created raster

Description

Creates and initializes a single-precision floating-point raster from a binary file (e.g., ESRI Binary Grid .flt). Any numerical type is supported and will be converted to single precision.

Returns a handle on the object created.

Examples

See Also

Authors

<< CreateFlowDirFromBinary Managing CLaRiNet data structures: "FloatRaster", "FlowDirGrid" and "CellTree" structures CropFlowDir >>