7

I have raster dataset for rainfall but it does not have an attribute table.

How can I create tabular data using the same raster file and the join back again to it?

Software used is ArcMap 10.1.

0

3 Answers 3

10

You could use the Build Raster Attribute Table (Data management) tool. Note that the raster must have a single band and the pixel values must be integer type (not float or double) to have an attribute table.

3
  • is there any other way of doing it?
    – user24101
    Commented Nov 21, 2013 at 6:14
  • 2
    is the aforementioned procedure not working for you?
    – Rob Lodge
    Commented Nov 21, 2013 at 12:55
  • 2
    If your data was for example to 2 decimal places then you can multiply your data by 100 to move the decimal place and then use the INT tool to convert it into an integer grid. Then you'll be able to build raster table as described above.You just got to remember to divide any output by 100 to turn it back into the original values.
    – Hornbydd
    Commented Nov 8, 2014 at 20:50
5

I found this problem occuring mainly when handling raster data with floating point data. The straight forward approach (in the ArcMap Toolbox' sense of way):

  1. ArcToolbox > Spatial Analyst Tools > Map Algebra > Raster Calculator

    Multiply your raster by 10**X with X corresponding the maximum decimal places contained. The new raster should now be free of digits, although still being a floating pixel value raster.

  2. ArcToolbox > Data Management Tools > Raster > Raster Dataset > Copy Raster

    In the Pixel Value drop-down menu select the Pixel Type suiting your data.

  3. Now that you have a non-float raster (and ArcMap surely loves these) create an attribute table:

    ArcToolbox > Data Management Tools > Raster > Raster Properties > Build Raster Attribute Table

  4. Open the attribute table, add a field and use Field Calculator to get your old pixel values back - by calculating "Your Value= 1 / 10**X"

1
  • 3
    One to any power is just one. DId you mean ten to the Nth power?
    – Vince
    Commented Dec 2, 2017 at 2:00
1

You can use Int tool to convert floating point to integer raster and after you process that, the attribute table will appear.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.