Thanks
What field is it you want the summary on? I currently have it in array format for processing
Thanks Dan. The objects of interest are Yld_Vol_Dr'(bu/ac) and Moisture content. Thus, I just need to merge every 5 polygons, make one finally which will contain the average of the Yld_Vol_Dr' and moisture of the previous 5 polygons.
Some results, each pair represents the Yield and Moisture average in 5 unit blocks
The first block before the ... represents 8 blocks of 5. The last block is the last 8 blocks of 5
Check manually to make sure it is alright.
The code is simple, but I am still concerned about 'end-wrapping'
It seems that you have 40 blocks per row, so if the number of blocks is not divisible by 5,then you can't wrap the end or one rows values to the beginning of the next, so you have to return a truncated average.
Advise on any anomolies
Sample results
ym
array([( 35.59, 16.9 ), ( 61.14, 16.9 ), (122.4 , 16.9 ), (188.36, 16.9 ),
(260.38, 16.9 ), (289.45, 16.08), (259.13, 16.08), (242.38, 16.08),
...,
(208.47, 15.86), (230.03, 15.86), (221.9 , 15.86), (229.2 , 15.86),
(224.42, 15.86), (233.92, 15.86), (206.63, 15.86), (218.36, 15.86)],
dtype=[('Yield', '<f8'), ('Moisture', '<f8')])