Select to view content in your preferred language

Raster calculator divide creates anomalous data

4855
5
04-07-2011 02:55 PM
PaulLeonard
Deactivated User
I have two 32bit float rasters that behave normally with all raster calculator functions except divide.  If I divide raster1/raster2 the resulting raster has an anomalous range listed in the TOC.  However, it stores the correct ratio value in the created raster which can be determined by using the identify tool.  I've included two photos to display this.  county_fta/county_ftb = county_divide  The first photo shows the displayed range of the data (county_divide) which is incorrect and further calculations use these data instead of the correct ones that are contained within.  The second photo shows the identify tool showing a normal data point chosen randomly.  Any help greatly appreciated!
0 Kudos
5 Replies
DanPatterson_Retired
MVP Emeritus
have your ruled this out as simply being a symbology issue?  have you tried to float one of the rasters in the raster calculator prior to division to ensure floating point division?  Have you investigated the histogram for the data?
0 Kudos
by Anonymous User
Not applicable
Original User: whuber

The output looks correct to me--there's nothing anomalous about the range, because the denominator includes both negative and positive numbers.  That suggests it may contain numbers close to zero.  Dividing by them will produce values of large size (potentially above 10^30), both positive and negative.
0 Kudos
PaulLeonard
Deactivated User
have your ruled this out as simply being a symbology issue?  have you tried to float one of the rasters in the raster calculator prior to division to ensure floating point division?  Have you investigated the histogram for the data?


Dan, thank-you for your input.  Yes I have ruled out symbology and yes I have tried multiple float operations in the calculator (which yield the same results).  The histogram is unfortunately based on the anomalous data.  See photo of stats used for classification and histogram.  Also, I have tried to recalculate statistics to no avail.  Am I simply overlooking something simple? Any thoughts?
0 Kudos
by Anonymous User
Not applicable
Original User: pl1021

The output looks correct to me--there's nothing anomalous about the range, because the denominator includes both negative and positive numbers. 


Hey Bill.  Thanks.  Am I wrong in assuming the ranges of dividing both rasters should calculate as following because those two cells are being divided? 

For example the two maximum raster values:

51.86/38.263  = 1.355356
0 Kudos
by Anonymous User
Not applicable
Original User: whuber

  Am I wrong in assuming the ranges of dividing both rasters should calculate as following because those two cells are being divided? 

For example the two maximum raster values:

51.86/38.263  = 1.355356


To see that this is not correct, consider two two-cell grids.  Grid contains (10,1)--in that order--and grid contains (10, .000001).  The quotient of the two grids is...
0 Kudos