Name
son — Sonar data gridding
Syntax
son ppg [inc] | [nx ny] | [long] [all | four] [tri] [eig] [eigone] [low] [hi] [dob] [auto] [count] [mrf]
Description
Specialized command for gridding sonar data or large point sets. The son without the ppg option is covered by the command grp .
The son ppg is a snapping algorithm of input points to the grid result. The algorithm will snap free point data into a grid of size nx ny. The snap gridding will make defined grid nodes of each node that is closest to an input point. If more than one point are sorted to a node, the node value will be the average of the point values. A count grid telling the number of coincident points can be generated.
Arguments
inc xinc yinc
nx ny
long num
tri
all | four
eig
eigone
low
hi
dob
auto
count
mrf
mrf num
mrf bou nx ny [nodraw]
mrf dis distance
mrf ... abx
Examples
Ex.1: Snap gridding of points
# Snap model gridding z ;# Erase screen win demo ;# Get demo window (450000 460000 6450000 6460000 1000 4000) spe bgc whi ;# Specify background color to white mak ran 55 ;# Make 55 random points poi ;# Display points son ppg 9 9 ;# Make grid of dimension poi 2 ;# Display grid points map ;# Map the grid und 0 ;# Make all undefined cells to 0 poll ;# Draw the grid lines
The above example produces this image.
The example demonstrates how the snapping is performed
Snap gridding showing input points (black) and grid points (red)