Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 20 Next »

Name

con — Contour dataset using scalars

Syntax

con i | v | s | n | ms | l [noadj] [sav]

Description

Contor dataset with lines following the scalar values.

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, val1val2, ...

s start increment stop

s for step needs three numbers: startincrement 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.

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. Use this argument for contouring vertical surfaces like cross sections.

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.

Examples

Ex.1: Contours following scalars

The above example produces this image.

        spe bgc whi    ;# specify background color to white
        vie def        ;# reset viewport
        ret 10         ;# return start window
        vie 4 1 1      ;# set up 4 viewports, select first
        mak ran 11     ;# make random points
        grp 70 70      ;# make grid and scalars
        ssc            ;# self scale
        mak p          ;# transform grid to polydata
        acm n 11       ;# map display
        con l          ;# contour using same levels
        mak sca        ;# be sure the scalars are there
        mhi grid1      ;# move grid to hi grid1
        vie 2 con      ;# select viewport 2and connect
        mak ran 11     ;# make new random points
        grp 70 70      ;# make new grid
        mak p          ;# transform grid to polydata
        acm l          ;# map display
        con l          ;# contour using same levels
        mak sca        ;# be sure the scalars are there
        mhi grid2      ;# move grid to hi grid2
        vie 3 con      ;# select viewport 3 and connect
        mlo grid1      ;# move grid1 to active
        mak rsc grid2  ;# replace scalars from grid2
        acm l          ;# map grid2 on top of grid1
        con l          ;# contour grid2 on top of grid1
        vie 4 con      ;# select viewport 4 and connect
        mlo grid2      ;# move grid2 to active
        mak rsc grid1  ;# replace scalars from grid1
        acm l          ;# map grid1 on top of grid2
        con l          ;# contour grid1 on top of grid2
        xwi sel        ;# force selected window in front


Displaying scalars from two grids on top of the other grid surface

See also

acm - Color band mapping, cco - Color code legend, cnn - Contour two sides, map - Map display, sma - Spline map

  • No labels