Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

math errors #5

Open
mankoff opened this issue Jun 16, 2013 · 0 comments
Open

math errors #5

mankoff opened this issue Jun 16, 2013 · 0 comments

Comments

@mankoff
Copy link
Contributor

mankoff commented Jun 16, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant