This example shows how to add gridding rule value with respect to mask.
Here is the image of the resulting surface:
Pic 1. surface and mask
This result was obtained with "examples/surfit/surfs/mask_add.tcl"
script.
surfit: gridding and contouring software.