ANSI-C program: dem_xyz.c
NAME
data2xyz - Convert DEM
heights and positions to XYZ triplets of float
SYNOPSIS
dem 2xyz <DEM_par> <data>
<data_xyz>
<DEM_par> | (input) DEM parameter file |
<DEM> | (input) DEM file or constant height value |
<data_xyz> | (output) DEM values in the map projection
converted to Cartesian XYZ coordinates |
EXAMPLE
dem_xyz hector_utm_seg.dem_par hector_utm_seg.dem
hector_utm_seg.xyz
generates triplets of 4-byte float data values with the
format: (X, Y,
Z)
DESCRIPTION
dem_xyz calculates the
Cartesian coordinates of each point in a DEM using the parameters
in the DEM parameter file and the DEM value.
The output format has the same endianness as the input DEM data
and consists of triplets of 4-byte float numbers.
SEE ALSO
DEM_par, typedef_DIFF.h .