--------------------------------------------------------------------------------
REPLACES DTICONVERT is a new utility
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
$ DTICONVERT
--------------------------------------------------------------------------------
DTICONVERT requires no command line qualifiers, but requests information from the user about the input and output DTI files in response to a series of prompts.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The module preserves the original (input) DTI file by always creating a new output file with the requested header and data structure.
The module recognises LSLA, UHL1, TED4, and the historical MIKE and ALVY header structures in the case of the input DTI file, and allows the creation of an output file with a LSLA, UHL1 or TED4 header format. Data conversion is performed on BIT, BYTE, WORD, LONGWORD and REAL formats. Full details of the format of the different DTI headers, and the structure of the data area, are to be found in the DTILIB Reference Manual.
--------------------------------------------------------------------------------
Input Filename > Output Filename > Output Header Type > Header Size (Default = n ) > Only for output DTI files with a LSLA style header. Output Data Type >
--------------------------------------------------------------------------------
The input filename is parsed against the default 'LSL$DTI:DTI.DTI;0'.
If the file is found and successfully opened, confirmation is output to the terminal by printing details from the file header. Included are details of the style of header, and data type.
If the file is not found or cannot be opened, an explanatory system error will be generated, and you will be requested to enter another input filename.
--------------------------------------------------------------------------------
The output filename is parsed against the default 'LSL$DTI:DTI.DTI;0'.
--------------------------------------------------------------------------------
The three options are:
In all cases, the header variables that are common to all DTI headers (ie. x,y data extent, x,y grid intervals and minimum and maximum data values) are copied from the original file to the output file.
--------------------------------------------------------------------------------
A default value 'n' is always supplied, and may be accepted by pressing Return in response to the prompt. If the input DTI file has an LSLA or the now historical ALVY style header, the default value is the same as the input file header length; in other cases the default value is set to the minimum LSLA header length of 32.
The supplied value should be in the range 1 to 32734.
--------------------------------------------------------------------------------
The four options are:
When converting from REAL to a BIT, BYTE, WORD or LONGWORD format, the real value is first converted to the nearest integer, and then truncated as necessary.
When converting to REAL format all data values are floated.
BIT DTI files are only supported by a limited set of programs (DTICONVERT, DTITRANS/DESCRIPTOR, DTIPATCH and LITES2), and only for storage and display. For any sort of processing of BIT datatype files, such as transformation, combination etc., the data should be converted to BYTE datatype using DTICONVERT. This restriction arises from the fact that a byte is the smallest data unit capable of independent manipulation by the VAX computer architecture.
--------------------------------------------------------------------------------
The success of the conversion operation is indicated by printing header details of the output DTI file, and by the termination of the module.
--------------------------------------------------------------------------------