I am working with a NDVI image and a an interpolated yield map in ArcGIS 10.3.1. They are both projected in the same coordinate system and the cell sizes are equal. I interpolated the yield harvester points using IDW interpolation method. The final product I want to achieve is the correlation (R-squared). I am new to GIS and have been stuck on this for a while trying to use various spatial analyst tools in ArcToolbox but have been unsuccessful. I have clipped the interpolated yield map to another polygon that I have created, however it does not overlay the NDVI completely.

Is it possible to extract the overlaying pixels values and import this into R software where I can perform further stats?

  • You want to compare cell values in both rasters ?
    – Shiko
    Sep 28, 2016 at 7:14
  • Hi, yes I want to do a cell by cell correlation
    – Devin
    Sep 28, 2016 at 7:22
  • No need in R. It is all doable in raster calculator
    – FelixIP
    Sep 28, 2016 at 8:42
  • I have deleted my answer
    – Shiko
    Sep 28, 2016 at 8:50

1 Answer 1


It is likely statistical overkill to sample every single cell in your rasters. For the same statistical result, you could create a random point layer with the Create Random Points tool and choose the number of points with which you would like to represent your data and choose the extent of your rasters. Next, you can use the Extract Multi Values to Points tool to populate the points with the values from both of your rasters. You will now have values from both of your rasters assigned to your random points and can export this table to work with it in R if you desire.

Using random points instead of sampling the entire dataset will likely yield similar statistical results and may better deal with spatial dependence issues with your interpolated raster. However, if you do want to sample the entire raster datasets, you could use the Raster to Point tool to get a point layer that will sample from all the cells.

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.