Gamma DISP: Reference Manual


float2ascii

ANSI-C program: float2ascii.c

NAME
float2ascii -  Convert float format data to ascii text format

SYNOPSIS
float2ascii <din> <width> <data_out> [loff] [nl]

data_in (input) input data file (float)
width
 number of data values per line
data_out (output) text format data file with spaces between columns
loff
offset lines to start of data (enter - for default: 0)
nl
number of lines (enter - for default: all)

EXAMPLE

float2ascii q 16 q.txt

Converts the float fomat binary data file q  with 16 values per line to a text format file with 16 columns of values.

float2ascii q 16 q.txt 2 14

Converts the float fomat binary data file q  with 16 values per line to a text format file with 16 columns of values. The first two lines of data file q are skipped and 14 lines are processed.

DESCRIPTION

float2ascii
is used to convert float format data such as a DEM into text format representation. The text format is the general exponential format in the printf specification "%13.5e". Each line of the output file is terminated with a newline. White space is used to delimit the columns of the output test file.  The binary data are 4-byte floating point numbers. 

SEE ALSO
ascii2float


© Copyrights for Documentation, and Reference Manual by Gamma Remote Sensing, 2012.
UW, CW, last change 7-Jun-2012.