--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DTI2NTF is a utility to convert raster data in Laser-Scan Digital Terrain Image (DTI) files to the UK National Transfer Format (NTF) release 1.0 or 2.0.
--------------------------------------------------------------------------------
$ DTI2NTF [input-DTI-file-spec(s)] output-NTF-file-spec /qualifiers
Command qualifiers Defaults /[NO]DBNAME /NODBNAME /[NO]DDNAME /DDNAME="DEFAULT_02.00" /[NO]DDATE /NODDATE /DENSITY /DENSITY=1600 /[NO]DONOR /DONOR="Laser Scan: DTI2NTF" /FIELDWIDTH /FIELDWIDTH=10 /[NO]INPUT /NOINPUT /LEVEL /LEVEL=5 /[NO]LOG /NOLOG /[NO]RECIPIENT /NORECIPIENT /SERIAL /SERIAL=0 /VERSION /VERSION=2.0
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Input-DTI-spec
- This specifies the input DTI file name(s). It is the first parameter specified on the command line.
- The input DTI specification may be a file name or a list of file names.
- Any part of the file specification(s) which is not supplied will be taken from the default specification: 'LSL$DTI:DTI.DTI'.
This parameter is not required if the /INPUT qualifier is given containing a list of input DTI files.
Output-NTF-spec
- This specifies the destination of the generated NTF dataset. It is the second parameter on the command line.
- The output-NTF-spec may be a filename or the name of a foreign mounted magnetic tape device.
--------------------------------------------------------------------------------
/DBNAME=
- Specifies the name of the database from where the data is coming.
- Note: only the first 20 characters of the name will be used.
/DDNAME=
- Specifies the Data Dictionary name.
- Note: only the first 20 characters of the name will be used.
/DDATE=
- Specifies the release date of the data dictionary in the form yyyymmdd.
/DENSITY=
- If the output NTF dataset is being written to a magnetic tape device,
/DENSITY selects the tape density to use. The specified number must be 800,
1600 or 6250, with a default value of 1600 bpi.
/DONOR=
- Specifies the name of the person/organisation sending the data.
- Note: only the first 20 characters of the name will be used.
/INPUT=filename
- /INPUT specifies a filename containing a list of DTI files to be used to
create the NTF dataset. The qualifier can be used instead of specifying the DTI
filenames on the command line, and is especially useful when the NTF dataset is
to be created from a large number of DTI files which would be impractical to
type at the command line.
- Note: If DTI files are specified on the command line, and the /INPUT
qualifier is used, DTI2NTF will assume that the intention was only to use the
_/INPUT qualifier.
/FIELDWIDTH=
- Specifies the field width in characters to use to store each data
element in the NTF dataset from the DTI file.
- Note: the FIELDWIDTH is defined as 10 at level 0 and cannot be modified.
At level 4 or 5, the field width will be calculated from the DTI maximum or
minimum data values. If the value supplied with the /FIELDWIDTH is smaller than
that needed to store the data elements, DTI2NTF will warn the user and attempt
to continue.
/LEVEL=
- Selects the NTF level at which the NTF dataset is to be produced. The
number specified must be either 0, 4 or 5.
- Note: The NTF raster formats as defined in NTF release 1.0 or 2.0 are
the only versions supported by DTI2NTF, at level 0 or 4 for Version 1.0 and
at level 5 for Version 2.0.
/LOG
- /LOG Enables the display of informational messages. Unless the /OUTPUT
qualifier is supplied, messages are written to SYS$OUTPUT.
- Note: When the /LOG qualifier is used, if SYS$OUTPUT is found to be a
terminal device, then in addition to the informational messages being output,
DTI2NTF will display a percentage running total showing how much of the DTI file
it has processed.
/RECIPIENT=
- Specifies the name of the person/organisation receiving the data.
- Note: only the first 20 characters of the name will be used.
/SERIAL=
- Specifies the serial number of the dataset. This is especially useful if
the NTF dataset is part of a group of datasets.
/VERSION=
- Selects the NTF version at which the NTF dataset is to be produced. The
number specified must be either 1.0 or 2.0.
- Note: The NTF raster formats as defined in NTF release 1.0 or 2.0 are
the only versions supported by DTI2NTF, at level 0 or 4 for Version 1.0 and
at level 5 for Version 2.0.
/NODBNAME (default)
/DDNAME="DEFAULT_02.00" (default)
/NODDATE (default)
/DENSITY=1600 (default)
/DONOR="Laser-Scan: DTI2NTF" (default)
/NOINPUT (default)
/FIELDWIDTH=10 (default)
/LEVEL=5 (default)
/NOLOG (default)
/NORECIPIENT (default)
/SERIAL=0 (default)
/VERSION=2.0 (default)
--------------------------------------------------------------------------------
DTI2NTF is a utility to convert data in Laser-Scan Digital Terrain Image (DTI) file(s) to the UK National Transfer Format (NTF) Level 0 or in a subset of Level 4 used by the Ordnance Survey of the UK for distributing terrain models. It is defined by the OS data-dictionary: "OS_DTM_DDICT_1.0" of 8th May 1987. It also converts to NTF Version 2.0 level 5 (BS 7567).
The NTF dataset may be written to a disk file or a magnetic tape.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
$ DTI2NTF /LOG INPUT1,INPUT2,INPUT3 OUTPUT<CR>
%DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT1.DTI for read %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT2.DTI for read %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT3.DTI for read %DTI2NTF-W-MISC, FIELD_WIDTH = 0 is too small -DTI2NTF-I-MISC, Using calculated width 8 %DTI2NTF-I-NTFOPEN, NTF file OUTPUT.NTF opened for output %DTI2NTF-I-MISC, Header written to NTF dataset %DTI2NTF-I-MISC, NTF dataset will be version 1.00, level 4 %DTI2NTF-I-MISC, Processing file "1" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT1.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, Processing DTI matrix 100.00% Complete %DTI2NTF-I-MISC, Processing file "2" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT2.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, Processing DTI matrix 100.00% Complete %DTI2NTF-I-MISC, Processing file "3" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT3.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, processing DTI matrix 100.00% Complete ELAPSED: 0 00:00:07.06 CPU: 0:00:01.15 BUFIO: 16 DIRIO: 10 FAULTS: 110
In this example the input DTI files were given as INPUT1,INPUT2 and INPUT3. These are parsed and any part of the filenames that were missing are taken from LSL$DTI:DTI.DTI. The NTF dataset is to be written to "OUTPUT" which will be parsed and called OUTPUT.NTF.
The input DTI files are opened and DTI2NTF calculates the minimum "field-width" that will be needed for the data to be output correctly. Since the field-width was not specified in the command line, it was set at zero. The program detects that the field width is not sufficient and sets it to the value it calculated. A volume header is written to the NTF dataset and processing of the input DTI files is begun.
Each file is opened and a corresponding header entry is written to the NTF dataset. The program then processes the DTI matrix and writes the information to the NTF dataset. If the program is run on a terminal, a running total of how much of the input DTI file has been processed, is displayed at the bottom of the screen. When the counter reaches 100.00_% the program has completed processing of the current DTI file.
The creation of the NTF dataset is completed successfully.
$ DTI2NTF /LOG /LEV=0 INPUT1,INPUT2,INPUT3 OUTPUT<CR>
%DTI2NTF-I-NTFOPEN, NTF File OUTPUT.NTF opened for output %DTI2NTF-I-MISC, Header written to NTF dataset %DTI2NTF-I-MISC, NTF dataset will be version 1.00, level 0 %DTI2NTF-I-MISC, Processing file "1" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT1.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, Processing DTI matrix 100.00% Complete %DTI2NTF-I-MISC, Processing file "2" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT2.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, Processing DTI matrix 100.00% Complete %DTI2NTF-I-MISC, Processing file "3" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT3.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, Processing DTI matrix 100.00% Complete ELAPSED: 0 00:00:07.06 CPU: 0:00:01.15 BUFIO: 16 DIRIO: 10 FAULTS: 110
In this instance the output dataset is to be written at level 0. Since the field width for the data cannot be redefined, the program does not attempt to calculate the minimum field width required. The remainder of the conversion is similar to the example defined above. The conversion is a success.
$ TYPE INPUT.LIS INPUT1 INPUT2.DTI INPUT3.DTM $ DTI2NTF /LOG /INPUT=input.lis /LEV=0 OUTPUT <CR> %DTI2NTF-I-INFILOPN, Opening file INPUT.LIS for read %DTI2NTF-I-NTFOPEN, NTF File "OUTPUT.NTF" opened for output %DTI2NTF-I-MISC, Header written to NTF dataset %DTI2NTF-I-MISC, NTF dataset will be version 1.00, level 0 %DTI2NTF-I-MISC, Processing file "1" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT1.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, processing DTI matrix 100.00% Complete %DTI2NTF-I-MISC, Processing file "2" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT2.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, processing DTI matrix 100.00% Complete %DTI2NTF-I-MISC, Processing file "3" of "3" %DTI2NTF-I-INFILOPN, Opening file LSL$DTI:INPUT3.DTI for read %DTI2NTF-I-MISC, GridHeader record written %DTI2NTF-I-MISC, processing DTI matrix 100.00% Complete ELAPSED: 0 00:00:07.06 CPU: 0:00:01.15 BUFIO: 16 DIRIO: 10 FAULTS: 110
In this example the names for the input DTI files were taken from the file INPUT.LIS which was specified with the /INPUT qualifier. The DTI files are processed in the same way as in the above examples and the conversion is a success.
See dti2ntfmsg.html generated from DTI2NTFMSG.RNO.