Select to view content in your preferred language

Computing an average along transects of a raster?

968
1
06-17-2011 09:09 AM
KylePurdon
Emerging Contributor
Hello all,

I need to compute a "Width Average" along transects of a raster that are perpendicular to the line of flow.

I've attached an image to explain a simple example of what I need to do. Below is an explanation of the image and what I need:

Black box: Outline of a raster of floating values.
Red Line: Arrow pointing in the flow direction.
Blue Lines: Transects at equal intervals along the flow line covering the width of the raster.

I need to calculate the average of the values along each transect.

My Idea:

  • Create the transects as polylines and then covert them to a series of points.

  • This would be done by rotating and shifting

  • Extract the values of the raster to points and then compute a simple average.

Is there an easier way???

Thanks!
0 Kudos
1 Reply
KylePurdon
Emerging Contributor
Bill,

I'm not sure that fits my exact situation. I should have explained more about my actual data.

I'm working with data not actually representing the flow, rater the stress and strain rates (lateral compression, widening, stretching, etc...) of an outlet glacier. So the direction of flow is known down the glacier but not calculated in raster format in any way. (At least not for what i'm doing) The contours would not be horizontal or perpendicular to a somewhat arbitrary (just known) flow line.

However I do like the idea of creating zones from the transects and computing zonal averages.
0 Kudos