--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
NTF2DTI is a utility to convert raster data written in the UK National Transfer Format (NTF) to a Laser-Scan Digital Terrain Image (DTI) file.
--------------------------------------------------------------------------------
$ NTF2DTI Input NTF-file-spec [Output DTI-file-spec]
Command qualifiers Defaults /HEADER_TYPE /HEADER_TYPE = LSLA /[NO]LOG /NOLOG /[NO]OS /OS /[NO]OUTPUT = file-spec /NOOUTPUT /[NO]PROJECTION see text /SECTION = integer /SECTION=0
--------------------------------------------------------------------------------
Input-NTF-file-spec
- This specifies the input NTF dataset. It is the first parameter specified on the DCL command line.
- The input NTF specification may be a file name or the name of a device.
Output-DTI-file-spec
- This is an optional parameter which specifies the output DTI file. It is not prompted for and is the second parameter on the DCL command line.
- If the parameter is present on the command line, then any part of the file specification which is not supplied will be taken from the default specification: 'LSL$DTI:DTI.DTI'.
- If the parameter is not present on the command line, then the output DTI file names will be taken from the section header records [SECHREC] in the input NTF dataset.
--------------------------------------------------------------------------------
/HEADER_TYPE = header-type (default LSLA)
- Specifies the header format of the output DTI file. By default an LSLA free format header is created. Unless /NOPROJECTION is specified, the header will include a projection record.
Valid keywords are UHL1, TED4, or LSLA. If a UHL1 format is selected, the header will be created with a blank UHL record. If a TED4 format is selected, the header will be created with blank DSI and ACC records. A projection record will only be written if output is to an LSLA DTI file.
/LOG
/NOLOG (default)
- /LOG Selects the output of informational messages derived from the NTF header. Unless the /OUTPUT qualifier is supplied, messages are written to SYS$OUTPUT.
/OS (default)
/NOOS
- Selects OS style data. This command tells the program to expect data in a level 4 format as used by OS to transfer raster data.
/OUTPUT = file-spec
/NOOUTPUT (default)
- Directs the output of informational messages to the specified file. This qualifier is used in conjunction with the /LOG qualifier.
/PROJECTION (default if a LSLA header is selected)
/NOPROJECTION (default)
- Selects the output of projection information derived from the NTF header records to a DTI projection record. This option is only valid if output is to a DTI file with a LSLA header record.
/SECTION = integer
- Enables the user to select which section of a multi-section NTF dataset is read. For example, /SECTION = 2 will select the second section encountered. By default, all sections of the NTF dataset are read.
If /SECTION = 0 is specified then NTF2DTI will read all sections in the NTF dataset. A separate DTI file will be created for each section.
If an output-DTI-file-spec was given, then all the files will be given the same name, but will have different version numbers.
If no output-DTI-file-spec was given, then the output file names will be taken from the section header records in the NTF dataset.
NTF2DTI is a utility to convert data written in UK National Transfer Format (NTF) Level 0 (Version 1.0 fixed length records), in a subset of Level 4 (Version 1.1 variable length records), or Level 5 (Version 2.0 variable length records) to a Laser-Scan Digital Terrain Image (DTI) file. The NTF data may exist on NTF format magnetic tape or disc file.
Datasets on NTF format magnetic tape may be datasets which span multiple volumes. When NTF2DTI reads the last record of a volume it will detect whether the dataset continues on to another volume. If so NTF2DTI will automatically dismount the tapedrive and prompt the user to load the next volume before pressing the RETURN key to continue. When the user has loaded the next volume and pressed RETURN, NTF2DTI automatically mounts the tapedrive and continues.
PLEASE NOTE that if the user presses RETURN more than once before the next volume is loaded the program will hang up and will need to be interrupted and restarted with the first volume in the dataset.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
$ NTF2DTI /LOG MSA0: IOW <CR>
%NTF2DTI-I-NTFOPEN, NTF file MSA0: opened %NTF2DTI-I-NTFDATA, NTF data at level 4, version 1.00 %NTF2DTI-I-DTIOPEN, DTI file "LSL$DTI:IOW.DTI" opened File : LSL$DTI:IOW.DTI Header : LSLA Data: WORD Units are Metres Matrix Coverage SW: 440000.00 80000.00 NE: 460000.00 100000.00 Matrix Interval E: 50.00 N: 50.00 Value Range : 0 to 235 Spheroid : 9 (Airy) Projection : 101 (UK national grid) Units : 2 (Metres) Local Origin : 440000.000 (Eastings) 80000.000 (Northings) Sample values : 50.000 (Eastings) 50.000 (Northings) %NTF2DTI-I-DTICLOSED, DTI file closed ELAPSED: 0 00:05:53.24 CPU: 0:02:36.93 BUFIO: 4 DIRIO: 501 FAULTS: 990
In this example the input NTF dataset is to be read from the device MSA0:. The output DTI file was given as IOW, this will be parsed and called LSL$DTI:IOW.DTI. The /LOG qualifier means that the additional information is printed on the screen. It is assumed that an LSLA header is required with a projection record and that the NTF data was supplied by the Ordnance Survey. The conversion is completed successfully.
$ NTF2DTI /LOG IOW_RELIEF <CR>
%NTF2DTI-I-MISC, no output DTI file specified %NTF2DTI-I-MISC, filenames will be taken from SECHREC %NTF2DTI-I-NTFOPEN, NTF file IOW_RELIEF.NTF opened %NTF2DTI-I-NTFDATA, NTF data at level 4, version 1.00 %NTF2DTI-I-DTIOPEN, DTI file "LSL$DTI:TERRAIN.DTI" opened File : LSL$DTI:TERRAIN.DTI Header : LSLA Data: WORD Units are Metres Matrix Coverage SW: 440000.00 80000.00 NE: 460000.00 100000.00 Matrix Interval E: 50.00 N: 50.00 Value Range : 0 to 235 Spheroid : 9 (Airy) Projection : 101 (UK national grid) Units : 2 (Metres) Local Origin : 440000.000 (Eastings) 80000.000 (Northings) Sample values : 50.000 (Eastings) 50.000 (Northings) %NTF2DTI-I-DTICLOSED, DTI file closed ELAPSED: 0 00:05:53.24 CPU: 0:02:36.93 BUFIO: 4 DIRIO: 501 FAULTS: 990
In this example the input NTF dataset is to be read from the file IOW_ RELIEF.NTF.The /LOG qualifier means that the additional information is printed on the screen. It is assumed that an LSLA header is required with a projection record and that the NTF data was supplied by the Ordnance Survey.
Since no output DTI file was specified, appropriate messages inform the user that the output DTI filenames will be taken from the SECHREC records in the NTF dataset. The conversion is completed successfully.
$ NTF2DTI /PROJECTION /HEADER_TYPE=TED4 HERE:NTFFILE DTIFILE<CR> %NTF2DTI-E-NOTLSLA, Projection records with LSLA header only ELAPSED: 0 00:00:01.73 CPU: 0:00:00.22 BUFIO: 0 DIRIO: 0 FAULTS: 96
This is an incorrect command line. A TED4 style header was requested but the /PROJECTION qualifier was also given. As TED4 headers cannot have a projection record an error was flagged.
$ NTF2DTI/OUTPUT=DTILIST/LOG/HEADER=TED4 MTA0: DUA0:[IAIN]DTIMAP <CR> %LSLLIB-I-LOGOPNOUT, log file DTILIST.LOG opened for write %NTF2DTI-I-NTFOPEN, NTF file MTA0: opened %NTF2DTI-I-NTFDATA, NTF data at level 4, version 1.00 %NTF2DTI-I-DTIOPEN, DTI file "DUA0:[IAIN]DTIMAP.DTI" opened File : DUA0:[IAIN]DTIMAP.DTI Header : TED4 Data: WORD Units are Metres Matrix Coverage SW: 440000.00 80000.00 NE: 460000.00 100000.00 Matrix Interval E: 50.00 N: 50.00 Value Range : 0 to 235 %NTF2DTI-I-DTICLOSED, DTI file closed ELAPSED: 0 00:07:53.20 CPU: 0:02:31.95 BUFIO: 9 DIRIO: 517 FAULTS: 1243
$ TYPE DTILIST.LOG <CR>
This command line also specifies a TED4 style header but does not request a projection record so none is written. The LOG option is used once more and in addition the log file option /OUTPUT is used. The output file DTILIST.LOG is shown above. This run was completed successfully.
See ntf2dtimsg.html generated from NTF2DTIMSG.RNO.