Gamma LAT: Reference Manual


takecut

ANSI-C program: takecut.c

NAME
takecut - extract data values along a line or vertical cut of a float data file.

SYNOPSIS
takecut <data_in> <width> <report> <mode> <pos> [pr_flag]

<data_in> (input) input data file (float)
<width> samples per row of data_in
<report> (output) text file containing extracted values
[mode] data extraction mode (default = 0)
  0 : extract values along a line
  1 : extract values along a vertical cut

[pos] line or across-track sample number (starting with 0)
[pr_flag]  print option:
   0: print values at all positions (default)
   1: print only positions with valid data (data != 0.0)

EXAMPLES

takecut 03781_25458.disp 2456 disp_profile.dat 0 1000

Extract values from the displacement map 03781_25458.disp at line 1000.  The first line of the file is line 0.
The extracted profile is written out to the report file as sample number  data value pairs, one pair per line.

takecut 03781_25458.disp 2456 disp_profile.dat 1 2000

Extract values from the displacement map 03781_25458.disp at  range sample position  2000.  This is a vertical cut of the
data. The extracted profile is written out to the report file as line number, data value pairs, one pair per line.

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

AVAILABILITY
Uses ISP type definition file typedef_ISP.h.

DESCRIPTION
The programs takecut allow extracting values along a horizontal or vertical line in a data file consisting of 4-byte float (real*4). The output values are written to a report file specified on the command line as coordinate, data value pairs, one pair per line. The sampling mode can either be to select either a vertical or horizontal line through the data.

OPTIONS
Data values of 0.0 can be interpreted as missing data or not based on the value of the pr_flag parameter.

SEE ALSO
typedef_ISP.h. display.h.

DIAGNOSTICS
All messages are generally self-explanatory.


© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 2004.
UW, CW, TS, last change 19-Nov-2004.