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 40 Next »

Unknown macro: {alias}

Name

cal — Calculate various functions and algorithmic features

Syntax

Calculation of the z-value or the scalar-value of a dataset in active memory:

cal [sca] sin | cos | tan | atan | exp | ln | log | abs | pow | sqr | min | max | mul | div | add | sub | fix

Calculation of various algorithms and graphical features:

cal spi | smo | ang ; # calculation of spikes, or smoothing, or angles in line data
cal cut | cpo | cli | ccl | cll ; # calculate cut operations in various data sets
cal sva [zvalue | cur] [ext] ; # calculate sample values in stacking velocities
cal sort x | y | z | s [dsc] ; # Sort data in coordinate direction
cal stdev grid_in_workspace [rem | use] ; # calculate standard deviation of points towards a grid surface
cal aiv [sca | fd fielddata] ; # Generate absolute increasing values in z or optionally in scalars or field data.
cal check [cur] ; # calculate the regridded grid according to decimation and zoom, or use a lookup curve
cal xbo [add addvalue] [fix fixvalue] ; # calculate an extra border around a grid
cal xgr [num number] [bol] ; # Expand grid in undefined area
cal sba ; # calculate scalebar
cal rgr ; # calculate and create a regression line
cal morf [hi morfname] ; # will morf a polydata in active according to the morf dataset

Description

The *cal* command has two sections:

  1. calculation of the z-value or the scalar-value of a dataset in active data.
  2. calculation of various algorithms and graphical features.

Arguments

Calculation of the z-value or the scalar-value of a dataset in active data

sca

sin

cos

tan

atan

exp

ln

log

abs

pow

min

max

mul value

mul value

mul value

div value

add value

sub value

fix

Calculation of spikes, or smoothing, or angles in line data

cal spi | smo | ang

spi [testdistance] [rem] [fau]

rem

fau

smo [distance] [fct]

distance

fct factor

ang [0 | 1 | 2 | cur] [deg]

[0 | 1 | 2 | cur]

deg

morf [hi morfname]

Calculate cut operations in various datasets

cal cut | cpo | cli | ccl | cll

cut level

cpo hiname

cli hiname

ccl hiname

cll [zero]

cll hiname

Calculate sample values in stacking velocities

cal sva [zvalue | cur] [ext]

cal sva zvalue

cal sva cur

cal ... ext

Sort data in coordinate direction

cal sort x | y | z | s [dsc]

cal sort nea

Below is a cross section line that first is sorted in the x direction. It still has some problem areas where it bends back on itself. Then it is sorted in the nearest point direction.


Line sorted in x direction and then in nearest point direction

Calculate standard deviation of points towards a grid surface

cal stdev grid_in_workspace

cal stdev grid_in_workspace rem | use [fct factor] [lt]

Generate absolute increasing values in z or optionally in scalars or field data

cal aiv [sca | fd fielddata]

Calculate the regridded grid according to decimation and zoom

cal check

cal check cur

Calculate extra border or cells in a grid

cal xbo [add addvalue] [fix fixvalue]

cal xgr [num number] [bol]

Calculate and display a scale bar

A scale bar will be generated at the lower part of the graphical window. Many options exists to determine the extent and appearance of the scale bar. The scale bar can be accessed from Tools->scalebar.

cal sba [flip | int | num | nosha | col | pcol | anno | km | div | size | thick | cur | coor | adj | bor]

Calculate regression line for a point data set.

cal rgr

Examples

Ex.1: Removal of spikes in a single line

        # remove spikes by a distance test
        cal spi 500 rem

The example above filtered spikes in the line shown in the image below.

Ex.2: Removal of spikes for multibeam data

        # remove spikes by a standard deviation test
        z                         ; # erase the screen
        win demo                  ; # get demo window
        mak ran 22                ; # make random points
        grp 222 222               ; # generate surface
        col tur                   ; # select turqouise color
        dis                       ; # display the surface
        mhi gg                    ; # save in gg
        mak ran 444444            ; # make a large number of random points
        mhi pp                    ; # save in pp
        cal stdev gg rem 0.1      ; # calculate standard dev. and remove points greater than 0.1 * stand.dev
        poi map                   ; # display remaining points
        cal stdev gg              ; # calculate standard dev. of remaing points

The example above filtered spikes in the large random dataset.

Initial standard deviation was calculated to be: 1049.87 and number of points remaining was: 30843 which again have standard deviation: 60.4146

Ex.3: Sinus calculation from a grid

        # Demonstration of sinus calculation from a grid
        vie 2 1 1       ;# make 2 viewports
        mak ran 11      ;# make 11 random points
        grp 222 222     ;# make grid of dimension 222 x 222
        map             ;# map the grid
        cco map	        ;# color code legend with map option
        vie 2           ;# select viewport 2
        cal sin         ;# calculate sinus values
        map             ;# map the new grid
        cco map tit "Sinus"	;# color code legend and title

The above example produces this image.


Grid surface to the left and the sinus map to the right

See also

add - Add to dataset, sub - Subtract operation, mul - Multiply operation, div - Divide operation, sca - Scale data, mak nsc

  • No labels