randomSeed(5224)

xx= randu(1200)
yy= randu(1200)
zz= xx + yy + mod(indgen(1200),2)

x= flatten( outerProduct( linspace(0,1,300), ones(300) ) )[:,2]
y= flatten( outerProduct( ones(300),linspace(0,1,300) ) )[:,2]

y= y*20000.
x= x*20000.
xx= xx*20000.
yy= yy*20000.

z= buckshotInterpolate( bundle( xx,yy ), zz, x, y )
zz= grid( bundle( x, y, z ) )

plot( x,y, z, symbolSize=3 )

