1 # Script for transforming points (x y z) into "rectangular surface".
2 # Can be used to draw colour points in gnuplot with the pm3d enhancement
3 # Petr Mikulik, 14. 10. 1999
7 print "Syntax: awk -f colorpts.awk file dx dy" >"/dev/stderr"
8 print "\nWhere 2*dx, 2*dy defines the point size (enlargement) in x, y" >"/dev/stderr"
9 print "Gnuplot usage: set pm3d map; splot '<awk -f colorpts.awk pts.dat 0.01 0.01'" >"/dev/stderr"
23 print x-dx "\t" y-dy "\t" $3
24 print x-dx "\t" y+dy "\t" $3
25 printf "\n" # blank line (new scan)
26 print x+dx "\t" y-dy "\t" $3
27 print x+dx "\t" y+dy "\t" $3
28 printf "\n\n" # two blank lines (new surface)