create-test-paddle 829 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/python
  2. # 42.445512 -76.50726
  3. # 42.444988 -76.506852
  4. # 42.4444 -76.506444
  5. paddle = 6055
  6. dmmc_coord = [ [ 4226.73072, -7630.4356 ],
  7. [ 4226.69928, -7630.41112],
  8. [ 4226.664, -7630.38664] ]
  9. dmmc_name = [ "test route top", "test route mid", "test route bottom" ]
  10. print "# Paddle", paddle, "(testing)"
  11. print "# coodinates in concatinated degree/decimal minute format (dmmc)"
  12. print "#", "\t".join(["hour", "minute", "latitude", "longitude", "route", "trip", "stop", "name"])
  13. idx=0
  14. for hour in range(24):
  15. for minute in range(0,60,10):
  16. trip = int(minute/10) + 1
  17. for stop in range(1,4):
  18. v = [str(hour), str(minute+stop), str(dmmc_coord[idx][0]), str(dmmc_coord[idx][1]), str(paddle), str(trip), str(stop), dmmc_name[idx]]
  19. print "\t".join(v)
  20. idx = (idx + 1) % len(dmmc_coord)