I was hoping I could get a little help for 2 questions dealing with raster datasets. I have access to ArcMap 10.2 and ArcView 3 to do this. Here is what I am trying to do:
1) I need to calculate an average value for a subset of cells in a line for every cell along a coastline. More specifically, I have a raster grid that lies over the water along a coastline. I need to get the average value of the three cells that lead offshore perpendicular to the coast, this needs to be done for each cell that touches the coast.

2) I then need to move the values calculated above from over water to adjacent cells over land. The over water layer with the values does not extend over the land where I need to transfer the values so I cannot do a simple overlay.



If you'll decide to keep all yellow points, spatial join them to red points and convert to grid.
I've used real data here and as one can see the definition of coast line is overly important.