Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

output data has index which is not exist in input data #38

Closed
timeroute opened this issue Feb 10, 2020 · 2 comments
Closed

output data has index which is not exist in input data #38

timeroute opened this issue Feb 10, 2020 · 2 comments

Comments

@timeroute
Copy link

the input list data which is long as 10000 only contains numbers as follow:

[
  -32768, 0, 1,
      13, 6, 7,
       8, 9
]

and the theshold is [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
while the output polygons contains value 10/11/12.
the length of the output polygons which value is 10/11/12 is the same as the length of polygons which value is 9.
Is it a bug? how get the output without 10/11/12?

@Fil
Copy link
Member

Fil commented Jun 2, 2020

It doesn't seem to be a bug, the thresholds are levels that separate values. For example if you have an data set with values [1, -1, 1, -1………], with 1 = land and -1 = sea, you can have a threshold = 0 that creates a shore line.

If I didn't understand your question, please feel free to comment with details and possibly a reproducible test case.

@Fil Fil closed this as completed Jun 2, 2020
@Fil
Copy link
Member

Fil commented Jun 2, 2020

It doesn't seem to be a bug, the thresholds are levels that separate values. For example if you have an data set with values [1, -1, 1, -1………], with 1 = land and -1 = sea, you can have a threshold = 0 that creates a shore line.

If I didn't understand your question, please feel free to comment with details and possibly a reproducible test case.

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

No branches or pull requests

2 participants