Hi all,
I'm trying to take a raster, open it, and find the maximums and minimums of its pixel values. When I run
http://www.harrisgeospati...iRasterIterator.html I get the maximum as the correct value, but the tools I use to create the raster set the value for no pixel to be "-1", and "-1", not my lowest true data value, comes up as the minimum.
I've tried modifying it to ignore the -1 value by adding the keyword "data_ignore_value=1.0000" when opening the raster with e.openraster, and by creating a masked raster file with a mask built from "(raster.GetData(BAND=0) ge -1.0000)", neither of which affects the minimum that comes out. One last approach I tried was throwing the tile through the function "WHERE(tile GT -1)", although this resulted in my correct min and max values being seemingly random values.
Any guidance would be greatly appreciated,
Jared