I need to obtain the x and y attributes of the second to last vertex for each segment and add to the attribute table using Arcpy (or some other python module).
To get the Y co-orodinate of the first vertex I can use !Shape.FirstPoint.Y!
arcpy.CalculateField_management(Flow_Paths, "Y_Cord_A", "!Shape.FirstPoint.Y!", "PYTHON_9.3", "")
In QGiS I can simply call Xat(-2) and Yat(-2) to get the second to last co-ordinate, is there an equivalent command for ArcPy?