AnsweredAssumed Answered

Linear regression between every 3×3 pixels of two rasters

Question asked by bennyistanto on Aug 7, 2020
Latest reply on Aug 7, 2020 by danretired

I have two raster with same resolution and dimension: rainfall (mm) and water-occurrence (%). I want to create a new raster of SLOPE (a) and INTERCEPT (b) by performing linear regression between every 3×3 pixels of the two rasters (rainfall and water-occurrence), such that each pixel of the SLOPE and INTERCEPT will hold the regression slope and intercept value obtained from linear regression of the corresponding 3×3 pixels in rainfall and water-occurrence that surround that pixel.

 

Is there any example solution using ArcGIS or python/arcpy related above problem?

 

Example data in the attachment.

Attachments

Outcomes