Issue #1425 make contouring handle NaN better.

Former-commit-id: 0890a0d5ef [formerly a1bda65a85] [formerly 1588e1b194] [formerly 0890a0d5ef [formerly a1bda65a85] [formerly 1588e1b194] [formerly b4f100da04 [formerly 1588e1b194 [formerly c090b012a6fafb8816f0c17c1af6f14774f08d83]]]]
Former-commit-id: b4f100da04
Former-commit-id: d8c38ca001 [formerly a7c1e74ac2] [formerly 3fa986665c1a6afc6f6f8b89446a6dd262195d4f [formerly 06ae24cf4f]]
Former-commit-id: 37495d1bb0377bd951a8b1899457f71d6418bffe [formerly 45d4ef7ea5]
Former-commit-id: 8af25f1870
This commit is contained in:
Ben Steffensmeier 2012-12-19 13:23:10 -06:00
parent a78970da48
commit d66d85e346

View file

@ -364,7 +364,7 @@ public class ContourSupport {
float min = Float.POSITIVE_INFINITY;
float max = Float.NEGATIVE_INFINITY;
for (float f : data1D) {
if (f != Util.GRID_FILL_VALUE) {
if (f != Util.GRID_FILL_VALUE && !Float.isNaN(f)) {
min = Math.min(min, f);
max = Math.max(max, f);
}