rivinfo


rivinfo RivaFile


Description

rivinfo reads RivaFile's header and interprets its contents. As such, it nicely complements rivheader, which displays the header without interpretation.

rivinfo is also useful for checking whether a header contains all of the data it needs to.

Usage

The following listing shows how to run rivinfo on 'dem.riv'. Note that while 'dem.riv' is revealed to be a valid DEM, it is not a valid terrain image, and that rivinfo explains why not:
% rivinfo dem.riv RivaFile: dem.riv Type: DEM Projection: CYLINDRICAL Valid Image------------------------ Samples: 98 Lines: 171 Bytes per Pixel: 2 Not a Valid Terrain Image---------- BPP=2; should be at least 3 Valid DEM-------------------------- North: 38.4167 deg North latitude South: 33.6667 deg North latitude West: -117.917 deg East longitude East: -114.667 deg East longitude Pixel Size: 30.9 meters Elevation Unit: 1 meters Elevation offset: 100 meters Byte Order: Unix %

For comparison, here is the output of rivheader:

% rivheader dem.riv RivaFile: dem.riv LBLSIZE=1024 TYPE='DEM' NL=171 NS=98 BPP=2 SUNFORMAT=1 PROJECTION='CYLINDRICAL' LONG0=-117.917 LAT0=38.4167 LONG1=-114.667 LAT1=33.6667 PIXMETERS=30.9 ZMETERS=1 ZDELTA=100 %

See Also

RivaFile Format, rivheader.

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