--------------------------------------------------------------------------------
MODULE DTI2TEXT
--------------------------------------------------------------------------------
REPLACES None. DTI2TEXT is a completely new MATRIX utility.
--------------------------------------------------------------------------------
DTI2TEXT is a utility to convert DTI input files into text output files.
$ DTI2TEXT
None, DTI2TEXT is command driven.
--------------------------------------------------------------------------------
On program startup, the following command defaults apply:
ABSOLUTE - enabled.
DIAGNOSTICS - disabled.
NINT - disabled.
PME - disabled.
UNITS - once a DTI file is specified, if it is TED4 or UHL1, DTI type is LATLONG, other DTI types have default units MATRIX.
FORMAT - 8I10 for integer and BYTE, 6I12 for longword integer, 8F10.3 for reals and 40I2 for BIT output.
NULL - once a first input DTI file is specified the null will have one of the following:-
0 if BYTE or BIT type. -32767 if WORD type. 80000000 Hex if LONG type. -1.0E-38 if REAL type.
WINDOW - None specified
--------------------------------------------------------------------------------
DTI2TEXT is a command driven utility which converts the data in a specified DTI file to a text format and outputs that data in records to a text file.
DTI2TEXT converts the DTI file, or window within the specified file, to text output format a column at a time. Each column of values from the input file is split into a series of records of default or user defined format in order of increasing row position. Each record is written as a single line to the output file. A column may thus extend over several lines of the output file. The final record for each column may only be partially filled if the number of values in it is not exactly divisible by the number of fields in each text output record. Each record or line must be of less than 255 characters in length (see description of FORMAT command).
Note that DTI2TEXT is not intended to provide a spatially accurate representation of a DTI file - ie. each DTI column is output as a series of rows in the text file. The MATRIX module DTIEDIT may be used to produce a textual 'picture' of a DTI file.
A single session in DTI2TEXT may involve the conversion of more than one DTI file to a corresponding text file. When each conversion is completed, all the conditions set up to govern it, apart from the files involved and any window specified in the input file, will persist to any subsequent conversions unless explicitly altered using the relevant commands.
Detailed descriptions of the individual commands available are given below.
--------------------------------------------------------------------------------
_@
Take command input from the specified file.
--------------------------------------------------------------------------------
FORMAT: _@file-spec<CR>
--------------------------------------------------------------------------------
Command parameters:
file-spec
The file to be opened and used for command input.
Any parts of the file-spec not supplied for the @ command will be taken from the default specification 'SYS$DISK:[].COM;0'.
--------------------------------------------------------------------------------
DESCRIPTION:
DTI2TEXT offers the facility of command input from an indirect command file. The '@' character preceding a file-spec will cause DTI2TEXT to open and read commands from the specified file until:
Nested command files are not supported (i_.e_. a command file containing an '@' command), although sequential '@' commands are supported when read from SYS$COMMAND.
As an aid to batch log interpretation DTI2TEXT will echo all commands read from an indirect command file.
--------------------------------------------------------------------------------
Messages:
The following messages are specific to the _@ command:
*** WARNING *** "@" must precede a file-spec
*** WARNING *** Indirect file error - returning to terminal input
*** ERROR *** Can't open indirect command file 'file-spec'
--------------------------------------------------------------------------------
Examples:
$ DTI2TEXT<CR>
MATRIX module DTI2TEXT of 13:30:39 18-OCT-87
DTI2TEXT> @PRESETS<CR>
DTI2TEXT> ENABLE DIAGNOSTICS
DTI2TEXT> ENABLE NINT
DTI2TEXT> FILEIN READATA
DTI2TEXT> FILEOUT REALDATA.TXT
DTI2TEXT> UNITS METRES
DTI2TEXT> WINDOW 1 1 100 50
DTI2TEXT> RETURN
DTI2TEXT>
--------------------------------------------------------------------------------
_!
Treat all text to the right of the '!' as a comment.
--------------------------------------------------------------------------------
FORMAT: _! [comment text]
--------------------------------------------------------------------------------
Command parameters:
comment text
text that is to be treated as a comment and which will be excluded from command interpretation.
--------------------------------------------------------------------------------
DESCRIPTION:
An exclamation mark is the standard DTM package comment delimiter. All text (and numbers) which lie to the right of a '!' character are excluded from command interpretation. Comments are useful for annotating command procedures used in batch processing etc_.
--------------------------------------------------------------------------------
Messages: None.
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> _! a comment for the sake of it<CR>
DTI2TEXT> WINDOW 0.0 0.0 900.0 900.0<CR>
--------------------------------------------------------------------------------
DISABLE ABSOLUTE
Disables a previous ENABLE ABSOLUTE command.
--------------------------------------------------------------------------------
FORMAT: DISABLE ABSOLUTE
--------------------------------------------------------------------------------
Command parameters: None.
--------------------------------------------------------------------------------
DESCRIPTION:
DISABLE ABSOLUTE cancels a previous ENABLE ABSOLUTE command. If DISABLE
ABSOLUTE is given, then coordinate values required by the WINDOW
command
supplied in metre or projection units, must be specified as an offset from the
SW corner of the matrix.
By default window values should be specified as absolute coordinates.
--------------------------------------------------------------------------------
Messages: None.
The following error message is specific to the DISABLE command:
*** ERROR *** Specifying command DISABLE Available DISABLE qualifiers are : DIAGNOSTICS NINT PME ABSOLUTE
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> DISABLE ABSOLUTE<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
DISABLE DIAGNOSTICS
Disables a previous ENABLE DIAGNOSTICS command.
--------------------------------------------------------------------------------
FORMAT: DISABLE DIAGNOSTICS
--------------------------------------------------------------------------------
Command parameters: None.
--------------------------------------------------------------------------------
DESCRIPTION:
DISABLE DIAGNOSTICS allows the user to disable a previous ENABLE DIAGNOSTICS command.
--------------------------------------------------------------------------------
Messages: None.
The following error message is specific to the DISABLE command:
*** ERROR *** Specifying command DISABLE Available DISABLE qualifiers are : DIAGNOSTICS NINT PME ABSOLUTE
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> DISABLE DIAGNOSTICS<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
DISABLE NINT
Disables a previous ENABLE NINT command.
--------------------------------------------------------------------------------
FORMAT: DISABLE NINT
--------------------------------------------------------------------------------
Command parameters: None.
--------------------------------------------------------------------------------
DESCRIPTION:
DISABLE NINT allows the user to disable a previous ENABLE NINT command.
--------------------------------------------------------------------------------
Messages:
The following error message is specific to the DISABLE command:
*** ERROR *** Specifying command DISABLE Available DISABLE qualifiers are : DIAGNOSTICS NINT PME ABSOLUTE
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> ENABLE NINT<CR>
DTI2TEXT> DISABLE NINT<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
DISABLE PME
Disables a previous ENABLE PME command.
--------------------------------------------------------------------------------
FORMAT: DISABLE PME
--------------------------------------------------------------------------------
Command parameters: None.
--------------------------------------------------------------------------------
DESCRIPTION:
DISABLE PME allows the user to disable a previous ENABLE PME command.
--------------------------------------------------------------------------------
Messages:
The following messages are specific to the DISABLE and DISABLE PME commands:
*** ERROR *** Specifying command DISABLE Available DISABLE qualifiers are : DIAGNOSTICS NINT PME ABSOLUTE
*** WARNING *** You are not using PME !
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> ENABLE PME<CR>
DTI2TEXT> DISABLE PME<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
ENABLE ABSOLUTE
Selects the use of absolute coordinates values.
--------------------------------------------------------------------------------
FORMAT: ENABLE ABSOLUTE
--------------------------------------------------------------------------------
Command parameters: None.
--------------------------------------------------------------------------------
DESCRIPTION:
If ENABLE ABSOLUTE is given, then coordinate values required by the WINDOW command, supplied in metre or projection units, must be specified as absolute (rather than relative) coordinate values.
For example if the projection indicates U.K. National Grid, then the
WINDOW values may be specified as 6 figure National Grid coordinates.
By default window values should be specified as absolute coordinates.
This option can be disabled using the DISABLE ABSOLUTE command.
--------------------------------------------------------------------------------
Messages:
The following error message is specific to the ENABLE command:
*** ERROR *** Specifying command ENABLE Available ENABLE qualifiers are : DIAGNOSTICS NINT PME ABSOLUTE
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> ENABLE ABSOLUTE<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
ENABLE DIAGNOSTICS
ENABLE DIAGNOSTICS allows the user to enable diagnostic printout.
--------------------------------------------------------------------------------
FORMAT: ENABLE DIAGNOSTICS
--------------------------------------------------------------------------------
Command parameters:_None.
--------------------------------------------------------------------------------
DESCRIPTION:
ENABLE DIAGNOSTICS allows the user to enable diagnostic printout.
Because it is usually used in a batch processing environment, by default DTI2TEXT produces minimal diagnostic printout. If however, the user wishes to receive indications of processing progress and of the effect of windowing on data input, diagnostic printout may be selected with the ENABLE DIAGNOSTICS command.
On a heavily loaded computer it may be reassuring to ENABLE DIAGNOSTICS for the conversion stage of DTI2TEXT processing to indicate progress through the data set. A message indicating the current column being converted is issued at approximately each one tenth of the way through the DTI file.
--------------------------------------------------------------------------------
Messages:
The following error message is specific to the ENABLE command:
*** ERROR *** Specifying command ENABLE Available ENABLE qualifiers are : DIAGNOSTICS NINT PME ABSOLUTE
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> ENABLE DIAGNOSTICS<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
ENABLE NINT
ENABLE NINT allows the user to enable the rounding of real data in the DTI file to the nearest integer prior to output to the text file.
--------------------------------------------------------------------------------
FORMAT: ENABLE NINT
--------------------------------------------------------------------------------
Command parameters: None.
--------------------------------------------------------------------------------
DESCRIPTION:
ENABLE NINT allows the user to enable the conversion of any real data in the DTI file to integer data by rounding to the nearest integer. The rounded numbers will then be output in the same way as integer data from an integer DTI file.
--------------------------------------------------------------------------------
Messages:
The following error message is specific to the ENABLE command:
*** ERROR *** Specifying command ENABLE Available ENABLE qualifiers are : DIAGNOSTICS NINT PME ABSOLUTE
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> ENABLE NINT<CR>
DTI2TEXT> FILEIN REALDATA<CR>
DTI2TEXT> FILEOUT ROUNDED<CR>
DTI2TEXT> GO<CR>
DTI2TEXT> DISABLE NINT<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
ENABLE PME
ENABLE PME enables the PME performance monitor.
--------------------------------------------------------------------------------
FORMAT: ENABLE PME
--------------------------------------------------------------------------------
Command parameters: None.
--------------------------------------------------------------------------------
DESCRIPTION:
The ENABLE PME and DISABLE PME commands are reserved for Laser-Scan use. PME is a code optimisation tool and should be invoked by LSL software personnel only.
ENABLE PME causes the PME_INIT routine to be invoked.
--------------------------------------------------------------------------------
Message:
The following messages are specific to the ENABLE and ENABLE PME commands:
*** ERROR *** Specifying command ENABLE Available ENABLE qualifiers are : DIAGNOSTICS NINT PME ABSOLUTE
*** WARNING *** You are already using PME!
--------------------------------------------------------------------------------
Examples:
--------------------------------------------------------------------------------
FILEIN
Specifies a DTI file that is to be opened and used for data input.
--------------------------------------------------------------------------------
FORMAT: FILEIN file-spec
--------------------------------------------------------------------------------
COMMAND PARAMETERS:
file-spec
The specification of the DTI file to be opened for data input.
Any parts of the file-spec not supplied for the FILEIN command will be taken from the default file specification 'LSL$DTI:DTI.DTI;0'.
--------------------------------------------------------------------------------
DESCRIPTION:
The FILEIN command causes the specified file to be opened and used as an input file to DTI2TEXT. A FILEIN command must be issued before the WINDOW or GO commands will be accepted.
--------------------------------------------------------------------------------
Messages:
The following messages are specific to the FILEIN command:
*** WARNING *** You must specify a file-spec argument to the FILEIN command
*** ERROR *** Unable to interpret input file-spec
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> FILEIN REAL<CR> DTI file LSL$DTI:REAL.DTI;0 opened for read File : LSL$DTI:REAL.DTI;0 Header : LSLA Data: REAL Units are Metres Matrix Coverage SW: 0.00 0.00 NE: 49.00 49.00 Matrix Interval E: 1.00 N: 1.00 Value Range : -5.00 to 326421.00 DTI2TEXT>
--------------------------------------------------------------------------------
FILEOUT
Specifies the file-spec of the text file which is to receive the DTI data.
--------------------------------------------------------------------------------
FORMAT: FILEOUT file-spec
--------------------------------------------------------------------------------
COMMAND PARAMETERS:
file-spec
The file-spec of the text file which is to receive the DTI data.
Any parts of the file-spec not supplied for the FILEOUT command will be taken from the default '.DAT;0'.
--------------------------------------------------------------------------------
DESCRIPTION:
The FILEOUT command enables specification of the text file which is to receive the data.
The FILEOUT command must be issued before the GO command.
--------------------------------------------------------------------------------
Messages:
The following messages are specific to the FILEOUT command:
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> FILEOUT DUA3:[DEMONSTRATION]IDAHO<CR>
Text output file 'file-spec' opened
DTI2TEXT>
--------------------------------------------------------------------------------
FORMAT
Allows the user to specify a format for the text output file records.
--------------------------------------------------------------------------------
FORMAT: FORMAT format
--------------------------------------------------------------------------------
Command parameters:
format
The format in which output is required.
--------------------------------------------------------------------------------
Description:
The FORMAT command allows the user to specify a format for the text output file records (one record per line of the file) in terms of a FORTRAN like format definition.
The syntax of the format definition is :
<number of fields> ["F"|"I"] <field width> ["." number of decimal places]
The format definition will be parsed at the time it is input. It will be checked to make sure that it is compatible with the data in the DTI file, in terms of whether it is real or integer and whether it is wide enough to accommodate the longest number in the file, when the GO command is issued. The maximum record length allowed is 256 characters.
--------------------------------------------------------------------------------
Messages:
Current format is 'format' Enter new format, or press <return> to invoke default (10F8.3 or 10I8). New format, eg 12F6.2 or 8I10 ?
*** ERROR *** Error reading format
*** ERROR *** Illegal user defined format 'format', default format reinstated
With indirect file input:
*** ERROR *** Must specify format with format command
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> FORMAT 20I4<CR>
DTI2TEXT> SHOW FORMAT<CR>
Current user defined format (20I4)
DTI2TEXT>
--------------------------------------------------------------------------------
_GO
Carry out the conversion from the specified DTI input file to the specified text output file according to the conditions set up with any other commands issued prior to the GO command.
--------------------------------------------------------------------------------
FORMAT: GO
--------------------------------------------------------------------------------
Command parameters: None
--------------------------------------------------------------------------------
DESCRIPTION:
This will carry out the conversion from a previously specified DTI input file to a previously specified text output file under the conditions set up using any other commands, for example to specify a diagnostic printout or rounding of real input data to the nearest integer.
Before the conversion takes places, checks will be carried out to ensure that certain preconditions hold. For example that the input and output files have been opened, and that any user defined or default format is compatible with the data range and type in the DTI file.
A single session with DTI2TEXT may involve a number of successive conversions of different DTI files. In such cases, all the conditions set up to govern one conversion will persist when it is complete, with the exceptions of the files specified and any window defined within the input file.
--------------------------------------------------------------------------------
Messages:
Messages connected with checking the format :
*** ERROR *** Require real format for real data
*** ERROR *** Require integer format for rounded real data
*** ERROR *** Require integer format for integer data
*** ERROR *** Text field format too narrow, please redefine
Other messages
*** ERROR *** Please check that text output file is open
*** ERROR *** Please check that DTI input file is open
*** ERROR *** Error in selecting output file 'file-spec'
*** ERROR *** Error reading column 'integer' of DTI file 'file-spec'
*** ERROR *** Error closing text output file 'file-spec'
*** ERROR *** Error closing DTI input file 'file-spec'
*** ERROR *** Unrecognised datatype in DTI file
*** ERROR *** Cannot write line to output file 'file-spec'
In addition to these there are the diagnostic printout messages which will be given if diagnostics are enabled. These consist of the file specifications of the input and output files, the header details of the DTI file, and messages indicating which group of columns, of those being processed, has been reached by the conversion command.
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> FILEIN TST DTI2TEXT> FILEOUT TST DTI2TEXT> GO<CR> Converting from DTI file LSL$DTI:TST.DTI;0 to text file TST.DAT. Details of input DTI file : File : LSL$DTI:TST.DTI;0 Header : LSLA Data: WORD Units are DTI Matrix Values Matrix Coverage SW: 1 1 NE: 71 71 Matrix Window SW: 1 1 NE: 50 50 Matrix Interval E: 1 N: 1 Value Range : 139 to 192 Converting columns 1 to 4 Converting columns 5 to 8 Converting columns 9 to 12 Converting columns 13 to 16 Converting columns 17 to 20 Converting columns 21 to 24 Converting columns 25 to 28 Converting columns 29 to 32 Converting columns 33 to 36 Converting columns 37 to 40 Converting columns 41 to 44 Converting columns 45 to 48 Converting columns 49 to 50 DTI2TEXT>
--------------------------------------------------------------------------------
HELP
Give help on a subject
--------------------------------------------------------------------------------
FORMAT: HELP subject
--------------------------------------------------------------------------------
Command parameters:
subject
The subject on which help is required.
--------------------------------------------------------------------------------
Description:
The HELP command looks the rest of the line up in the MATRIX HELP library. This library contains a brief summary of the operation of each command.
The information is looked up in the DTI2TEXT section of the MATRIX help library, LSL$HELP:MATRIX.HLB.
--------------------------------------------------------------------------------
Messages:
Where required, warning messages are output via the VMS LBR$OUTPUT_HELP utility.
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> HELP ENABLE NINT<CR>
DTI2TEXT
ENABLE
NINT
When a DTI file containing real data is to be converted to a text file, it may be required that the data is rounded to the nearest integer and then output. The ENABLE NINT command causes this to be done is issued prior to the GO command.
--------------------------------------------------------------------------------
NULL
Allows specification of null post value to be substituted in the output text file in place of standard null values found in the input DTI file.
--------------------------------------------------------------------------------
FORMAT: NULL value
--------------------------------------------------------------------------------
Command parameters:
value
The new null value which will be output to the text file. This must lie within a range appropriate to the input DTI file data type:
+-----------+-----------+--------------------+ | Minimum | Maximum | DTI data type | +-----------+-----------+--------------------+ | 0 | 255 | BYTE | | -32767 | 32767 | WORD INTEGER | | -2E31 | 2E31-1 | LONG INTEGER | | -1.0E38 | 1.0E38 | REAL_*4 | +-----------+-----------+--------------------+
By default a value of 0 is used for BYTE type DTI files, -32767 for WORD type DTI files and 80000000 Hex for LONGWORD and -1.0E-38 for REAL type DTI files.
--------------------------------------------------------------------------------
DESCRIPTION:
Causes all occurrences of the standard null value in DTI files to be replaced by the user specified null value in the output file. Just entering the command with no value parameter causes the standard null value to be restored.
--------------------------------------------------------------------------------
Messages:
Default value restored
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> NULL -1<CR>
Null value set to -1
DTI2TEXT> NULL<CR>
Default value restored
DTI2TEXT>
--------------------------------------------------------------------------------
PAUSE
Pauses DTI2TEXT execution.
--------------------------------------------------------------------------------
FORMAT: PAUSE
--------------------------------------------------------------------------------
Command parameters: None.
--------------------------------------------------------------------------------
DESCRIPTION:
Pauses DTI2TEXT execution and issues a prompt for a carriage return to continue execution. This command is designed for use in software demonstration situations.
--------------------------------------------------------------------------------
Messages: None.
--------------------------------------------------------------------------------
Examples:
DTI2TEXT> PAUSE<CR>
--------------------------------------------------------------------------------
Quit from DTI2TEXT.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The QUIT command causes DTI2TEXT to exit immediately, closing the input
file and closing and deleting the output file.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DTI2TEXT> QUIT<CR>
--------------------------------------------------------------------------------
Restores command input from an indirect file to SYS$COMMAND.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Restores command input from an indirect file to SYS$COMMAND.
A typical application is to allow the user to use an indirect command file
to set up those run time defaults which are constant within a flowline and then
return to input from the terminal (or batch stream) for the run specific
commands. To do this RETURN must be the last command in the indirect command
file.
--------------------------------------------------------------------------------
The following messages are specific to the RETURN command:
RETURN command detected - returning to terminal input
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Shows the current status of those options that may be enabled by means of
the ENABLE command, or disabled using the DISABLE command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Displays the current status of all the DTI2TEXT options that may be
enabled or disabled using the ENABLE and DISABLE commands.
--------------------------------------------------------------------------------
The following message is specific to the SHOW command:
--------------------------------------------------------------------------------
DTI2TEXT>SHOW ENABLE<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
Displays information about the input and output files.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Details extracted from the header of the input file are displayed on the
terminal.
The name of the output file is also displayed if it has been specified.
--------------------------------------------------------------------------------
The following message is specific to the SHOW command:
--------------------------------------------------------------------------------
DTI2TEXT>SHOW FILES<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
Displays the current output format string.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command is used to display the currently selected format string as
specified with the FORMAT command.
--------------------------------------------------------------------------------
The following message is specific to the SHOW command:
--------------------------------------------------------------------------------
DTI2TEXT>SHOW FORMAT<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
Displays the current null value.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The null value specified with the NULL command is displayed on the terminal.
--------------------------------------------------------------------------------
The following message is specific to the SHOW command:
--------------------------------------------------------------------------------
DTI2TEXT>SHOW NULL<CR>
DTI2TEXT>
--------------------------------------------------------------------------------
Displays on the terminal the current units of measurement.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Displays the current units of measurement which will be used when defining
an area of interest in the input DTI file with the WINDOW command.
The UNITS command may be used to change the current units of measurement.
--------------------------------------------------------------------------------
The following message is specific to the SHOW command:
--------------------------------------------------------------------------------
DTI2TEXT>SHOW UNITS<CR>
--------------------------------------------------------------------------------
Specifies the units of measurement that will be used when defining an area
of interest in the input DTM using the WINDOW command.
The command also controls the units of measurement which will be used
when displaying file header details.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
units
A keyword defining the measurement units, chosen from:
--------------------------------------------------------------------------------
The UNITS command enables the user to specify in what units of measurement
he wishes to define an area of interest in the input DTM using the WINDOW
command. The command also controls in what format details from the header of
the DTM are given.
The UNITS command should be given after opening the DTI file, but
before the WINDOW command, should the user wish to specify WINDOW command
arguments in a different measurement system to the file-type default.
--------------------------------------------------------------------------------
The following error messages are specific to the UNITS command:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Suspend processing for the specified number of seconds.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
seconds
The number (integer) of seconds for which DTI2TEXT processing is
to be suspended.
--------------------------------------------------------------------------------
The WAIT command causes processing to be suspended for a specified
number of seconds. It is designed for use in software demonstration
situations and is of no value in a production flowline.
--------------------------------------------------------------------------------
The following warning message is specific to the WAIT command:
*** WARNING *** You must specify the number of seconds to wait
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Specifies the limits of the data area to be converted to text format.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
xmin ymin
The coordinates of the bottom left hand corner of the defining rectangle.
xmax ymax
The coordinates of top right hand corner of the defining rectangle.
The format of the command parameters is controlled by the UNITS command.
Note that in all cases, the input values are adjusted to the nearest
column and row values.
If the command is given from the table menu, or the command WINDOW is
given without any arguments, you will be asked to supply the values in
response to explanatory prompts.
--------------------------------------------------------------------------------
The command is used to define rectangular limits to the area of
data to be converted to text. The limits must be specified
in the order bottom left hand (or south west) corner then top right hand
(or north east) corner.
The WINDOW command can be used to clip data from the input DTI file.
If input is to be from an entire DTI file then the WINDOW command may be
omitted as the WINDOW extents will then, by default, be taken from the DTI
file header.
--------------------------------------------------------------------------------
The following warning messages are specific to the WINDOW command:
*** ERROR **** Specifying DTI window
Command requires 2 x,y coordinate pairs (SW and NE)
*** ERROR **** Specifying DTI window
NE coordinates should exceed SW coordinates
*** WARNING *** Specified window exceeds matrix limits
Window will be truncated to fit
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This example shows a typical COMMAND sequence for DTI2TEXT
Diagnostic printout is enabled with the ENABLE DIAGNOSTICS
command.
The input DTI file (TST.DTI) and the output text file (DTI.DAT) are
specified using the FILEIN and FILEOUT commands respectively.
The units are then set to those of the matrix of the DTI file, and a
window in the input DTI file to be converted is specified with the
window command. SHOW FILES illustrates that the specified window has been
set.
Next, a user defined format is entered using the FORMAT command, and its
effect checked using SHOW FORMAT.
Finally, the actual conversion is started by the GO command. The
diagnostic printout gives details of the files involved and of the progress of
the conversion through the columns which are to be processed.
The DTI2TEXT prompt returns after the conversion is complete, so that
further commands to process other files may be issued.
The example above illustrates the conversion of a DTI file of integer word
data to a text file with the diagnostic printout enabled. The SHOW FILES and
SHOW ENABLE commands after the conversion has completed demonstrates that
the input and output
files have been closed, but that the other conditions, such as whether
diagnostics are enabled, or whether rounding to integers is enabled,
still hold for any subsequent conversions
carried out in this session of DTI2TEXT. Any window specified is reset when
the DTI file is closed, and so must be reentered after each FILEIN command.
In this example, a DTI file of real data is converted to a text output
file. The ENABLE NINT command means that the data in the text file will be
rounded to the nearest integer. FORMAT is used first to set up a format
which is subsequently rejected when GO is issued. It is then used to
reinstate the default output formats.
See dti2textmsg.html generated from DTI2TEXTMSG.RNO.
Press
DTI2TEXT>
QUIT COMMAND
QUIT
FORMAT: QUIT
Command parameters: None.
Description:
Messages: None.
Examples:
ELAPSED: 00:00:20.04 CPU: 0:00:04.71 BUFIO: 281 DIRIO: 46 FAULTS: 263
_$
RETURN COMMAND
RETURN
FORMAT: RETURN
Command parameters: None.
DESCRIPTION:
Messages:
RETURN command ignored - command input is already from terminal
Examples:
DTI2TEXT> @FLOW2<CR>
DTI2TEXT> ENABLE DIAGNOSTICS
DTI2TEXT> RETURN
DTI2TEXT>
SHOW ENABLE COMMAND
SHOW ENABLE
FORMAT: SHOW ENABLE
Command parameters: None.
DESCRIPTION:
The name of the option is shown, followed by either the word ON or OFF
to indicate its current status.
If the command SHOW ENABLE is used before any ENABLE or DISABLE commands
have been given, the default status of the options is displayed.
Messages:
*** ERROR *** Specifying command SHOW
Available SHOW command qualifiers are:
ENABLE FILES FORMAT NULL UNITS
Examples:
Current status:
ABSOLUTE On DIAGNOSTICS On NINT Off
PME Off
SHOW FILES COMMAND
SHOW FILES
FORMAT: SHOW FILES
Command parameters: None.
DESCRIPTION:
Messages:
*** ERROR *** Specifying command SHOW
Available SHOW command qualifiers are:
ENABLE FILES FORMAT NULL UNITS
Examples:
File : LSL$DTI:TST.DTI;0
Header : LSLA Data: WORD
Units are DTI Matrix Values
Matrix Coverage SW: 1 1 NE: 71 71
Matrix Window SW: 1 1 NE: 50 50
Matrix Interval E: 1 N: 1
Value Range : 139 to 192
SHOW FORMAT COMMAND
SHOW FORMAT
FORMAT: SHOW FORMAT
Command parameters: None.
DESCRIPTION:
Messages:
*** ERROR *** Specifying command SHOW
Available SHOW command qualifiers are:
ENABLE FILES FORMAT NULL UNITS
Examples:
Current user defined format (20I4)
SHOW NULL COMMAND
SHOW NULL
FORMAT: SHOW NULL
Command parameters: None.
DESCRIPTION:
Messages:
*** ERROR *** Specifying command SHOW
Available SHOW command qualifiers are:
ENABLE FILES FORMAT NULL UNITS
Examples:
Current null word value is -32767
SHOW UNITS COMMAND
SHOW UNITS
FORMAT: SHOW UNITS
Command parameters: None.
DESCRIPTION:
Messages:
*** ERROR *** Specifying command SHOW
Available SHOW command qualifiers are:
ENABLE FILES FORMAT NULL UNITS
Examples:
Current WINDOW units are Projection Units.
DTI2TEXT>
UNITS COMMAND
UNITS
FORMAT: UNITS units
Command parameters:
MATRIX Matrix grid interval units, i.e rows and columns
METRES Metres on the ground
LATLONG Latitude and Longitude
(in degrees, minutes and seconds)
SECONDS Seconds of arc
PROJECTION Projection Record Units (eg. mms on the source document)
DESCRIPTION:
The command should be given after defining the DTI file containing the
input DTM, since an appropriate default units of measurement is set up whenever
an input DTI file is opened.
Messages:
*** ERROR *** Specifying command UNITS
Command qualifiers are MATRIX, METRES, SECONDS, LATLONG or PROJECTION
*** ERROR *** Specifying command UNITS
Command qualifier is invalid for the input file
Examples:
DTI2TEXT> UNITS MATRIX<CR>
DTI2TEXT>
WAIT COMMAND
WAIT
FORMAT: WAIT seconds
Command parameters:
DESCRIPTION:
Messages:
Examples:
DTI2TEXT> WAIT 4<CR>
DTI2TEXT>
WINDOW COMMAND
WINDOW
FORMAT: WINDOW xmin ymin xmax ymax
Command parameters:
DESCRIPTION:
Messages:
Examples:
DTI2TEXT> WINDOW 0.0 0.0 120.0 120.0<CR>
DTI2TEXT>
EXAMPLES
EXAMPLES
$ DTI2TEXT
DTI2TEXT> ENABLE DIAGNOSTICS<CR>
DTI2TEXT> FILEIN TST<CR>
DTI file LSL$DTI:TST.DTI;0 opened for read
File : LSL$DTI:TST.DTI;0
Header : LSLA Data: WORD
Units are Metres
Matrix Coverage SW: 0.00 0.00 NE: 70.00 70.00
Matrix Interval E: 1.00 N: 1.00
Value Range : 139 to 192
DTI2TEXT> FILEOUT TST<CR>
Text output file TST.DAT opened
DTI2TEXT> UNITS MATRIX<CR>
DTI2TEXT> WINDOW 1 1 50 50<CR>
DTI2TEXT> SHOW FILES<CR>
File : LSL$DTI:TST.DTI;0
Header : LSLA Data: WORD
Units are DTI Matrix Values
Matrix Coverage SW: 1 1 NE: 71 71
Matrix Window SW: 1 1 NE: 50 50
Matrix Interval E: 1 N: 1
Value Range : 139 to 192
Text File TST.DAT selected for output.
DTI2TEXT> FORMAT 20I4<CR>
DTI2TEXT> SHOW FORMAT<CR>
Current user defined format (20I4)
DTI2TEXT> GO<CR>
Converting from DTI file LSL$DTI:TST.DTI;0 to text file TST.DAT.
Details of input DTI file :
File : LSL$DTI:TST.DTI;0
Header : LSLA Data: WORD
Units are DTI Matrix Values
Matrix Coverage SW: 1 1 NE: 71 71
Matrix Window SW: 1 1 NE: 50 50
Matrix Interval E: 1 N: 1
Value Range : 139 to 192
Converting columns 1 to 4
Converting columns 5 to 8
Converting columns 9 to 12
Converting columns 13 to 16
Converting columns 17 to 20
Converting columns 21 to 24
Converting columns 25 to 28
Converting columns 29 to 32
Converting columns 33 to 36
Converting columns 37 to 40
Converting columns 41 to 44
Converting columns 45 to 48
Converting columns 49 to 50
DTI2TEXT>
$ DTI2TEXT<CR>
DTI2TEXT> ENABLE DIAGNOSTICS<CR>
DTI2TEXT> FILEIN UHL1<CR>1
DTI file LSL$DTI:UHL1.DTI;0 opened for read
File : LSL$DTI:UHL1.DTI;0
Header : UHL1 Data: WORD
Units are degrees, minutes, seconds
Matrix Origin : 52 00 00S 58 00 00W
Matrix Coverage SW: 52 00 00S 58 00 00W NE: 51 50 00S 57 39 20W
Matrix Window SW: 52 00 00S 58 00 00W NE: 51 50 00S 57 39 20W
Matrix Interval E: 2 N: 1
Value Range : 0 to 321
DTI2TEXT> FILEOUT UHL1<CR>
Text output file UHL1.DAT opened
DTI2TEXT> GO<CR>
Converting from DTI file LSL$DTI:UHL1.DTI;0 to text file UHL1.DAT.
Details of input DTI file :
File : LSL$DTI:UHL1.DTI;0
Header : UHL1 Data: WORD
Units are degrees, minutes, seconds
Matrix Origin : 52 00 00S 58 00 00W
Matrix Coverage SW: 52 00 00S 58 00 00W NE: 51 50 00S 57 39 20W
Matrix Window SW: 52 00 00S 58 00 00W NE: 51 50 00S 57 39 20W
Matrix Interval E: 2 N: 1
Value Range : 0 to 321
Converting columns 1 to 62
Converting columns 63 to 124
Converting columns 125 to 186
Converting columns 187 to 248
Converting columns 249 to 310
Converting columns 311 to 372
Converting columns 373 to 434
Converting columns 435 to 496
Converting columns 497 to 558
Converting columns 559 to 620
Converting columns 621 to 621
DTI2TEXT> SHOW FILES<CR>
DTI input file not yet specified
Text output file not yet specified
DTI2TEXT> SHOW ENABLE<CR>
Current status:
ABSOLUTE On DIAGNOSTICS On NINT Off
PME Off
DTI2TEXT>
.
.
.
.
DTI2TEXT> FILEIN REAL<CR>
DTI file LSL$DTI:REAL.DTI;0 opened for read
File : LSL$DTI:REAL.DTI;0
Header : LSLA Data: REAL
Units are DTI matrix values
Matrix Coverage SW: 1 1 NE: 50 50
Matrix Window SW: 1 1 NE: 50 50
Matrix Interval E: 1 N: 1
Value Range : -5.00 to 326421.00
DTI2TEXT> FILEOUT REAL<CR>
Text output file REAL.DAT opened
DTI2TEXT> ENABLE DIAGNOSTICS<CR>
DTI2TEXT> ENABLE NINT<CR>
DTI2TEXT> FORMAT 20I4<CR>
DTI2TEXT> GO<CR>
*** ERROR *** Text field format too narrow, please redefine
DTI2TEXT> FORMAT<CR>
Current format is (20I4)
Enter new format, or press