Gamma LAT: Reference Manual


line_interp

ANSI-C program: line_interp.c

NAME
line_interp - Line interpolation algorithm.

SYNOPSIS
line_interp <input file> <output file> <width>

<input file> input data containing 0.0 values (float)
<output file> output data with 0.0 values replaced (float)
<width> number of samples/row

EXAMPLE
line_interp 1352_1610.hgt 1352_1610.hgt_interp 2500

Replaces 0.0 values of input file using simple line interpolator.

INSTALLATION
Source code line_interp.c in ./src. For compilation adjust and use Makefile: Executable version line_interp in ../bin

AVAILABILITY
Uses ISP type definition file typedef_ISP.h.

DESCRIPTION
line_interp reads the input data line by line and replaces 0.0 values with values determined by a single line interpolation.

The algorithm is fast, but has its limitations because only one data line is used for the interpolation.

NULL values (0.0) are replaced by linear interpolation between the last valid data values before and after the gap.

NULL values (0.0) at the beginning or at the end of a line are replaced with the first and last valid data point of the line, respectively.

OPTIONS
None.

SEE ALSO
typedef_ISP.h, restore_float .

DIAGNOSTICS
All messages are generally self-explanatory.

NOTES
None.


© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 1997.
UW, CW, last change 6-Jan-1997.