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.
|