Given a small sample input file like:
0,0,10
10,10,10
10,0,10
0,10,10
and running p2g with a very large search radius and resolution, one would expect a single output point with a min, mean, and max of 10.
I run p2g like this:
points2grid -i test.xyz --output_format grid -r 1E4 --mean --input_format ascii --resolution 1E4 --output_file_name test.xyz --min --max
The output for min, mean, and max are all:
north: 10.000000
south: 0.000000
east: 10.000000
west: 0.000000
rows: 2
cols: 2
10.000000 -9999
10.000000 10.000000
Note that with an even simpler input file of just two points, the two corner points, of [0,0,10], and [10,10,10], then the result is more correct. There output is a 1x1 grid with min, mean, and max of 10.