rivdem


rivdem demfile


Description

rivdem scans a RivaFile-formatted digital elevation model (DEM), and computes the minimum, maximum, and average elevation in the file. The file must have TYPE='DEM' and BPP=2. rivdem displays cumulative results for each line of the file as it processes.

Usage

The following listing shows how to run rivdem on 'dem.riv':
% rivheader dem.riv RivaFile: dem.riv LBLSIZE=1024 TYPE='DEM' NL=171 NS=98 BPP=2 SUNFORMAT=1 ... % rivdem dem.riv rivdem dem.riv rivdem v1.0 Aug 9 1995 11:42:13 rivdem: dem.riv's bytes are in Unix order. Band 0: Min = 1289 Max = 2455 Avg = 1869.87 Band 1: Min = 1289 Max = 2691 Avg = 1883.89 Band 2: Min = 1289 Max = 2691 Avg = 1889.51 . . . Band 168: Min = 21 Max = 3202 Avg = 1162.19 Band 169: Min = 21 Max = 3202 Avg = 1158.46 Band 170: Min = 21 Max = 3202 Avg = 1154.67 Min Elevation = 21 Max Elevation = 3202 Avg Elevation = 1154.67 %

See Also

RivaFile Format, rivheader.
Privacy / Copyrights
FIRST GOV   NASA Home Page This page, http://pat.jpl.nasa.gov/RIVA//public/RIVA/rivdem.html, is maintained by Peggy Li and was last modified Friday, 15-Aug-2003 11:54:23 PDT, CL 03-2169
spacer