Hi,
I am currently trying to calculate the slope of roads using certain plugin hybrid vehicle trips.
My data are currently a point shape file that is recorded every 1 second. The points have several attributes but the important ones are elevation at each point, and vehicle speed. I would like to calculate the slope by doing something along the lines of: calculating slope between point at time T and T-1 as (elevation at time T – elevation at time T-1) / distance * 100 and the slope between point at T and T+1, and use the average of these two slopes as the slope of point at time T. If the vehicle speed is 45 mph (72 km/h), then the distance between each two points is 72/60/60*1000=20 meters. Unfortunately I would need to reference the attributes in rows above and below in field calculator and I am having a lot of trouble figuring out how to do that. Is it possible in the field calculator using either python or vb script?
Thank you!