Thank you for all the comments. But my main problem is still how to loop around all these big dataset and calculate the headings. i think the logic should be something like this:
for ($aircraft_id){ $current_point_x = $latitude $current_point_y = $longitude $waypoint_x = $latitude_next $waypoint_y = $longitude_next //do some calculations on calculate headings ! //output headings }
Any ideas to parse through all these data and do calculations, the data is organised in a way that there are different aircraft in the dataset, but it can be identified by aircraft_id, and they are ordered by gps_time column, how could i get my two continuous points and calculate the heading. In Python, i could use dictionary to do that, as to perl, i don't know. help please !
thank you!
Si
In reply to Re^2: Calculate aircraft headings from GPS data for google kml display
by hujunsimon
in thread Calculate aircraft headings from GPS data for google kml display
by hujunsimon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |