Copyright (C) 1989 Laser-Scan Ltd
Science Park, Milton Road, Cambridge, England CB4 4FY tel: (0223) 420414
Document "SLOPES Reference" Category "Reference"
Document Issue 7.0 M W S Reid 13-March-1989
Issue 6.0 D R Catlow 08-September-1988
Issue 5.0 D R Catlow 25-January -1988
Issue 4.0 D R Catlow 17-October -1986
Issue 3.0 D R Catlow 24-February-1986
--------------------------------------------------------------------------------
MODULE SLOPES
--------------------------------------------------------------------------------
In the slope and height difference options, the user may specify the value step interval and the value and height range within which the information is displayed. In the shaded image option, the user has control over the sun position and sun angle. For aspect maps the user may vary the size of the angular step, and may display the information either as a grey scale or colour image.
--------------------------------------------------------------------------------
$ SLOPES
--------------------------------------------------------------------------------
SLOPES is an interactive, command driven program. Command input is expected when the following prompt is issued:
SLOPES>
Commands may be issued at the terminal in response to the prompt, or in most cases by digitising a point inside a SLOPES menu box.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The user may select from 5 different slope algorithms. 4 algorithms provide a measure of average slope based on the slope of adjacent parts of the terrain, while the fifth algorithm provides a measure of maximum slope. The algorithm is selected using the integer parameter associated with the SLOPE command.
The default slope algorithm is number 1. This algorithm employs a 3 X 3 operator that is passed over the matrix column by column and row by row. The operator calculates the slope at the centre point of the matrix. This is done by calculating the change in slope in the x and y direction for the surrounding matrix points, and combining the x and y components to provide an average measure of slope.
Z-+ Zo+ Z++
Z-o Zoo Z+o
z-- Zo- Z+-
The algorithm used is:
P = [(Z++ + 2Z+o + Z+-) - (Z-+ + 2Z-o + Z--)] / 8dx
Q = [(Z++ + 2Zo+ + Z-+) - (Z+- + 2Zo- + Z--)] / 8dy
Where:
P slope in the x direction (west to east)
Q slope in the y direction (south to north)
dx grid interval in the x direction
dy grid interval in the y direction
The remaining algorithms are based on the division of the terrain matrix into
a number of regular triangular facets, and the calculation of the surface
normal vector for each facet. The slope of a facet is the angle between the
surface normal and the vertical.
Algorithm 2 calculates an average slope value for a grid cell using the elevation values for the matrix points at the corner of the cell.
Z-+ Z++
Z-- Z+-
The cell is divided into 2 triangular facets defined by the nodes Z--, Z+-,
Z++ and Z++, Z-+, Z--. The average slope value for the cell is produced
by meaning the slope for the 2 facets.
Algorithm 3 uses the same technique but attempts to remove the directional bias inherent in the previous algorithm by dividing the cell into 4 triangular facets. The 4 facets are defined by the nodes: Z--, Z++, Z-+ ; Z--, Z+-, Z++ ; Z-+, Z--, Z+- ; Z-+, Z-+, Z++. The average slope value for the cell is produced by meaning the slope for the 4 facets.
Algorithm 4 is based on a 3 X 3 matrix and involves the calculation of 4 surface normal vectors.
Z-+ Zo+ Z++
Z-o Zoo Z+o
z-- Zo- Z+-
An average slope value for the matrix node Zoo is derived by meaning the
slope values for the 4 triangles: Zoo, Zo+, Z-o ; Zoo, Z+o, Zo+ ; Zoo,
Zo-, Z+- ; Zoo, Z-o, Z--.
Algorithm 5 is identical to the previous algorithm, except that the maximum of the 4 facet slopes is output rather than the mean value.
The slope values are calculated by default as degrees of slope, however using the command ENABLE PERCENT it is possible to output the derived slope value as a percentage slope. In the former case the slope values will be in the range 0 to 90 degrees; in the second case the slope values will be output in the range 0 to 100_%.
--------------------------------------------------------------------------------
The shaded overlay is produced by modelling the terrain surface as though lit by a light source. The grey levels in the shaded overlay reflect the apparent brightness of a surface element. This in turn is dependent upon its orientation with respect to the light source. A surface normal to the light source will appear brighter than a surface facing away from the light source. The orientation of a surface is a product of the local gradient (ie. its direction and slope).
It should be noted that the apparent brightness is a function only of the local gradient. No account is taken of effects dependent on the position of the surface element with respect to other elements of the DTM eg. mutual illumination or shadowing. Taking into account such factors can detract from the visual quality of the shaded image, and make interpretation more difficult.
The appearance of the final shaded image is dependent on the position of the light source. The position of the light source is defined in terms of an elevation angle (zenith angle), and an azimuth angle. The two angles are defined using the commands SUN_ANGLE and SUN_POSITION. The azimuth angle is measured clockwise from north.
By default a zenith angle of 45 degrees, and an azimuth angle of 315 degrees (north-west) are assumed. This is the light source position that is most frequently used when hill shading is manually generated by a cartographer.
Incorporated within SLOPES are 3 reflectance maps, which describe how a surface reflects and absorbs light. The different reflectance maps may be selected using the REFLECTANCE_MAP command. The default reflectance map (number 2) uses a Lambertian surface model, in which the apparent brightness of a surface facet is directly related to the cosine of the incident angle.
Since the computation of the grey level using the cosine of the incident angle is expensive, a piecewise linear approximation developed by Peucker is also incorporated into SLOPES. The approximation is computed using an elevation angle of 45 degrees and an azimuth angle of 315 degrees, and may be selected the command REFLECTANCE_MAP 1. The third reflectance map developed by Wiechel also assumes a Lambertian surface, but utilises an approximation to the cosine of the incident angle, again in order to improve performance.
The range of slopes, in other than a particularly mountainous region, is often so small as to produce a disappointing shaded image with little contrast. Exaggerating the height values, using the ZSCALE command, prior to calculating the components of the local gradient, has the effect of exaggerating the slope component, and leads to a image with more contrast in areas of low relief. A similar effect can be generated by decreasing the elevation of the light source.
--------------------------------------------------------------------------------
The algorithm uses a 3 X 3 operator that is passed over the matrix column by column and row by row. The operator calculates a height difference for the centre point of the matrix by calculating the absolute difference between
Z-+ Zo+ Z++
Z-o Zoo Z+o
z-- Zo- Z+-
point Zoo and the 8 surrounding points. By default, an average height value is
output, derived by meaning the 8 height difference values, however if the
DISABLE AVERAGE command has been given, then the maximum of the 8 values
is output.
--------------------------------------------------------------------------------
ANGLE_INTERVAL is used to define the angular step value for ASPECT calculation. For example, if an angular step value of 90 degrees is used, then 4 different classes will be distinguished, with those parts of the terrain which have a direction of 0 to 90 degrees measured clockwise from north (ie. between north and east) being assigned to class 1. The default angular interval is 30 degrees.
VALUE_RANGE is used to define lower and upper limits of output slope or height difference values. For example, using the command VALUE_RANGE 0 30 it is possible to restrict slope display to those slopes that lie between 0 and 30 degrees. When output is to a graphics device, matrix points outside the value range will appear in black; when output is to a DTI file, matrix points outside the value range are assigned a null value.
The STEP command is used to define the slope or height difference class interval. If a single integer value is supplied with the command, a constant class interval is defined. For example, the command STEP 10 when applied to a slope map, will classify the slopes into 10 degree classes. Alternatively, a variable class interval may be defined by supplying a number of integer arguments with the STEP command. For example, the command STEP 5 8 10 when applied to a slope map, and assuming a value range of 0 to 40, will result in 5 classes of slope being distinguished with class upper limits of 5 13 23 33 40. Note the final step value is used to fill out the remainder of the value range. When output is to a graphics device, each class will appear in a different colour.
In addition to restricting the display of slope or height difference values to a particular value range, it is also possible using the ZLIMITS command, to restrict calculation to matrix points within a particular height range. For example, if the command ZLIMITS 0 200 is given, then only matrix points that fall within this height range, will be used in the slope, aspect or height difference calculations. When output is to a graphics device, matrix points outside the height range will appear in white.
The default value of these parameters may be examined using the commands SHOW ASPECT, SHOW HEIGHT_DIFFERENCE, SHOW SHADE and SHOW SLOPE, while the default values may be selected using the commands DEFAULT ASPECT, DEFAULT HEIGHT_DIFFERENCE, DEFAULT SHADE and DEFAULT SLOPE.
--------------------------------------------------------------------------------
The command FILEOUT is used to specify the name of the output DTI file. The output file is created with the same header as the input DTM, and any header or projection information is transferred to the output file. It is possible to specify the format of the data values in the output DTI file using the command DATA_TYPE. By default an output value is held as a 16 bit word.
The derived values are by default output to the DTI file in an unclassified form, and any class values that may have been defined are not used. It is however possible to output the class value, rather than the actual derived value, by giving the command ENABLE CLASSIFY prior to generating the output map. If this command is given, then it is the colour index that would be used to display the value on a graphics device that is output. For example, a slope value of 15 degrees which lies in the second class, would be output as 2 with CLASSIFY enabled, and as 15 if CLASSIFY is disabled. The COLOURS command may be used to control the index value that is output to the file.
The command ENABLE GRAPHICS is used to direct output to the workstation graphics device. If this option is selected then the derived slope, aspect, height difference or shade data is displayed on the screen, in a classified colour coded or greyscale image, as it is calculated. The way in which the derived data is classified and appears to the user on the screen, is controlled using the output map parameters, along with the commands LUT, and COLOURS.
The colours used for the display of the classified information are defined in a colour lookup table. 2 colour tables are supplied with the program, and may be found in a directory which forms part of the search list LSL$LOOKUP. By default the colour table 'SLOPES.DAT' is used for slope, height difference and colour aspect maps, and the colour table 'GREY.DAT' for shade or aspect greyscale maps.
The contents of these files may be edited to change the RGB definitions of particular colour indices, alternatively the LUT command may be used to read a user specified colour table. The optional qualifier on the LUT command is used to associate a colour table with a particular type of map eg. the command LUT SLOPES MYTABLE.DAT will cause this colour table to be used in preference to the default colour table 'SLOPES.DAT'.
The COLOURS command may be used to assign a colour index to a particular class. For example the command COLOUR 1 5 6 will assign colours 1 5 6 to classes 1 2 and 3.
By default the screen is cleared of any existing image whenever an ASPECT, SLOPE, HEIGHT_DIFFERENCE or SHADE command is given. The command DISABLE CLEAR may be used to disable the clearing of the screen between image generation. It is often useful to do this to demonstrate the relationship between SLOPE, ASPECT and SHADE, and to see the effect of visualising the terrain as a shaded relief map with different light source parameters.
--------------------------------------------------------------------------------
Display of a legend is controlled by means of the commands DISABLE / ENABLE LEGEND and LEGEND POSITION. The DISABLE / ENABLE TEXT commands may be used to control whether informational text is output to the screen.
In addition to the annotation described above, the map may be annotated with user information by means of the command DRAW LABEL. There is no restriction on the number of labels that may be drawn, however a single text string cannot consist of more than 80 characters. The LABEL POSITION command determines the position of the label on the screen; a label is drawn so that the first character is located at the current label position. The LABEL SIZE command may be used to select from 4 different character sizes. The command CLEAR LABEL may be used to delete user annotation from the screen.
--------------------------------------------------------------------------------
If the logical name LSL$AUTO_ENABLE_TABLE is defined with a value of "1" the program will attempt to initialise the Laser Scan Table Monitor Utility on startup. If the logical name is absent or has any other value, initialisation is not performed on startup, however the table can be subsequently initialised using the command ENABLE TABLE.
The Table Monitor controls reading from the digitising table. It must be set up on your system if SLOPES is to take input from the digitising table. If table initialisation fails then the message:
*** WARNING *** Initialising table monitor
SLOPES will assume no table is available
will be output before the prompt SLOPES> is displayed on the terminal. In
the event of failure, input from the digitising table or puck button is not
possible, and the program will accept commands only from the terminal.
Table initialisation will generally fail because no Table Monitor is currently active, or because the Table Monitor is locked by another user. If neither of these reasons appear to apply, you should consult the TABLIB Reference Manual, or seek guidance from your system manager.
A map is registered to the DTM using the command SETUP MAP. Before giving this command you should have first selected the input DTM, and have securely attached the source document to the digitising table.
Registration is performed by digitising 4 rectangular registration points. The registration points represent 4 points on the map that correspond to the 4 corners of the DTM. The points are digitised in the order top left (NW), bottom left (SW), bottom right (SE) and top right (NE) using any button on the table puck. A point is digitised in response to an explanatory prompt on the terminal.
An error message is generated if any of the angles of the digitised rectangle are less than 88 degrees, or greater than 92 degrees (ie. if the corner points of the rectangle are more than 2 degrees off rectangular). In this situation you will be asked to redigitise the 4 registration points.
Once a map has been positioned on the table, it is possible to define an area of interest in the DTM by giving the WINDOW command and digitising two points on the map. If the workstation incorporates a graphics device that supports hardware pixel replication, it is also possible to centre the displayed image around a DTM point using puck button 1. Note that puck buttons 2 and 3 are defined as ENLARGE and REDUCE.
If the table has been successfully initialised, then a command menu may be positioned on the table. The majority of the SLOPES commands may be issued from the menu.
A menu is positioned on the table using the command SETUP MENU. As with map setup, registration is performed by digitising 4 rectangular registration points. The registration points represent the 4 corners of the menu. The points are digitised in the order top left, bottom left, bottom right and top right using any button on the table puck. A point is digitised in response to an explanatory prompt on the terminal.
A menu command is issued by digitising a point in the relevant menu box. For commands that require a parameter argument, you should enter the parameter in response to a prompt on the terminal, using the keyboard. The ENABLE commands when given from the menu act as 'flip-flops'; if the enable option is currently disabled it will be enabled when the menu command is given, and vice versa.
--------------------------------------------------------------------------------
@ ! ANGLE_INTERVAL ASPECT
CENTRE CLEAR CLEAR LABELS COLOUR
DATA_TYPE DEFAULT ASPECT DEFAULT HEIGHT_DIFFERENCE
DEFAULT SHADE DEFAULT SLOPE DISABLE ABSOLUTE
DISABLE AVERAGE DISABLE CLASSIFY DISABLE CLEAR
DISABLE GRAPHICS DISABLE GREYSCALE
DISABLE LEGEND DISABLE NULL_BORDER DISABLE PERCENT
DISABLE RECENTRE DISABLE TABLE DISABLE TEXT
DRAW LABEL ENABLE ABSOLUTE
ENABLE AVERAGE ENABLE CLASSIFY ENABLE CLEAR ENABLE GRAPHICS
ENABLE GREYSCALE ENABLE LEGEND ENABLE NULL_BORDER
ENABLE PERCENT ENABLE RECENTRE ENABLE TABLE ENABLE TEXT
ENLARGE EXIT FILEIN FILEOUT
HEIGHT_DIFFERENCE HELP LABEL POSITION
LABEL SIZE LEGEND POSITION LUT REDUCE
REFLECTANCE_MAP SETUP MAP SETUP MENU SHADE
SHOW ANNOTATION SHOW ASPECT SHOW ENABLE SHOW FILES
SHOW HEIGHT_DIFFERENCE SHOW SHADE SHOW SLOPE
SLOPES SPAWN STEP SUN_ANGLE
SUN_POSITION UNITS VALUE_RANGE WAIT
WINDOW ZLIMITS ZSCALE
--------------------------------------------------------------------------------
_@
Take command input from the specified file.
--------------------------------------------------------------------------------
FORMAT: _@ file-spec
--------------------------------------------------------------------------------
Command parameters:
file-spec
The file to be opened and used for command input.
Any parts of the file-spec not supplied will be taken from the default specification 'SYS$DISK:[].COM;0'.
--------------------------------------------------------------------------------
DESCRIPTION:
SLOPES offers the facility of command input from an indirect command file. The '@' character preceding a file-spec will cause SLOPES 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 SLOPES will echo all commands read from an indirect command file.
--------------------------------------------------------------------------------
Messages:
The following messages are specific to the _@ command:
*** ERROR *** Specifying command @ Command file specification is missing *** ERROR *** Specifying command @ Unable to open indirect command file 'file-spec' *** ERROR *** Specifying command @ Nested command files not supported
--------------------------------------------------------------------------------
Examples:
SLOPES> @SLOPES_TEST
SLOPES> STEP 7
SLOPES> VALUE_RANGE 10 20
SLOPES>
--------------------------------------------------------------------------------
_!
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 TVES 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:
SLOPES> ENABLE AVERAGE !calculate average height differences<CR>
SLOPES> ENABLE ABSOLUTE !use absolute coordinates<CR>
SLOPES>
--------------------------------------------------------------------------------
ANGLE_INTERVAL
Sets the angular step value for aspect calculation.
--------------------------------------------------------------------------------
FORMAT: ANGLE_INTERVAL angular_interval
--------------------------------------------------------------------------------
Command parameters:
angular_interval
An integer value specifying a whole number of degrees. The default value is 30 degrees.
--------------------------------------------------------------------------------
DESCRIPTION:
ANGLE_INTERVAL is used to define the angular step value for ASPECT calculation. If output to a graphics device has been selected with the ENABLE GRAPHICS command then each angular step is displayed in a different colour.
If output is to a DTI file then if the ENABLE CLASSIFY command has been given, each classified index is output to the DTI file. eg. if an angular step of 10 degrees is specified then aspect values of 1 to 10 degrees would be output to the DTI file with a value of 1, 11 to 20 degrees with a value of 2 etc.
If the ENABLE CLASSIFY command is not specified then the ANGLE_INTERVAL command has no effect on the output to a DTI file.
--------------------------------------------------------------------------------
Messages:
The following error messages are specific to the ANGLE_INTERVAL command.
*** ERROR *** Specifying command ANGLE_INTERVAL Command requires an integer value between 3 and 360
--------------------------------------------------------------------------------
Examples:
SLOPES>ANGLE_INTERVAL 20
SLOPES>
--------------------------------------------------------------------------------
ASPECT
Calculates and displays an ASPECT map.
--------------------------------------------------------------------------------
FORMAT: ASPECT
--------------------------------------------------------------------------------
Command parameters: _None
--------------------------------------------------------------------------------
DESCRIPTION:
This command calculates an ASPECT map indicating the direction of SLOPE at each node in the DTM. Aspect is measured in degrees clockwise from north (ie east = 90 degrees, west = 270 degrees).
Further information on the ASPECT algorithm used is given in the Description section.
The aspect information is either displayed on the graphics screen, if the ENABLE GRAPHICS command has been given and/or to a DTI file if the FILEOUT command has been issued.
If output to a graphics device is selected then either a grey or colour image is produced depending on whether the ENABLE GREY command has been given. By default a colour image is produced. The displayed step intervals are controlled by the ANGLE_INTERVAL command.
If output is to a DTI file then if the ENABLE CLASSIFY has been given each classified index, as defined by the ANGLE_INTERVAL command is output to the DTI file. For example, if an angular step of 10 degrees is specified then aspect values of 1 to 10 degrees are output to the DTI file with a value of 1, 11 to 20 degrees with a value of 2 etc. Otherwise the actual calculated aspect values are output.
ASPECT information is only calculated for matrix nodes lying within the currently defined WINDOW.
Typing
--------------------------------------------------------------------------------
The following error messages are specific to the ASPECT command.
--------------------------------------------------------------------------------
SLOPES>ASPECT
--------------------------------------------------------------------------------
Centres the current display around the specified DTI matrix point.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
x_coord y_coord
The matrix coordinates specified as a column and row value. 2 integer
values are required.
--------------------------------------------------------------------------------
The displayed image is centred around the screen position corresponding
to the supplied matrix x y coordinate point provided they lie within the
geographical bounds of the file.
This command has effect only on a graphics device which supports
hardware pixel replication.
--------------------------------------------------------------------------------
The following error messages are specific to the CENTRE command.
--------------------------------------------------------------------------------
SLOPES>CENTRE 100 100
--------------------------------------------------------------------------------
Clears the screen.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command, when issued with no qualifiers,
clears the entire screen of displayed information.
--------------------------------------------------------------------------------
*** ERROR *** specifying command CLEAR
--------------------------------------------------------------------------------
SLOPES>CLEAR
--------------------------------------------------------------------------------
Clears user annotation.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
User annotation which has been specified with
the DRAW LABEL command is cleared from the screen. Any underlying image is
preserved.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>CLEAR LABEL
--------------------------------------------------------------------------------
Defines the colour entry that is to be associated with the value steps.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
I1 I2 ...I7
The colour index values to be associated with the value steps.
Up to seven integer values may be specified in the range 1 to 127.
--------------------------------------------------------------------------------
The COLOUR command allows the colour indices associated with step values to
be reassigned.
The command applies only to SLOPE and HEIGHT_DIFFERENCE maps. If
the ENABLE CLASSIFY command has been given, then the colour index values
are output to the DTI file.
--------------------------------------------------------------------------------
The following error messages are specific to the COLOURS command.
--------------------------------------------------------------------------------
SLOPES>COLOURS 2 5 20
--------------------------------------------------------------------------------
Sets the data type for the output file.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
keyword
The data type chosen from one of the following:
The default data type is WORD.
--------------------------------------------------------------------------------
The DATA_TYPE command is used to set the data type of the output DTI file
specified using the FILEOUT command.
Note that ASPECT maps may not be output if BYTE data type has been selected,
unless ENABLE CLASSIFY has been specified.
The default data type is WORD.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DATA_TYPE WORD
--------------------------------------------------------------------------------
Resets the default ASPECT parameters
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command resets the default program parameters for the calculation and
display of aspect maps. The following values are set: -
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DEFAULT ASPECT
--------------------------------------------------------------------------------
Resets the default HEIGHT_DIFFERENCE parameters
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command resets the default program parameters for the calculation and
display of height difference maps. The following values are set: -
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DEFAULT HEIGHT_DIFFERENCE
--------------------------------------------------------------------------------
Resets the default SHADE parameters
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command resets the default program parameters for the calculation and
display of shaded maps. The following values are set: -
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DEFAULT SHADE
--------------------------------------------------------------------------------
Resets the default SLOPE parameters
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command resets the default program parameters for the calculation and
display of slope maps. The following values are set: -
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DEFAULT SLOPE
--------------------------------------------------------------------------------
Disables a previous ENABLE ABSOLUTE command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
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.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE ABSOLUTE
--------------------------------------------------------------------------------
Disables a previous ENABLE AVERAGE command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE AVERAGE cancels a previous ENABLE AVERAGE command.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE AVERAGE
--------------------------------------------------------------------------------
Disables a previous ENABLE CLASSIFY command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE CLASSIFY cancels a previous ENABLE CLASSIFY command. If DISABLE
CLASSIFY is given, then the calculated SLOPE, HEIGHT_DIFFERENCE or
ASPECT values are written to the output DTI file.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE CLASSIFY
--------------------------------------------------------------------------------
Disables a previous ENABLE CLEAR command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE CLEAR cancels a previous ENABLE CLEAR command. If DISABLE
CLEAR is given, then the screen is not automatically cleared before each new
image is generated.
The DISABLE CLEAR command is useful to allow differences caused
by changing output map parameters to be examined.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE CLEAR
--------------------------------------------------------------------------------
Disables a previous ENABLE GRAPHICS command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE GRAPHICS cancels a previous ENABLE GRAPHICS command. If DISABLE
GRAPHICS is given, then SLOPE, ASPECT, HEIGHT_DIFFERENCE or SHADE information
is not output to the graphics device.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE GRAPHICS
--------------------------------------------------------------------------------
Disables a previous ENABLE GREYSCALE command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE GREYSCALE cancels a previous ENABLE GREYSCALE command.
The command is used in conjunction with the ASPECT command to specify
that the aspect map should be displayed as a colour image.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE GREYSCALE
--------------------------------------------------------------------------------
Disables a previous ENABLE LEGEND command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE LEGEND cancels a previous ENABLE LEGEND command. If DISABLE
LEGEND is given, then no colour value guide is generated before an ASPECT,
SLOPE, or HEIGHT_DIFFERENCE image is generated.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE LEGEND
--------------------------------------------------------------------------------
Disables a previous ENABLE NULL_BORDER command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE NULL_BORDER cancels a previous ENABLE NULL_BORDER command.
It disables null values being written to the first and last rows and columns
in the output DTI file.
The DTM is conceptually expanded by 2 columns and 2 rows, and heights are
interpolated linearly for the new points, to allow an output slope or
aspect value to be calculated for the first and last column and row.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE NULL_BORDER
--------------------------------------------------------------------------------
Disables a previous ENABLE PERCENT command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE PERCENT cancels a previous ENABLE PERCENT command.
Gradient values are subsequently calculated in degrees of slope.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE PERCENT
--------------------------------------------------------------------------------
Disables a previous ENABLE RECENTRE command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE RECENTRE cancels a previous ENABLE RECENTRE command.
The display remains at the current magnification factor, and is not
recentred before the drawing of a new image.
To avoid undesirable effects it is advisable to DISABLE LEGEND and TEXT
display when using DISABLE RECENTRE.
This command has effect only on a graphics device which supports
hardware pixel replication.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE RECENTRE
--------------------------------------------------------------------------------
Turns off input from the digitising table.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The DISABLE TABLE command turns off input from the digitising
table.
Input from the table can be reselected using the ENABLE TABLE command.
The SHOW ENABLE command may be used to check on the status of table input.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE TABLE
--------------------------------------------------------------------------------
Disables a previous ENABLE TEXT command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
DISABLE TEXT disables the output of border information when an image is
displayed.
By default the DTI file name, area of interest,
value range and current parameter settings are output to the screen.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>DISABLE TEXT
--------------------------------------------------------------------------------
Annotates the display
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
text
The text to be written to the display. Up to 80 characters of text may
be specified.
--------------------------------------------------------------------------------
The specified text is written to the display.
By default the position of the text is along the bottom line of the
current plotting area.
Both the size and position of the text may be changed by means of
the LABEL SIZE and LABEL POSITION commands.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES> DRAW LABEL A Very Pretty Picture
--------------------------------------------------------------------------------
Selects the use of absolute coordinates values.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
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.
This option can be disabled using the DISABLE ABSOLUTE command.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE ABSOLUTE
--------------------------------------------------------------------------------
Selects average height difference calculation.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
If the ENABLE AVERAGE command is given, then average height difference
is calculated
when a HEIGHT_DIFFERENCE map is generated.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE AVERAGE
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
If ENABLE CLASSIFY is given, then SLOPE, HEIGHT_DIFFERENCE or ASPECT values
are output as classified indices as defined by the STEP and COLOUR, or
ANGLE_INTERVAL commands.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE CLASSIFY
In this example a slope value of 15 degrees lying in the second step
interval is output as colour index 10 to the DTI file.
--------------------------------------------------------------------------------
Selects the clearing of the graphics screen between image displays.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
If the ENABLE CLEAR command is given, then the graphics screen is
automatically cleared prior to display of ASPECT, SLOPES, SHADE or
HEIGHT_DIFFERENCE images.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE CLEAR
--------------------------------------------------------------------------------
Selects output to a workstation graphics device.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The ENABLE GRAPHICS command initialises the graphics workstation.
Subsequent SLOPES output generated by the SLOPE, ASPECT, HEIGHT_DIFFERENCE
and SHADE commands is directed to the graphics display.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE GRAPHICS
--------------------------------------------------------------------------------
Selects the use of a greyscale for output of ASPECT information.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The command is used in conjunction with the ASPECT command to specify
that the aspect map should be displayed as a greyscale image.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE GREYSCALE
--------------------------------------------------------------------------------
Enables the output of a display legend
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
ENABLE LEGEND enables the display of a colour/value guide
when an ASPECT, SLOPE or HEIGHT_DIFFERENCE command is
given.
The position of the LEGEND on the screen may be changed with the LEGEND
POSITION command.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Selects the output of null border values to the DTI file.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The ENABLE NULL_BORDER command specifies that null values are written to
the first and last rows and columns in the output DTI file.
The null values output are dependent on the output data type specified
with the DATA TYPE command. These values are specified in the DTILIB reference
manual.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE NULL_BORDER
--------------------------------------------------------------------------------
Selects the calculation of gradient as percentage slope values.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The ENABLE PERCENT command is used to select the calculation of percentage
slope. Gradients for subsequent SLOPE commands are output as percentage
slope. ie:-
Slopes of greater than 450 are output as 100%.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE PERCENT
--------------------------------------------------------------------------------
Selects the recentring of an image before display of an image.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The ENABLE RECENTRE command specifies that the display is recentred and
set to a magnification factor of one before the drawing of a new image.
This command has effect only on a graphics device which supports
hardware pixel replication.
The SHOW ENABLE command may be used to check the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE RECENTRE
--------------------------------------------------------------------------------
Initialises the Table Monitor to allow input from a digitising table.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The ENABLE TABLE command initialises the table monitor to allow
input from a digitising table. The command SETUP MAP may be used to register
a map to the DTI file. The SETUP MENU command allows commands to be issued using
the SLOPES table menu.
In the event of failure, input from the digitising table or puck button is not
possible, and the program will accept commands only from the terminal.
Table initialisation will generally fail because no Table Monitor is currently
active, or because the Table Monitor is locked by another user. If neither of
these reasons appear to apply, you should consult the TABLIB Reference Manual,
or seek guidance from your system manager.
If the logical name LSL$AUTO_ENABLE_TABLE is defined with a value of
"1", then the table is initialised on program startup.
The DISABLE TABLE command may be used to turn off input from the digitising
table.
The SHOW ENABLE command may be used to check on the status of table input.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE TABLE
--------------------------------------------------------------------------------
Enables the output of border information.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
ENABLE TEXT enables the output of border information when an image
is displayed. The DTI filename, area of interest, selected value range
and current parameter settings are output to the screen.
The SHOW ENABLE command may be used to check on the status of the option.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>ENABLE TEXT
--------------------------------------------------------------------------------
Magnifies the displayed image by a factor of two.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The screen image is magnified by a factor of 2 using pixel replication.
If the command is repeatedly given the display will continue to be enlarged
until the maximum magnification (x 16) is reached.
This command has effect only on a graphics device which supports
hardware pixel replication.
--------------------------------------------------------------------------------
Display is at maximum magnification
--------------------------------------------------------------------------------
SLOPES>ENLARGE
--------------------------------------------------------------------------------
Terminates program execution.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The program is terminated, and any currently opened DTI files will be
unmapped, along with any input or output IFF files.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>EXIT
--------------------------------------------------------------------------------
Opens and maps into memory a DTI file.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
file-spec
The file specification for the input DTI file. Any part of the file
specification not supplied is taken from the default 'LSL$DTI:DTI.DTI'
--------------------------------------------------------------------------------
This command opens and maps into memory a DTI file.
If the logical name LSL$MATRIX_DEFAULT_WINDOW is defined with a value of
"1", then a default area of interest defined in matrix units of bottom left
hand corner 1,1 and top right hand corner 200,200 is set when the file is
opened. If the logical name is absent or has any other value, or if the input
DTI file has fewer than 200 columns or 200 rows, then a default window
equivalent to the total matrix is set.
The area of interest may be altered at any time by use of the WINDOW command.
If the rotation value (DTI_ORDER_CORNER)
held in the header of the DTI file is not the default,
(south west) then a warning message is output when the file is opened.
Information on the mapped DTI file may be obtained at any time
by typing 'SHOW FILES'.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>FILEIN TEST
--------------------------------------------------------------------------------
Specifies the file-spec of the DTI file is to receive SLOPE, ASPECT,
HEIGHT_DIFFERENCE or SHADE DTI data.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
file-spec
The file-spec of the DTI file which is to receive the derived data.
Any parts of the file-spec not supplied for the FILEOUT command will be
taken from the default file specification 'LSL$DTI:DTI.SLP;0'.
--------------------------------------------------------------------------------
The FILEOUT command specifies the name of the DTI file which is to
receive the calculated SLOPE, ASPECT, HEIGHT_DIFFERENCE or SHADE data. The
file is closed after calculations have taken place.
Note that output may take place both to the DTI file and the graphics screen
if the ENABLE GRAPHICS command has also been given.
--------------------------------------------------------------------------------
The following messages are specific to the FILEOUT command:
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Calculates and displays a height difference map.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command calculates a height difference map indicating the difference
in height between each DTM node and its neighbours. If the ENABLE AVERAGE
command has been given then the average height difference is output. Otherwise
the maximum height difference is calculated.
Output is displayed on the graphics screen if
ENABLE GRAPHICS command has been given and/or to a DTI file if the FILEOUT
command has been issued.
HEIGHT_DIFFERENCE information is only calculated matrix points that lie
within the currently defined WINDOW.
Typing
--------------------------------------------------------------------------------
The following error messages are specific to the HEIGHT_DIFFERENCE command.
--------------------------------------------------------------------------------
SLOPES>HEIGHT_DIFFERENCE
--------------------------------------------------------------------------------
Invokes on-line help
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
command
the command for which help is required
--------------------------------------------------------------------------------
A brief description is given of the function and format of the specified
command. If no parameter is specified then a complete list of available
commands are output.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>HELP SLOPE
--------------------------------------------------------------------------------
Positions the user annotation.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
screenx, screeny
The screen coordinates in pixel units.
Two integer values are required.
--------------------------------------------------------------------------------
The position of the user annotation is defined
The position is specified in screen pixel units, with respect to
the SW corner of the screen.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>LABEL POSITION 400 200
--------------------------------------------------------------------------------
Selects the size of user annotation
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
font-size
The size of the user text.
An integer in the range 1 (smallest) to 4 (largest) is required.
The default size is 2.
--------------------------------------------------------------------------------
The command LABEL SIZE is used to define the size of any text output to
a graphics screen using the DRAW LABEL command.
The font_size parameter controls the relative size of the text;
size 1 is the smallest, and size 4 is the largest. The actual size of the
output text screen will vary with the size of the graphics device screen,
though the relative sizes of the text will remain constant.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>LABEL SIZE 3
--------------------------------------------------------------------------------
Defines the position of the legend on the screen.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
screenx, screeny
The screen coordinates in pixel units.
Two integer values are required.
--------------------------------------------------------------------------------
The position of the legend is defined
The position is specified in screen pixel units, with respect to the
bottom left corner of the screen.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>LEGEND POSITION 400 200
--------------------------------------------------------------------------------
Selects and makes current the specified colour table.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
keyword
The SLOPES option to which the look up table refers. Valid options are:-
file-spec
The file specification for the new colour table. Any part of the file
specification not supplied will be taken from the default LSL$LOOKUP:.DAT.
--------------------------------------------------------------------------------
This command is used to read in a new look up colour table.
The colour table is a file containing the RGB definitions for a series of
colour values. These values are used when images are displayed on the
screen.
If the optional keyword argument is omitted, then the specified
colour table is read in immediately.
The keyword argument is used to to specify the colour table to be used
when subsequent SLOPE, ASPECT, SHADE or HEIGHT_DIFFERENCE maps are
generated on the graphics screen.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>LUT SHADES YELLOW.DAT
--------------------------------------------------------------------------------
Reduces the size of the displayed image by a factor of two.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The screen image is reduced by a factor of 2 using pixel replication.
If the command is repeatedly given the display will continue to be enlarged
until the maximum magnification (x 16) is reached.
This command has effect only on a graphics device which supports
hardware pixel replication.
--------------------------------------------------------------------------------
Display is at minimum magnification
--------------------------------------------------------------------------------
SLOPES>REDUCE
--------------------------------------------------------------------------------
Selects a reflectance map for the generation of a shaded relief map.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
index
The index number of the reflectance map. An integer between 1 and 3
is required.
--------------------------------------------------------------------------------
This command is used to specify the reflectance map to be used in the generation
of a shaded relief map. The three reflectance maps are as follows:-
Note: Reflectance Map 1 assumes the source of illumination to be in the
standard 'hill-shading' position ie. in the North West at 450, and current
sun angle and sun position settings are not used by this algorithm.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>REFLECTANCE_MAP 1
--------------------------------------------------------------------------------
Registers a map or other source document placed on a digitising table,
to the input DTM.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The SETUP MAP command allows a source document to be registered to the
input DTM.
In order to register the map and a DTM, the DTM should have first been
specified, and a source document should have been securely attached to the
surface of a digitising table.
On giving the command you will be asked to digitise 4 rectangular
registration points. The registration points represent
4 points on the map that correspond to the 4 corners of the DTM. The points
are digitised in the order top left (NW), bottom left (SW), bottom right (SE)
and top right (NE) using any button on the table puck. A point should be
digitised in response to a prompt on the terminal.
Following the registration of a map to the DTM, coordinate values
required by the WINDOW command, may be input using the table
puck.
--------------------------------------------------------------------------------
The following error messages are specific to the SETUP and SETUP MAP
commands:
--------------------------------------------------------------------------------
SLOPES>SETUP MAP
--------------------------------------------------------------------------------
Positions the SLOPES menu on the digitising table.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
The SETUP MENU command allows the SLOPES menu to be positioned on the
digitising table.
On giving the command you will be asked to digitise the 4 corners points of
the menu. The corners are digitised in the order top left (NW), bottom left
(SW), bottom right (SE) and top right (NE) using any button on the table puck.
A point should be digitised in response to a prompt on the terminal.
Once a menu has been positioned on the table, it is possible to enter
many of the SLOPES commands by digitising a point in the appropriate menu
box. If a command requires a parameter argument, you should enter the
parameter in response to the prompt on the terminal, using the keyboard.
--------------------------------------------------------------------------------
The following error messages are specific to the SETUP and SETUP MENU
commands:
--------------------------------------------------------------------------------
SLOPES>SETUP MENU
--------------------------------------------------------------------------------
Calculates and displays a shaded relief map.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command calculates a shaded relief map.
Output is displayed on the graphics screen if ENABLE GRAPHICS command has
been given and/or to a DTI file if the FILEOUT command has been issued.
The description section contains more information on the algorithms used in the
generation of a shaded relief map.
SHADE information is only calculated for matrix points that lie within the
currently defined WINDOW.
Typing
--------------------------------------------------------------------------------
The following error messages are specific to the SHADE command.
--------------------------------------------------------------------------------
SLOPES>SHADE
--------------------------------------------------------------------------------
Shows information about legend and user annotation information.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Outputs details of the label and legend positions, and label size
to the terminal.
--------------------------------------------------------------------------------
The following error messages are specific to the SHOW command.
--------------------------------------------------------------------------------
SLOPES>SHOW ANNOTATION
--------------------------------------------------------------------------------
Displays information about the current aspect parameter settings.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Information about the current aspect parameter settings is displayed
on the terminal.
--------------------------------------------------------------------------------
The following error messages are specific to the SHOW command.
--------------------------------------------------------------------------------
SLOPES>SHOW ASPECT
--------------------------------------------------------------------------------
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 SLOPES options that may be
enabled or disabled using the ENABLE and DISABLE commands.
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.
--------------------------------------------------------------------------------
The following error messages are specific to the SHOW command.
--------------------------------------------------------------------------------
SLOPES>SHOW ENABLE
--------------------------------------------------------------------------------
Displays information about the currently selected input and output files.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
This command displays information about the currently selected input and
output DTI files.
Details extracted from the header of the input DTM are displayed on the
terminal, along with details of the current window or area of interest.
The header values are shown in the current units of measurement. This is
dependent on the header type of the input file, or may be set explicitly using
the UNITS command. By default or if the ENABLE ABSOLUTE command has been given
then metre or projection values are expressed in absolute values.
--------------------------------------------------------------------------------
The following error messages are specific to the SHOW command.
--------------------------------------------------------------------------------
SLOPES>SHOW FILES
--------------------------------------------------------------------------------
Displays information about the current height difference parameter
settings.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Information about the current height difference parameter settings is
displayed on the terminal.
--------------------------------------------------------------------------------
The following error messages are specific to the SHOW command.
--------------------------------------------------------------------------------
SLOPES>SHOW HEIGHT_DIFFERENCE
--------------------------------------------------------------------------------
Displays information about the current shade parameter settings.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Information about the current shade parameter settings is
displayed on the terminal.
--------------------------------------------------------------------------------
The following error messages are specific to the SHOW command.
--------------------------------------------------------------------------------
SLOPES>SHOW SHADE
--------------------------------------------------------------------------------
Displays information about the current slope parameter settings.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Information about the current slope parameter settings is
displayed on the terminal.
--------------------------------------------------------------------------------
The following error message is specific to the SHOW command.
--------------------------------------------------------------------------------
SLOPES>SHOW SLOPE
--------------------------------------------------------------------------------
Calculates and displays a slope map.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
algorithm
The index number of the slope algorithm to be used. A value in the
range 1 to 5 is required. The 5 slope algorithms are as follows:-
If the algorithm is omitted then the last selected algorithm is used.
--------------------------------------------------------------------------------
This command calculates a slope map indicating the gradient
at each DTM node and using the specified algorithm. Further details of the
SLOPE algorithms is contained in the description section.
Output is displayed on the graphics screen if
ENABLE GRAPHICS command has been given and/or to a DTI file if the FILEOUT
command has been issued.
If output is to a DTI file then if the ENABLE CLASSIFY has been given
each classified index, as defined by the STEP and COLOUR commands are output
to the DTI file. Otherwise the actual calculated slope values
are output. On completion of SLOPE calculation, details of the DTI file
produced are output to the terminal.
Values are calculated in degrees unless the ENABLE PERCENT command has been
given, in which case values are output as percentage slope. The ZSCALE
command may be used to increase the slope values by the specified factor.
SLOPE information is only calculated for the currently defined WINDOW.
Typing
--------------------------------------------------------------------------------
The following error messages are specific to the SLOPE command.
--------------------------------------------------------------------------------
SLOPES>SLOPE 1
--------------------------------------------------------------------------------
Allows a DCL sub-command to be spawned within the SLOPES program.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
command
The DCL command which is to be spawned. A Valid DCL command is required.
SPAWN allows a DCL command to be obeyed from within the SLOPES program.
This is to allow file management operations such as DIRECTORY,
DELETE and RENAME to be carried out during program execution.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>SPAWN DIRECTORY LSL$DTI
SLOPES>SPAWN RENAME AFRICA.DTI SOUTHAMERICA.DTI
--------------------------------------------------------------------------------
Defines a series of value step intervals.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
values
One or more step interval values. Up to 7 integer values
may be specified. At least one value is required.
--------------------------------------------------------------------------------
This command divides the calculated values for the SLOPE and
HEIGHT_DIFFERENCE commands,
into a series of steps which are displayed in different colours.
A single value denotes a constant step interval, while
a variable step interval may be defined by entering up to 7 values.
A particular colour index may be associated with each step by means of the
COLOUR command.
The default value is a step of 5.
The colour index that will be associated with each step may
by examined by means of the command SHOW SLOPE or SHOW HEIGHT_DIFFERENCE.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>STEP 10
--------------------------------------------------------------------------------
Sets the sun angle for SHADE calculations.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
angle
The angle of elevation in degrees of the sun. A real value in the range 0
to 90 degrees is required. The default angle is 45 degrees.
--------------------------------------------------------------------------------
This command is used to set the angle of elevation of the light source
for SHADE calculations.
Reducing the sun angle tends to increase the
slope component, and is therefore useful for emphasising slope in less
mountainous areas.
The current value of the SUN_ANGLE may be shown by using the SHOW SHADE
command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>SUN_ANGLE 30
--------------------------------------------------------------------------------
Sets the sun position for SHADE calculations.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
angle
The sun position or azimuth measured in degrees clockwise from north.
A real value in the range 0
to 360 degrees is required. The default angle is 315 degrees (North-West).
--------------------------------------------------------------------------------
This command is used to set the position of the light source
for SHADE calculations. The default value of 315 degrees is chosen
because it represents normal visual perception of the terrain.
It may be useful to change the sun position to show more clearly
terrain features lying in particular direction.
The current value of the SUN_POSITION may be shown by using the SHOW SHADE
command.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>SUN_POSITION 45
--------------------------------------------------------------------------------
Specifies the units of measurement that will be used when defining an area
of interest in the input DTI file.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
units
A keyword defining the measurement units, chosen from:
--------------------------------------------------------------------------------
The UNITS command defines the units of measurement that will be used when
defining an area of interest in the currently selected DTI file
by means of the WINDOW command.
The command should be given after defining the an DTI file since an
appropriate default units of measurement is set up when the file is opened.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Defines the range of values that will be displayed.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
lower_value
The lower value of the required range of values.
upper_value
The upper value of the required range of values.
Two integer arguments are required.
--------------------------------------------------------------------------------
The VALUE_RANGE command is used to define the range of values output when
the SLOPES or HEIGHT_DIFFERENCE commands are given.
Cells with values outside the range appear in black on the displayed image.
They are output as null values in the output DTI file.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Suspends the program for a specified number of seconds.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
interval
The time interval in seconds. A real value is required.
--------------------------------------------------------------------------------
This command suspends program execution for the specified time interval.
It is useful for demonstration purposes if SLOPES is being run from a command
file.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
SLOPES>WAIT 5.0
--------------------------------------------------------------------------------
Specifies an area of interest in the currently selected DTI file.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
xmin ymin
xmax ymax
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.
--------------------------------------------------------------------------------
The WINDOW command is used to limit display to a particular
rectangular geographical area. Only nodes in the DTI file that lie within
this area
are drawn when the DISPLAY command is given.
If the logical name LSL$MATRIX_DEFAULT_WINDOW is defined with a value of
"1", then a default area of interest defined in matrix units of bottom left
hand corner 1,1 and top right hand corner 200,200 is set when the file is
opened. If the logical name is absent or has any other value, or if the input
DTI file has fewer than 200 columns or 200 rows, then a default window
equivalent to the total matrix is set.
If a digitising table is available, and a map has been registered to the
DTI file, the coordinates of the window may be defined using any button on the
table puck.
--------------------------------------------------------------------------------
The following messages are specific to the WINDOW command:
--------------------------------------------------------------------------------
SLOPES>WINDOW 1 1 200 200
--------------------------------------------------------------------------------
Sets height limits on SLOPE, ASPECT and HEIGHT_DIFFERENCE calculation.
--------------------------------------------------------------------------------
----------------------------------------------
Messages:
*** ERROR *** Specifying command ASPECT
Output medium not specified
Use ENABLE GRAPHICS or FILEOUT commands
*** ERROR *** Specifying command ASPECT
No input DTI file had been specified
*** ERROR *** Specifying command ASPECT
DATA_TYPE BYTE illegal for ASPECT output
Examples:
SLOPES>
CENTRE COMMAND
CENTRE
FORMAT: CENTRE x_coord y_coord
Command parameters:
DESCRIPTION:
Messages:
*** ERROR *** Specifying command CENTRE
A graphics device is not selected
*** ERROR *** Specifying command CENTRE
Command requires 1 DTI x,y coord pair
Examples:
SLOPES>
CLEAR
CLEAR
FORMAT: CLEAR
Command Parameters: _None
DESCRIPTION:
Messages:
The following messages are specific to the CLEAR command.
Valid qualifier is LABEL
Example:
SLOPES>
CLEAR LABEL
CLEAR LABEL
FORMAT: CLEAR LABEL
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the CLEAR command.
*** ERROR *** specifying command CLEAR
Valid qualifier is LABEL
Example:
SLOPES>
COLOURS COMMAND
COLOURS
FORMAT: COLOURS I1 I2 ...I7
Command parameters:
DESCRIPTION:
eg.
COLOURS 3 12 7
allocates colours 3,12 and 7 in the colour table to the first three gradient
steps in a slope map.
Messages:
*** ERROR *** Specifying command COLOURS
Command requires between 1 and 7 colour index values
*** ERROR *** Specifying command COLOURS
Colour values should be in the range 1 to 127
Examples:
SLOPES>
DATA_TYPE
DATA_TYPE
FORMAT: DATA_TYPE keyword
Command Parameters:
BYTE
WORD
LONGWORD
REAL
DESCRIPTION:
Messages:_None
The following message is specific to the DATA_TYPE command.
*** ERROR *** specifying command DATA_TYPE
Valid qualifier is BYTE, LONGWORD, REAL or WORD.
Example:
SLOPES>
DEFAULT ASPECT
DEFAULT ASPECT
FORMAT: DEFAULT ASPECT
Command Parameters: _None
DESCRIPTION:
ANGLE_INTERVAL 30 degrees
ZLIMITS DTI file minimum and maximum values
LUT ASPECT LSL$LOOKUP:SLOPES.DAT
Colour Image Selected
Messages:
The following message is specific to the DEFAULT command.
*** ERROR *** specifying command DEFAULT
Valid qualifier is SLOPE ,ASPECT, SHADE or HEIGHT_DIFFERENCE
Example:
SLOPES>
DEFAULT HEIGHT_DIFFERENCE
DEFAULT HEIGHT_DIFFERENCE
FORMAT: DEFAULT HEIGHT_DIFFERENCE
Command Parameters: _None
DESCRIPTION:
STEP 5
VALUE_RANGE 0 - 60
ZLIMITS DTI file minimum and maximum values
LUT HEIGHT__DIFFERENCE LSL$LOOKUP:SLOPES.DAT
Calculation of Average Height difference selected
Messages:
The following message is specific to the DEFAULT command.
*** ERROR *** specifying command DEFAULT
Valid qualifier is SLOPE ,ASPECT, SHADE or HEIGHT_DIFFERENCE
Example:
SLOPES>
DEFAULT SHADE
DEFAULT SHADE
FORMAT: DEFAULT SHADE
Command Parameters: _None
DESCRIPTION:
SUN_ANGLE 45 degrees
SUN_POSITION 315 degrees (North-West)
REFLECTANCE_MAP 2
LUT SHADE LSL$LOOKUP:GREY.DAT
Messages:
The following message is specific to the DEFAULT command.
*** ERROR *** specifying command DEFAULT
Valid qualifier is SLOPE ,ASPECT, SHADE or HEIGHT_DIFFERENCE
Example:
SLOPES>
DEFAULT SLOPE
DEFAULT SLOPE
FORMAT: DEFAULT SLOPE
Command Parameters: _None
DESCRIPTION:
STEP 5 degrees
VALUE_RANGE 0 - 60 degrees
ZLIMITS DTI file minimum and maximum values
LUT SLOPE LSL$LOOKUP:SLOPES.DAT
Slope data in degrees
Messages:
The following message is specific to the DEFAULT command.
*** ERROR *** specifying command DEFAULT
Valid qualifier is SLOPE ,ASPECT, SHADE or HEIGHT_DIFFERENCE
Example:
SLOPES>
DISABLE ABSOLUTE
DISABLE ABSOLUTE
FORMAT: DISABLE ABSOLUTE
Command Parameters: _None
DESCRIPTION:
By default window values should be specified as absolute coordinates.
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE AVERAGE
DISABLE AVERAGE
FORMAT: DISABLE AVERAGE
Command Parameters: _None
DESCRIPTION:
If DISABLE AVERAGE is given, then maximum height difference is calculated
when the HEIGHT_DIFFERENCE command is given.
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE CLASSIFY
DISABLE CLASSIFY
FORMAT: DISABLE CLASSIFY
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE CLEAR
DISABLE CLEAR
FORMAT: DISABLE CLEAR
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE GRAPHICS
DISABLE GRAPHICS
FORMAT: DISABLE GRAPHICS
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE GREYSCALE
DISABLE GREYSCALE
FORMAT: DISABLE GREYSCALE
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE LEGEND
DISABLE LEGEND
FORMAT: DISABLE LEGEND
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE NULL_BORDER
DISABLE NULL_BORDER
FORMAT: DISABLE NULL_BORDER
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE PERCENT
DISABLE PERCENT
FORMAT: DISABLE PERCENT
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE RECENTRE
DISABLE RECENTRE
FORMAT: DISABLE RECENTRE
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE TABLE
DISABLE TABLE
FORMAT: DISABLE TABLE
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DISABLE TEXT
DISABLE TEXT
FORMAT: DISABLE TEXT
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the DISABLE command.
*** ERROR *** Specifying command DISABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
DRAW LABEL
DRAW LABEL
FORMAT: DRAW LABEL text
Command parameters:
DESCRIPTION:
Messages:
The following message is specific to the DRAW LABEL command.
*** ERROR *** Specifying command DRAW
Command qualifier is LABEL
Examples:
SLOPES>
ENABLE ABSOLUTE
ENABLE ABSOLUTE
FORMAT: ENABLE ABSOLUTE
Command Parameters: _None
DESCRIPTION:
By default window values should be specified as absolute coordinates.
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE AVERAGE
ENABLE AVERAGE
FORMAT: ENABLE AVERAGE
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE CLASSIFY
ENABLE CLASSIFY
FORMAT: ENABLE CLASSIFY
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>FILEOUT TEST
SLOPES>STEP 10
SLOPES>COLOURS 5 10 15 20 30
SLOPES>SLOPE 1
File LSL$DTI:TEST.SLP opened for output
SLOPES>
ENABLE CLEAR
ENABLE CLEAR
FORMAT: ENABLE CLEAR
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE GRAPHICS
ENABLE GRAPHICS
FORMAT: ENABLE GRAPHICS
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE GREYSCALE
ENABLE GREYSCALE
FORMAT: ENABLE GREYSCALE
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE LEGEND
ENABLE LEGEND
FORMAT: ENABLE LEGEND
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>ENABLE LEGEND
SLOPES>
ENABLE NULL_BORDER
ENABLE NULL_BORDER
FORMAT: ENABLE NULL_BORDER
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE PERCENT
ENABLE PERCENT
FORMAT: ENABLE PERCENT
Command Parameters: _None
DESCRIPTION:
450 = 100%
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE RECENTRE
ENABLE RECENTRE
FORMAT: ENABLE RECENTRE
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE TABLE
ENABLE TABLE
FORMAT: ENABLE TABLE
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENABLE TEXT
ENABLE TEXT
FORMAT: ENABLE TEXT
Command Parameters: _None
DESCRIPTION:
Messages:
The following message is specific to the ENABLE command.
*** ERROR *** Specifying command ENABLE
Command qualifiers are ABSOLUTE, AVERAGE, CLEAR,
CLASSIFY, GRAPHICS, GREYSCALE, LEGEND, NULL_BORDER, PERCENT,
RECENTRE, TABLE or TEXT
Examples:
SLOPES>
ENLARGE
ENLARGE
FORMAT: ENLARGE
Command Parameters: _None
DESCRIPTION:
Messages
Examples:
SLOPES>
EXIT
EXIT
FORMAT: EXIT
Command Parameters: _None
DESCRIPTION:
Messages _None
Example:
_$
FILEIN
FILEIN
FORMAT: FILEIN file-spec
Command parameters:
DESCRIPTION:
Details derived from the header of the file are displayed on the terminal
to confirm that the file has been successfully opened.
Messages:
The following messages are specific to the FILEIN command.
*** ERROR *** Specifying command FILEIN
Filename is missing
Example:
File : LSL$DTI:TEST.DTI
Header : LSLA Data: WORD
Units are DTI Matrix Value
Matrix Coverage SW: 1 1 NE: 301 251
Matrix Window SW: 1 1 NE: 301 251
Matrix Interval E: 1 N: 1
Value Range : 0 to 851
SLOPES>
FILEOUT COMMAND
FILEOUT
FORMAT: FILEOUT file-spec
COMMAND PARAMETERS:
DESCRIPTION:
Messages:
*** ERROR *** Specifying command FILEOUT
Filename is missing
Examples:
SLOPES> FILEOUT DUA3:[DEMONSTRATION]IDAHO<CR>
SLOPES>
HEIGHT_DIFFERENCE COMMAND
HEIGHT_DIFFERENCE
FORMAT: HEIGHT_DIFFERENCE
Command parameters:_None
DESCRIPTION:
Messages:
*** ERROR *** Specifying command HEIGHT_DIFFERENCE
Output medium not specified
Use ENABLE GRAPHICS or FILEOUT commands
*** ERROR *** Specifying command HEIGHT_DIFFERENCE
No input DTI file had been specified
Examples:
SLOPES>
HELP
HELP
FORMAT: HELP [command]
Command parameters:
DESCRIPTION:
Messages: _None
Examples:
SLOPES>
LABEL POSITION
LABEL POSITION
FORMAT: LABEL POSITION screenx screeny
Command parameters:
DESCRIPTION:
Messages:
The following messages are specific to the LABEL and LABEL POSITION
commands.
*** ERROR *** Specifying command LABEL
Command qualifiers are POSITION or SIZE
Examples:
SLOPES>
LABEL SIZE
LABEL SIZE
FORMAT: LABEL SIZE font-size
Command parameters:
DESCRIPTION:
Messages:
The following messages are specific to the LABEL and LABEL SIZE
commands.
*** ERROR *** Specifying command LABEL
Command qualifiers are POSITION, or SIZE
*** ERROR *** Specifying command LABEL SIZE
Command requires an integer in the range 1 to 4
Examples:
SLOPES>
LEGEND POSITION
LEGEND POSITION
FORMAT: LEGEND POSITION screenx screeny
Command parameters:
DESCRIPTION:
Messages:
The following messages are specific to the LEGEND and LEGEND POSITION
commands.
*** ERROR *** Specifying command LEGEND
Command qualifier is POSITION
Examples:
SLOPES>
LUT
LUT
FORMAT: LUT [keyword] file-spec
Command parameters:
ASPECT
HEIGHT_DIFFERENCE
SLOPE
SHADE
DESCRIPTION:
Messages:
The following message is specific to the LUT command.
*** ERROR *** Specifying command LUT
Filename is missing
*** ERROR *** Specifying command LUT
A graphics device is not selected
Examples:
SLOPES>LUT YELLOWREDUCE
REDUCE
FORMAT: REDUCE
Command Parameters: _None
DESCRIPTION:
Messages
Examples:
SLOPES>
REFLECTANCE_MAP
REFLECTANCE_MAP
FORMAT: REFLECTANCE__MAP index
Command Parameters:
DESCRIPTION:
1 = Peucker's piecewise linear approximation
to a Lambertian surface.
2 (default) = Reflectance from a Lambertian surface.
3 = Wiechel's projected incident angle
algorithm.
Messages
The following message is specific to the REFLECTANCE_MAP command.
*** ERROR *** Specifying command REFLECTANCE_MAP
Command requires an integer between 1 and 3
Examples:
SLOPES>
SETUP MAP COMMAND
SETUP MAP
FORMAT: SETUP MAP
DESCRIPTION:
An error message is generated if any of the angles of the digitised
rectangle are less than 88 degrees, or greater than 92 degrees (ie. if the
corner points of the rectangle are more than 2 degrees off rectangular). In
this case you will be asked to redigitise the 4 registration points.
Setup of the map may be aborted using
Messages:
*** ERROR *** Specifying command SETUP
Command qualifiers are MAP or MENU
*** ERROR *** Specifying command SETUP MAP
Command is invalid if the table has not been initialised
*** ERROR *** Specifying command SETUP MAP
The input DTM must be specified before SETUP MAP
*** ERROR *** Setting up MAP
Badly digitised corner points; try again
Examples:
Digitise map NW corner>
Digitise map SW corner>
Digitise map SE corner>
Digitise map NE corner>
SLOPES>
SETUP MENU COMMAND
SETUP MENU
FORMAT: SETUP MENU
DESCRIPTION:
An error message is generated if any of the angles of the digitised
rectangle are less than 88 degrees, or greater than 92 degrees (ie. if the
corner points of the rectangle are more than 2 degrees off rectangular). In
this case you will be asked to redigitise the 4 menu corner points.
Setup of the menu may be aborted using
Messages:
*** ERROR *** Specifying command SETUP
Command qualifiers are MAP or MENU
*** ERROR *** Specifying command SETUP MENU
Command is invalid if the table has not been initialised
*** ERROR *** Setting up MENU
Badly digitised corner points; try again
Examples:
Digitise menu NW corner>
Digitise menu SW corner>
Digitise menu SE corner>
Digitise menu NE corner>
SLOPES>
SHADE COMMAND
SHADE
FORMAT: SHADE
Command parameters:_None
DESCRIPTION:
Messages:
*** ERROR *** Specifying command SHADE
Output medium not specified
Use ENABLE GRAPHICS or FILEOUT commands
*** ERROR *** Specifying command SHADE
No input DTI file had been specified
Examples:
SLOPES>
SHOW ANNOTATION
SHOW ANNOTATION
FORMAT: SHOW ANNOTATION
Command parameters: _None
DESCRIPTION:
Messages:
*** ERROR *** specifying command SHOW
SHOW qualifiers are ANNOTATION, ASPECT, ENABLE, FILES,
HEIGHT_DIFFERENCE, SHADE or SLOPE
Examples:
Current label setting:
Position: X 150 Y 75 Size 2
Current legend setting:
Position: X 50 Y 150
SLOPES>
SHOW ASPECT COMMAND
SHOW ASPECT
FORMAT: SHOW ASPECT
Command parameters:_None
DESCRIPTION:
Messages:
*** ERROR *** specifying command SHOW
SHOW qualifiers are ANNOTATION, ASPECT, ENABLE, FILES,
HEIGHT_DIFFERENCE, SHADE or SLOPE
Examples:
Z limits : -32766 to 32767
Angular step : 30
Look up table : LSL$LOOKUP:SLOPES.DAT
Aspect colour image selected
SLOPES>
SHOW ENABLE COMMAND
SHOW ENABLE
FORMAT: SHOW ENABLE
Command parameters:_None
DESCRIPTION:
Messages:
SHOW qualifiers are ANNOTATION, ASPECT, ENABLE, FILES,
HEIGHT_DIFFERENCE, SHADE or SLOPE
Examples:
Current status:
ABSOLUTE On AVERAGE On CLASSIFY Off
CLEAR On GRAPHICS Off GREYSCALE Off
LEGEND On NULL_BORDER Off PERCENT Off
RECENTRE On TABLE Off TEXT On
SLOPES>
SHOW FILES COMMAND
SHOW FILES
FORMAT: SHOW FILES
Command parameters:_None
DESCRIPTION:
Messages:
*** ERROR *** specifying command SHOW
SHOW qualifiers are ANNOTATION, ASPECT, ENABLE, FILES,
HEIGHT_DIFFERENCE, SHADE or SLOPE
Examples:
File : LSL$DTI:matrix_test.DTI
Header : LSLA Data: WORD
Units are metres
Matrix Coverage SW: 450000.00 80000.00 NE: 460000.00 90000.00
Matrix Window SW: 450000.00 80000.00 NE: 460000.00 90000.00
Matrix Interval E: 50.00 N: 100.00
Value Range :-32766 to 32767
File LSL$DTI:MATRIX_TEST.SLP selected for output
SLOPES>
SHOW HEIGHT_DIFFERENCE COMMAND
SHOW HEIGHT_DIFFERENCE
FORMAT: SHOW HEIGHT_DIFFERENCE
Command parameters:_None
DESCRIPTION:
Messages:
*** ERROR *** specifying command SHOW
SHOW qualifiers are ANNOTATION, ASPECT, ENABLE, FILES,
HEIGHT_DIFFERENCE, SHADE or SLOPE
Examples:
Calculation of average height difference selected
Z limits : -32766 to 32767
Value range : 0 to 60
Z Scale : 1
Number of steps : 12
Look up table : LSL$LOOKUP:SLOPES.DAT
Step upper limits : 5 10 15 20 25 30 35 40 45 50
: 55 60
Colour indices : 2 3 4 5 6 7 8 9 10 11
: 12 13
SLOPES>
SHOW SHADE COMMAND
SHOW SHADE
FORMAT: SHOW SHADE
Command parameters:_None
DESCRIPTION:
Messages:
*** ERROR *** specifying command SHOW
SHOW qualifiers are ANNOTATION, ASPECT, ENABLE, FILES,
HEIGHT_DIFFERENCE, SHADE or SLOPE
Examples:
Sun position : 315.0
Sun angle : 45.0
Reflectance map: 2
Z Scale : 1
Look up table : LSL$LOOKUP:GREY.DAT
SLOPES>
SHOW SLOPE COMMAND
SHOW SLOPE
FORMAT: SHOW SLOPE
Command parameters:_None
DESCRIPTION:
Messages:
*** ERROR *** specifying command SHOW
SHOW qualifiers are ANNOTATION, ASPECT, ENABLE, FILES,
HEIGHT_DIFFERENCE, SHADE or SLOPE
Examples:
Gradient algorithm: 1
Z limits : -32766 to 32767
Z Scale : 1
Gradient range : 0 to 60
Gradient units : Degrees of Slope
Number of steps : 12
Look up table : LSL$LOOKUP:SLOPES.DAT
Step upper limits : 5 10 15 20 25 30 35 40 45 50
: 55 60
Colour indices : 2 3 4 5 6 7 8 9 10 11
: 12 13
SLOPES>
SLOPE COMMAND
SLOPE
FORMAT: SLOPE [algorithm]
Command parameters:
1 = 3 by 3 local operator (default)
2 = Average of 2 facet normals for 2 by 2 matrix
3 = Average of 4 facet normals for 2 by 2 matrix
4 = Average of 4 facet normals for 3 by 3 matrix
5 = Maximum slope computed using 4 facet normals
for 3 by 3 matrix
DESCRIPTION:
Messages:
*** ERROR *** Specifying command SLOPE
Output medium not specified
Use ENABLE GRAPHICS or FILEOUT commands
*** ERROR *** Specifying command SLOPE
No input DTI file had been specified
*** WARNING *** Specifying command SLOPE
Gradient algorithm should be in the range 1 to 5
Current gradient algorithm will be used
Examples:
SLOPES>
SPAWN
SPAWN
FORMAT: SPAWN command
Command parameters:
--------------------------------------------------------------------------------
DESCRIPTION:
Messages:
The following message is specific to the SPAWN command.
*** ERROR *** Specifying command SPAWN
SPAWN requires a valid DCL command
Examples:
Directory DUA0:[DTI]
AFRICA.DTI;2 LS41.DTI;1 WALES.DTI;3 TEST.DTI;13
Total of 3 files
SLOPES>
STEP
STEP
FORMAT: STEP values[...]
Command parameters:
DESCRIPTION:
Messages:
The following messages are specific to the STEP command.
*** ERROR *** Specifying command STEP
Command requires between 1 and 7 integer values
*** ERROR *** Specifying command STEP
Command requires integer values in the range 1 to "upper-value"
*** WARNING *** Value range exceeded
step "step_number" is truncated to "DTI-value"
Examples:
SLOPES>STEP 1 2 3 5 10 10 10
SLOPES>
SUN_ANGLE
SUN_ANGLE
FORMAT: SUN_ANGLE angle
Command parameters:
DESCRIPTION:
Messages:
The following messages are specific to the SUN_ANGLE command.
*** ERROR *** Specifying command SUN_ANGLE
Command requires a real value between 0 and 90
Examples:
SLOPES>
SUN_POSITION
SUN_POSITION
FORMAT: SUN_POSITION angle
Command parameters:
DESCRIPTION:
Messages:
The following messages are specific to the SUN_POSITION command.
*** ERROR *** Specifying command SUN_POSITION
Command requires a real value between 0 and 360
Examples:
SLOPES>
UNITS COMMAND
UNITS
FORMAT: UNITS units
Command parameters:
MATRIX Matrix grid interval units, i.e rows and columns
METRES Metre offsets from the south west corner of the DTI file
SECONDS Latitude and Longitude in seconds of arc
LATLONG Latitude and Longitude in degrees, minutes and seconds
PROJECTION Projection Record Units (eg. mms on the source document)
DESCRIPTION:
The command also controls in what format details from the header of the
DTI file are displayed, when the SHOW FILES command is given.
Messages:
The following messages are specific to the UNITS command.
*** ERROR *** Specifying command UNITS
Command should be followed by MATRIX, METRES, LATLONG, SECONDS or PROJECTION
Current setting is "units"
*** ERROR *** Specifying command UNITS
Command qualifier is invalid for the input file
Examples:
SLOPES> UNITS MATRIX<CR>
SLOPES>
VALUE_RANGE COMMAND
VALUE_RANGE
FORMAT: VALUE_RANGE lower_value upper_value
Command parameters:
DESCRIPTION:
Messages:
The following message is specific to the VALUE_RANGE command.
*** ERROR *** Specifying command VALUE_RANGE
Lower value exceeds upper value
Examples:
SLOPES> VALUE_RANGE 5 15<CR>
SLOPES>
WAIT
WAIT
FORMAT: WAIT interval
Command parameters:
DESCRIPTION:
Messages:
The following messages are specific to the WAIT command.
*** ERROR *** Specifying command WAIT
Command requires a real in the range 1 to 1000
Examples:
SLOPES>
WINDOW COMMAND
WINDOW
FORMAT: WINDOW xmin ymin xmax ymax
Command parameters:
The coordinates of the bottom left hand corner of the defining rectangle.
The coordinates of top right hand corner of the defining rectangle.
DESCRIPTION:
The area of interest should lie within the geographical bounds of the DTI
file.
Messages:
*** ERROR *** Specifying command WINDOW
Command not available during editing operation
*** ERROR *** Specifying command WINDOW
Command requires 4 coordinate values
*** ERROR *** Specifying command WINDOW
DTI file has not yet been opened
*** ERROR *** Specifying command WINDOW
NE coordinates should exceed SW coordinates
*** ERROR *** Specifying command WINDOW
Unable to use supplied LAT LONG values
*** WARNING *** Specified window exceeds matrix limits
Window will be truncated to fit
Examples:
SLOPES>UNITS LATLONG
SLOPES>WINDOW 42 00 00N 3 00 00E 42 30 00N 2 58 40E
SLOPES>
ZLIMITS COMMAND
ZLIMITS
FORMAT: ZLIMITS lower_height upper_height