--------------------------------------------------------------------------------
REPLACES MATRIX module DPATCH
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
$ DTIPATCH
--------------------------------------------------------------------------------
DTIPATCH is a prompt driven program. Command input is expected in response to the different DTIPATCH screen prompts.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The first part of the DTI header, which is common to all types of DTI file headers may be edited. The fields in this part of the header define the the size of the matrix (number of columns and rows), the matrix x and y grid intervals and the matrix data range (minimum and maximum data values). In addition for a DTI files with a LSLA type header, the values defining the arrangement of the data within the file (ie data order corner and direction values) may be edited.
All modules in the Laser Scan packages DTMCREATE, MATRIX and TVES that utilise DTI files, will normally correctly set the header values on file creation or closure. It is envisaged therefore, that DTIPATCH will only be used in the event of the corruption of the DTI header. If the frequent use of DTIPATCH is found to be required, it is indication of a serious problem in either a Laser Scan package module, or a utility developed by a customer. In the former case Laser Scan should be informed of the problem.
When using DTIPATCH, the user should be aware of the consequences of changing the header values. In particular, if the matrix x and y size values are incorrectly set, then it may not be possible for Laser Scan modules to open the file, since data extent consistency checks are performed by the DTI input / output library DTILIB. No consistency checks, other than whether the data minimum and maximum values are valid for the type of data held in the file, and that data order values are within range, are carried out by the module itself.
--------------------------------------------------------------------------------
Enter DTI Filename > Corner of Data Origin > LSLA type header only Data Direction > LSLA type header only Number of Columns > Number of Rows > X Grid Interval > Y Grid Interval > Minimum Data Value > Maximum Data Value >
--------------------------------------------------------------------------------
Any part of the file specification not supplied is taken from the default 'LSL$DTI:DTI.DTI', although if no file specification is supplied you will be reprompted for a file name.
If the file is found and successfully opened, the current header values are displayed on the screen. The header values shown are the ones that may be edited using DTIPATCH.
--------------------------------------------------------------------------------
Valid responses are 0 for SW, 1 for NW, 2 for NE and 3 for SE.
If you wish to leave the value unchanged, then press
--------------------------------------------------------------------------------
Valid responses are 0 for clockwise, and 1 for anticlockwise.
If you wish to leave the value unchanged, then press
--------------------------------------------------------------------------------
If you wish to leave the value unchanged, then press
--------------------------------------------------------------------------------
If you wish to leave the value unchanged, then press
--------------------------------------------------------------------------------
If you wish to leave the value unchanged, then press
--------------------------------------------------------------------------------
If you wish to leave the value unchanged, then press
--------------------------------------------------------------------------------
DTIPATCH will validate the number entered to ensure that in the case of bit, byte or word data, the number is in a valid range. If the file contains bit data, a value of either 0 or 1 is required; for byte data a value in the range 0 through 255 is required, while for word data a value in the range -32768 to 32767 is required.
If you wish to leave the value unchanged, then press
--------------------------------------------------------------------------------
DTIPATCH will validate the number entered to ensure that in the case of bit, byte or word data, the number is in a valid range. If the file contains bit data, a value of either 0 or 1 is required; for byte data a value in the range 0 through 255 is required, while for word data a value in the range -32768 to 32767 is required.
If you wish to leave the value unchanged, then press
Following the input of a response to this final prompt, DTIPATCH displays
the new and old header values, and proceeds to write the new values to the
file.
$ DTIPATCH DTIPATCH This module allows the first part of the DTI header to be edited. You will be prompted for a filename, followed by a series of header values. To leave a header value unchanged, press RETURN ******************************************** * WARNING - NO CONSISTENCY CHECKS ARE MADE * ******************************************** Enter DTI filename > TESTExisting Header Values ------------------------------------ Corner of Data Origin : 0 (SW) Data Direction : 0 (clockwise) Number of Columns : 301 Number of Rows : 251 X Grid Interval : 100.00 Y Grid Interval : 100.00 Minimum Data Value : 0 Maximum Data Value : 851 Corner of Data Origin > Data Direction > Number of Columns > Number of Rows > X Grid Interval > 200 Y Grid Interval > 200 Minimum Data Value > Maximum Data Value > New Values Old Values --------------------------------------------------- Corner of Data Origin : 0 0 Data Direction : 0 0 Number of Columns : 301 301 Number of Rows : 251 251 X Grid Interval : 200.00 100.00 Y Grid Interval : 200.00 100.00 Minimum Data Value : 0 0 Maximum Data Value : 851 851 Writing new values to header now ELAPSED: 0 00:00:09.28 CPU: 0:00:00.69 BUFIO: 46 DIRIO: 4 FAULTS: 70
If the cause of the error cannot be traced by the user, and Laser-Scan are consulted, then the output file should be preserved to facilitate diagnosis.