--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DEM2DTI is a utility to convert a USGS DEM (U.S Geological Survey, Digital Elevation Model) data file held on tape or disk into a Laser-Scan DTI (Digital Terrain Image) disk file.
--------------------------------------------------------------------------------
$ DEM2DTI DEM-file-spec DTI-file-spec
Command qualifiers Defaults /[NO]LOG /NOLOG /[NO]VALIDATE /NOVALIDATE /[NO]HEADER /NOHEADER /BLOCKSIZE = integer /BLOCKSIZE = 4096
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Input-DEM-file-spec
- specifies the input DEM file. If a magtape device name is given (e.g. MUA0:) the DEM is read from the tape mounted on that device. Otherwise the file specification is assumed to be a disk file and any part of the specification which is not supplied will be taken from the default: 'SYS$DISK:.DEM;0'.
Output-DTI-file-spec
- specifies the output DTI file. Any part of the file specification which is not supplied will be taken from the default specification: 'LSL$DTI:.DTI;0'.
--------------------------------------------------------------------------------
/LOG
/NOLOG (default)
- /LOG selects the output of informational messages derived from the DEM and DTI headers. Messages are written to SYS$OUTPUT.
/VALIDATE
/NOVALIDATE (default)
- Performs a validation check on the elevation data written to the DTI file. If a datum is encountered which is not within the range read from the DEM type A header record then a warning message is output followed by an informational message giving the value of the bad datum.
/HEADER
/NOHEADER (default)
- If /HEADER is specified then DEM2DTI expects to find a tape header terminated by an end-of-file before the start of the DEM. The default is to read the DEM from the beginning of the tape.
/BLOCKSIZE = integer (default = 4096)
- Specifies the size of the physical blocks on the DEM tape. The value must be in the range 1024 - 8192 in steps of 1024 bytes. The default is 4096 byte blocks.
--------------------------------------------------------------------------------
DEM2DTI is a utility to convert data from a Digital Elevation Model (DEM) supplied either as a tape (distributed by the U.S. Geological Survey) or as a disk file to a Laser-Scan Digital Terrain Image (DTI) file. Both 7.5-minute and 1-degree coverage DEM's are supported.
The output DTI file is written with an LSLA type header and a projection record which contain detailed information about the Digital Elevation Model. The elevation units of the DTI file are always in metres whereas the ground units depend on the type of DEM being read. For a 7.5-minute DEM (1:24000 scale) the units are normally in metres and the coordinate system is either Universal Transverse Mercator or State Plane. For a 1-degree DEM (1:250000 scale) the units are arc-seconds in the geographic (Latitude-Longitude) coordinate system.
No user input is necessary to determine the type of DEM as all information required is contained in the DEM type A and B header records. If reading from tape then the size of the physical blocks and the presence of a tape volume header record must be known. The /BLOCKSIZE and /HEADER qualifiers are provided to override the defaults.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
$ DEM2DTI/LOG/BLOCKSIZE=1024 MUB1: HOQUIAM <CR>
Initializing tape for read - Please wait. Scanning DEM file to determine size of map Reading type A record from DEM file %DEM2DTI-I-DEMFILNAM, DEM map name is "HOQUIAM - E WA,OR NL10-05E" %DEM2DTI-I-DEMLVLCODE, DEM level code is 1 -DEM2DTI-I-ONEDEGDEM, 1-minute DEM Creating DTI file LSL$DTI:HOQUIAM.DTI;0 with LSLA type header %DEM2DTI-I-DTICRMAT, DTI file created with matrix x:1201, y:1201 %DEM2DTI-I-DTIOPEN, DTI file "LSL$DTI:HOQUIAM.DTI;0" opened File : LSL$DTI:HOQUIAM.DTI;0 Header : LSLA Data: WORD Units are DTI matrix values Matrix Coverage SW: 1 1 NE: 1201 1201 Matrix Interval E: 1 N: 1 Value Range : 7 to 2544 SW corner - Latitude: 46 00 00.000N, Longitude: 123 00 00.000W Spheroid : 5 (World Geodetic System 72 (WGS 72)) Projection : 100 (Geographic (ie Lat and Long)) Units : 3 (seconds of arc) Local origin : 165600.000 (Latitude) -442800.000 (Longitude) Sample values : 3.000 (Latitude) 3.000 (Longitude) Rewinding tape - Please wait. Initialising DTI data area Reading DEM file for transfer to DTI file Reading type A record from DEM file Reading type B records from DEM file Writing profile 50 at coordinate x:-442656.0, y:165600.0 Writing profile 100 at coordinate x:-442506.0, y:165600.0 Writing profile 150 at coordinate x:-442356.0, y:165600.0 Writing profile 200 at coordinate x:-442206.0, y:165600.0 Writing profile 250 at coordinate x:-442056.0, y:165600.0 Writing profile 300 at coordinate x:-441905.96875, y:165600.0 Writing profile 350 at coordinate x:-441756.0, y:165600.0 Writing profile 400 at coordinate x:-441606.0, y:165600.0 Writing profile 450 at coordinate x:-441456.0, y:165600.0 Writing profile 500 at coordinate x:-441306.0, y:165600.0 Writing profile 550 at coordinate x:-441156.0, y:165600.0 Writing profile 600 at coordinate x:-441006.0, y:165600.0 Writing profile 650 at coordinate x:-440856.0, y:165600.0 Writing profile 700 at coordinate x:-440705.96875, y:165600.0 Writing profile 750 at coordinate x:-440556.0, y:165600.0 Writing profile 800 at coordinate x:-440405.96875, y:165600.0 Writing profile 850 at coordinate x:-440256.0, y:165600.0 Writing profile 900 at coordinate x:-440106.0, y:165600.0 Writing profile 950 at coordinate x:-439956.0, y:165600.0 Writing profile 1000 at coordinate x:-439806.0, y:165600.0 Writing profile 1050 at coordinate x:-439656.0, y:165600.0 Writing profile 1100 at coordinate x:-439506.0, y:165600.0 Writing profile 1150 at coordinate x:-439356.0, y:165600.0 Writing profile 1200 at coordinate x:-439205.96875, y:165600.0 %DEM2DTI-I-DTICLOSED, DTI file closed ELAPSED: 0 00:17:30.92 CPU: 0:12:24.83 BUFIO: 12 DIRIO: 9694 FAULTS: 10815
This example reads a 1-degree DEM from a tape which has a blocksize of 1024 bytes and is mounted (/FOREIGN) on the tape drive MUB1:. The /LOG qualifier displays detailed information about the DEM and the output DTI file. The output is written to the default directory LSL$DTI.
$ DEM2DTI/LOG/BLOCKSIZE=8192 MUB1: VONORE <CR>
Initializing tape for read - Please wait. Scanning DEM file to determine size of map Reading type A record from DEM file %DEM2DTI-I-DEMFILNAM, DEM map name is "VONORE" %DEM2DTI-I-DEMLVLCODE, DEM level code is 1 -DEM2DTI-I-SVNMINDEM, 7.5-minute DEM Reading type B records from DEM file ...record 50 ...record 100 ...record 150 ...record 200 ...record 250 ...record 300 ...record 350 Creating DTI file LSL$DTI:VONORE.DTI;0 with LSLA type header %DEM2DTI-I-DTICRMAT, DTI file created with matrix x: 391, y: 474 %DEM2DTI-I-DTIOPEN, DTI file "LSL$DTI:VONORE.DTI;0" opened File : LSL$DTI:VONORE.DTI;0 Header : LSLA Data: WORD Units are metres Matrix Coverage SW: 749070.00 3931800.00 NE: 760770.00 3945990.00 Matrix Interval E: 30.00 N: 30.00 Value Range : 238 to 421 Spheroid : 0 (Clarke 1866) Projection : 1 (Universal Transverse Mercator) Zone : 16 Units : 2 (metres) Local origin : 749070.000 (Eastings) 3931800.000 (Northings) Sample values : 30.000 (Eastings) 30.000 (Northings) Rewinding tape - Please wait. Initialising DTI data area Reading DEM file for transfer to DTI file Reading type A record from DEM file Reading type B records from DEM file Writing profile 50 at coordinate x:750540.0, y:3931830.0 Writing profile 100 at coordinate x:752040.0, y:3931860.0 Writing profile 150 at coordinate x:753540.0, y:3931890.0 Writing profile 200 at coordinate x:755040.0, y:3931950.0 Writing profile 250 at coordinate x:756540.0, y:3931980.0 Writing profile 300 at coordinate x:758040.0, y:3932040.0 Writing profile 350 at coordinate x:759540.0, y:3932070.0 %DEM2DTI-I-DTICLOSED, DTI file closed ELAPSED: 0 00:03:36.06 CPU: 0:02:30.94 BUFIO: 12 DIRIO: 311 FAULTS: 1278
The input spec in this case is the same as previously but a different tape is read with a blocksize of 8192 bytes. The DEM is a 7.5-minute, 1:24000 map and the output DTI file is written to the default LSL$DTI directory. The /LOG qualifier again displays detailed information contained in the DEM and in the output DTI file header.
$ DEM2DTI/LOG ZYCOR ZYCOR <CR>
%DEM2DTI-I-DEMOPEN, DEM file "SYS$DISK:ZYCOR.DEM;0" opened Scanning DEM file to determine size of map Reading type A record from DEM file %DEM2DTI-I-DEMFILNAM, DEM map name is "ZYCOR" %DEM2DTI-I-DEMLVLCODE, DEM level code is 1 -DEM2DTI-I-SVNMINDEM, 7.5-minute DEM Reading type B records from DEM file ...record 50 ...record 100 ...record 150 ...record 200 ...record 250 ...record 300 Creating DTI file SYS$DISK:ZYCOR.DTI;0 with LSLA type header %DEM2DTI-I-DTICRMAT, DTI file created with matrix x: 335, y: 464 %DEM2DTI-I-DTIOPEN, DTI file "SYS$DISK:ZYCOR.DTI;0" opened File : SYS$DISK:ZYCOR.DTI;0 Header : LSLA Data: WORD Units are metres Matrix Coverage SW: 529890.00 4899510.00 NE: 539910.00 4913400.00 Matrix Interval E: 30.00 N: 30.00 Value Range : 1460 to 2686 Spheroid : 0 (Clarke 1866) Projection : 1 (Universal Transverse Mercator) Zone : 18 Units : 2 (metres) Local origin : 529890.000 (Eastings) 4899510.000 (Northings) Sample values : 30.000 (Eastings) 30.000 (Northings) Initialising DTI data area Reading DEM file for transfer to DTI file Reading type A record from DEM file Reading type B records from DEM file Writing profile 50 at coordinate x:531360.0, y:4899510.0 Writing profile 100 at coordinate x:532860.0, y:4899510.0 Writing profile 150 at coordinate x:534360.0, y:4899540.0 Writing profile 200 at coordinate x:535860.0, y:4899540.0 Writing profile 250 at coordinate x:537360.0, y:4899540.0 Writing profile 300 at coordinate x:538860.0, y:4899540.0 %DEM2DTI-I-DEMCLOSED, DEM file closed %DEM2DTI-I-DTICLOSED, DTI file closed ELAPSED: 0 00:04:45.78 CPU: 0:02:17.40 BUFIO: 10 DIRIO: 516 FAULTS: 893
This example reads a DEM from a disk file, the input file-spec being parsed against the default SYS$DISK:.DEM. The output is to LSL$DTI. Information on the DEM and DTI file is given via the /LOG qualifier.
$ DEM2DTI ZYCOR ZYCOR <CR>
Scanning DEM file to determine size of map Reading type A record from DEM file Reading type B records from DEM file Creating DTI file LSL$DTI:ZYCOR.DTI;0 with LSLA type header Initialising DTI data area Reading DEM file for transfer to DTI file Reading type A record from DEM file Reading type B records from DEM file ELAPSED: 0 00:03:09.30 CPU: 0:02:08.38 BUFIO: 10 DIRIO: 275 FAULTS: 855
This example is identical to the previous case except the /LOG qualifier is missing and hence the default of /NOLOG is used. Brief information is output to reassure the user.
See dem2dtimsg.html generated from DEM2DTIMSG.RNO.