[GIS] Getting all pixel values from raster image in ArcGIS Desktop

arcgis-desktoppixelrasterspatial-analyst

I am using a CHIRPS raster image on ArcGIS 10.6 and there is no attribute table, I need the pixel values as it is the individual rainfall data for the stations to perform further statistics on.

How can I get all the pixel values? W

hen I use the identify icon it the pixel value does come up, however it is impractical to do this for an entire country.

Best Answer

If you want to open the attribute table of raster data, you need to convert the Pixel Type from floating point to signed integer. This can be done if you have Spatial Analyst extension.

With Spatial Analyst you can use Raster Calculator to convert the Pixel type from floating point to signed integer using the following formula:

Int(RoundDown("YourRasterImage"))     # You can use RoundUp() also, it is up to you

I tested CHIRPS raster data with a pixel type of floating point, the attribute table is not active:

enter image description here

After converting the pixel type to signed integer using the above formula, the attribute table becomes active:

enter image description here

Here is the attribute table:

enter image description here

Related Question