Help for DEMLOGA
PURPOSE:
DEMLOGA logs into VICAR format DEM (Digital Elevation Model) files obtained
from the USGS. Specifically, this program will log usgs DEM FILES that are in
the format described in the USGS National Mapping Division Open-file Report
86-004 "Standards for Digital Elevation Models".
This format differs from the ones known to VDEMLOG and DTTLOG; it involves
unlabelled tapes or datasets with fixed length blocksize of some multiple of
1024 bytes. All data are stored as ASCII characters in 1024 byte logical
records.
***UPDATE***
The program has been modified to handle datasets with carriage return
delimited records. These files may be identified by their having a
dataset length that is a multiple of 1025, rather than 1024. To process
this type of file, use the parameter BLOCK=0
DEMLOGA is not normally run directly, but is instead called by the
procedure DEMLOG. Running DEMLOGA outside the procedure DEMLOG yields an image
with west at the top, rather than north.
Only a single file was available for testing this program, so the
correctness of this code could not be checked for many of the possible data
forms. If programming errors exist, they will most likely be in the values
placed in the VICAR label, rather than in the image itself. Examine the VICAR
label carefully before proceeding. Report all problems to Ron Alley, x40751.
EXECUTION:
Example
DEMLOGA TAPE/4 OUTIMAGE
This command will log the 4th file on the specified drive's tape from
DEM-format into VICAR format. No parameter or SIZE field is allowed.
DEMLOG TAPE/2 TOPO BLOCK=19
This command will log the second file onthe specified drive's tape. BLOCK=19
implies that there are 19 x 1024 = 19,456 bytes per block on the tape.
WRITTEN BY: Ron Alley, November, 1986
LATEST REVISION: April, 1997
COGNIZANT PROGRAMMER: Ron Alley
PARAMETERS:
INP
Input unlabelled file
OUT
Output file
BLOCK
Blocking factor on tape
(bytes per record/1024)
For <CR> delimited disk
files, use BLOCK=0
.END
See Examples:
Cognizant Programmer: