This example shows how to build surface by approximating areas with constant real numbers and how to set additional condition (weighted mean value) on surface in area. In this example 6 different areas were used. This example looks like area_mean.tcl example, but for area6 weighted mean condition was set.Here is the image of the resulting surface (green colour for areas 1,3 and 5, red colour for areas 2 and 4, magenta for area 6):
Pic 1. Surface with weighted mean value = 30, built from areas
This result was obtained with
surfit: gridding and contouring software.