TUDelft-CNS-ATM / bluesky

The open source air traffic simulator
GNU General Public License v3.0
361 stars 242 forks source link

import csv file containig huge data into bluesky #512

Closed Amitoj-26 closed 1 week ago

Amitoj-26 commented 1 month ago

I just want to state that i had csv file of flightradar24 historical data of one aircraft going from source to destination in terms of timestamp , date, lat ,long, heading, speed, altitude. i want to simulate this file inside bluesky. writing scenario file for such long data is not feasible, plz provide me solution . thnks ?

jooste commented 1 month ago

Hi @Amitoj-26, the idea is still to write a script that processes the csv file and generate a scenario file. To get to a reasonable number of waypoints from historical tracks you can use something like Ramer-Douglas-Peucker to reduce the number of trajectory points. Use the resulting lower resolution trajectory to make a route with waypoints.

Amitoj-26 commented 1 month ago

Didnt understood sir

On Sun, 21 Jul, 2024, 2:50 pm Joost Ellerbroek, @.***> wrote:

Hi @Amitoj-26 https://github.com/Amitoj-26, the idea is still to write a script that processes the csv file and generate a scenario file. To get to a reasonable number of waypoints from historical tracks you can use something like Ramer-Douglas-Peucker to reduce the number of trajectory points. Use the resulting lower resolution trajectory to make a route with waypoints.

— Reply to this email directly, view it on GitHub https://github.com/TUDelft-CNS-ATM/bluesky/issues/512#issuecomment-2241540727, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHG4KZQ6FNYB2OSHU53JYZ3ZNN4OHAVCNFSM6AAAAABLEZXTBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRGU2DANZSG4 . You are receiving this because you were mentioned.Message ID: @.***>

jooste commented 1 month ago

Ramer Douglas Peucker: wiki explanation

python package

Example scripts that generate bluesky scenario files are on the bluesky repo under utils

Amitoj-26 commented 1 month ago

Thanks, I'll check it out.

On Sun, 21 Jul, 2024, 4:48 pm Joost Ellerbroek, @.***> wrote:

Ramer Douglas Peucker: wiki explanation https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm

python package https://pypi.org/project/rdp/#:~:text=Python%2FNumPy%20implementation%20of%20the,by%20a%20series%20of%20points.

Example scripts that generate bluesky scenario files are on the bluesky repo under utils

— Reply to this email directly, view it on GitHub https://github.com/TUDelft-CNS-ATM/bluesky/issues/512#issuecomment-2241572096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHG4KZXCW5NPJ7BIYVAK7I3ZNOKIFAVCNFSM6AAAAABLEZXTBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRGU3TEMBZGY . You are receiving this because you were mentioned.Message ID: @.***>

Amitoj-26 commented 1 month ago

Sir can you do it for me as examole i have shared you csv file on linkedin

On Sun, 21 Jul, 2024, 6:51 pm Amitoj Singh, @.***> wrote:

Thanks, I'll check it out.

On Sun, 21 Jul, 2024, 4:48 pm Joost Ellerbroek, @.***> wrote:

Ramer Douglas Peucker: wiki explanation https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm

python package https://pypi.org/project/rdp/#:~:text=Python%2FNumPy%20implementation%20of%20the,by%20a%20series%20of%20points.

Example scripts that generate bluesky scenario files are on the bluesky repo under utils

— Reply to this email directly, view it on GitHub https://github.com/TUDelft-CNS-ATM/bluesky/issues/512#issuecomment-2241572096, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHG4KZXCW5NPJ7BIYVAK7I3ZNOKIFAVCNFSM6AAAAABLEZXTBKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBRGU3TEMBZGY . You are receiving this because you were mentioned.Message ID: @.***>

tinpusher commented 1 month ago

You might find filtering (dataset reduction), might be easier to filter on the timestamp. A typical ATC display system has an update every 3-5 seconds. Depending on what fidelity you require. 360kts equates to 6nm per minute.