...
Name
sma — Spline map
Syntax
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
sma i | v | s | n | ms | l | auto | cur [arg1] ;# general syntax for contouring with colorbands, see argument list arg1 := [can] [smo] [map] [flat] [sav] [noadj] [all] |
Description
Contour lines are drawn using spline curves to achieve smooth contours.
Arguments
Main contouring arguments:
Note that the main contouring arguments are the same for other shell commands that contour in various ways.
i incr
incr is the increment value.
v val1 [val2 val3 ...]
Contour at specific values, val1, val2, ...
s start increment stop
s for step needs three numbers: start, increment and stop The first and last contour will be at start and stop.
n number
Use number contours (levels), equally distributed between the minimum and maximum value.
ms start1 incr1 stop1 start2 incr2 stop2
ms for multiple steps needs six following numbers. The first contour will be at start1, the last at stop2.
l
Use levels from the last previous contouring operation.
auto
Automatic selection of appropriate contour intervals.
cur
Use contour level from cursor position. Mark a cursor position on a map with key letter y.
Other arguments:
sav [nodraw]
Will save the contours in active and in workspace under the name ^con which is not directly visible. If the sav argument is used in a command menu which restores the original active data, the user must make it active by mlo ^con.
The nodraw argument prevents the contours to be drawn on the screen.
smo
Smoother contouring using b-splines.
can [frq] [dis] [hi] [anl] [csl] [ant] [ans]
Carthographic annotation.
frq factor - Multiply the frequency counter with factor.
dis distance - Annotate for every distance distance.
hi workspacename - Annotate where contours are crossing lines in workspace workspacename.
anl n | shf - Annotation levels every n'th contour / on color highlighted (color shifted) contours.
shliw n - Shift linewith to n for highlighted contours.
csl color - Color select for number annotation. color is red/gre/bla/...
...
ant factor - Extended annotation testing. factor lower than 0.1
...
will
...
be
...
more
...
restrictive.
...
factor
...
greater
...
than
...
0.1
...
will
...
give
...
more
...
annotation.
...
ans factor - Annotation size factor setting relative to 1.
dec number_of_decimals - Specify number of decimals for annotation numbers. Default is 2 and is applied if annotation numbers have decimals.
numsize factor
Size factor of annotation numbers relative to 1.
csh inc
Color shift. Highlights contours on increment inc.
flat z_level
Contour in a plane at level z_level.
nrg
No regridding for large grids. Gives a more detailed display.
map
Use colors from the map color table on the contours.
eli number
Eliminate small contours with number of points less than number.
noadj
The contours will, by default, be lifted up (or adjusted) a little bit for better visualization. This can be prevented with the noadj argument.
all
Will display all contours even when in 2D mode and the grid is outside the window.
Examples
Ex.1: Spline mapping
No Format | ||||
---|---|---|---|---|
| ||||
# 3d annotation is very different from 2d annotation.
z ;# erase display
win 450000 460000 6450000 6460000 1500 3000 ; # get a new window by coordinates
mak ran 12 ;# make random points
grp 110 110 ;# make grid
bol tub ;# draw border line n tube mode
acm i 250 ;# color band contours
spe col con bla blu ;# contour colors are black and blue
spe col ann bla ;# annotation color is black
sma i 50 csh 250 ann anl shf shliw 3 frq 0.9 ans 1.5; # spline map with annotation
{noformat}
|
The
...
above
...
example
...
produces
...
this
...
image
...
(somewhat
...
zoomed)
...
using
...
the
...
random
...
generated
...
grid
...
in
...
active
...
data
...
as
...
input.
...
Spline map with annotation
See also
acm - Color band mapping , ann - Simple annotation , con - Contour using scalars , lco - Line color , map - Map display