point = pd.read_csv('point.csv')
with pd.option_context('display.precision', 12):
# print(point)
B0= np.double(point.loc[0, ['x']])
L0= np.double(point.loc[0, ['y']])
#print(B0, L0)for i inrange(len(point)):if i % 10 == 0:
waypoint= point.loc[i, ["x", "y", "heading"]].values.astype(float)
lat= np.double(waypoint[[0]])
lon= np.double(waypoint[[1]])
x, y=transformation(lat, lon, B0, L0)
line= "%s,%s,%s" % (x, y, waypoint[[2]][0])
with open("test.csv", 'a+') asf:
f.write(line+ '\n')