Select to view content in your preferred language

Why the count does not match in Histogram and Attribute table ?

2587
11
09-22-2011 10:30 AM
MOHAMMEDHABBOUB
Deactivated User
Hello everybody

I worked on Spatial analyst .. " Histogram"
But I have a question Why the count does not match in Histogram and Attribute table ?

see attached image

Weird, isn't it?

PLZ help
0 Kudos
11 Replies
DanPatterson_Retired
MVP Emeritus
grid tables give cell count which multiplied by the square of the cell width gives area...histogram, IMS...yields area...check in any event
0 Kudos
MOHAMMEDHABBOUB
Deactivated User
Well, It doesn't make sense.

The cell width is 25 so the area is 25*25=625
the Count in attribute table is 671722 but in Histogram is 466834

466834 + 625 =467459 not 671722

So Why?
0 Kudos
DanPatterson_Retired
MVP Emeritus
What is even stranger is the class/value shown with identify (4) doesn't match that within the raster table (6).  In any event, you would multiply the cell area by the count to get area (which wouldn't help in your case anyway)
0 Kudos
EricRice
Esri Regular Contributor
Greetings,

Try rebuilding the raster attribute table.  Some operations (tools) do not automatically update the count field.  For example, if you clip a raster, the result will have count values that reflect the original counts.  Maybe your table is out of sync with the data.  Just a thought.

Regards,
Eric
0 Kudos
EricRice
Esri Regular Contributor
I just realized that is the landuse raster from the Spatial Analyst tutorial data.  I'm guessing you didn't do anything to it yet that would require a rebuild of the table?
0 Kudos
MOHAMMEDHABBOUB
Deactivated User
That's right Eric, this is from Spatial Analysis Tutorial and I did nothing to the raster yet... so there is no point in rebuilding.

So? is it a bug? or what?
0 Kudos
DanPatterson_Retired
MVP Emeritus
did you try rebuilding to see if the original file is in error?
0 Kudos
EricRice
Esri Regular Contributor
Your screenshot indicates you are using an old version of the software.  I can't reproduce this issue.  Can you upgrade?  It looks like a bug in an older product.

Regards,
Eric
0 Kudos
MOHAMMEDHABBOUB
Deactivated User
I will try to upgrade
0 Kudos