TUDelft-CNS-ATM / bluesky

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

How to import flightradar 24 csv file into bluesky #497

Closed Amitoj-26 closed 4 months ago

Amitoj-26 commented 4 months ago

Please provide me sol thnks

andubadea commented 4 months ago

Hi!

BlueSky doesn't currently have a way to import FlightRadar24 historical data CSV files. However, you can probably create a script to convert these CSV files to BlueSky scenarios. You can create a .scn file and add commands to it in the right order.

The relevant documentation for commands can be found here: https://github.com/TUDelft-CNS-ATM/bluesky/wiki/Command-Reference These commands can be chained and put in a .scn file with a time stamp. Check out one of the example scenarios to see how this can be done: https://github.com/TUDelft-CNS-ATM/bluesky/blob/master/scenario/simpleRoute.scn

To make the aircraft closely follow the historical data, you can add the waypoints from the CSV file together with their speed and altitude constraints (ADDWPT command) and then tell the aircraft when it needs to be at each waypoint by using the RTA command together with the timestamp of the waypoint given in the CSV (converted to HH:MM:SS in simulation time).

Amitoj-26 commented 4 months ago

Thnks for the reply can u send me by doing this practically in it

On Tue, 20 Feb, 2024, 2:41 pm andubadea, @.***> wrote:

Hi!

BlueSky doesn't currently have a way to import FlightRadar24 historical data CSV files. However, you can probably create a script to convert these CSV files to BlueSky scenarios. You can create a .scn file and add commands to it in the right order.

The relevant documentation for commands can be found here: https://github.com/TUDelft-CNS-ATM/bluesky/wiki/Command-Reference These commands can be chained and put in a .scn file with a time stamp. Check out one of the example scenarios to see how this can be done:

https://github.com/TUDelft-CNS-ATM/bluesky/blob/master/scenario/simpleRoute.scn

To make the aircraft closely follow the historical data, you can add the waypoints from the CSV file together with their speed and altitude constraints (ADDWPT command) and then tell the aircraft when it needs to be at each waypoint by using the RTA command together with the timestamp of the waypoint given in the CSV (converted to HH:MM:SS in simulation time).

— Reply to this email directly, view it on GitHub https://github.com/TUDelft-CNS-ATM/bluesky/issues/497#issuecomment-1953772722, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHG4KZVXXBSILU6I6VUYL63YURSDZAVCNFSM6AAAAABDO2OZJ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJTG43TENZSGI . You are receiving this because you authored the thread.Message ID: @.***>

Amitoj-26 commented 4 months ago

??

jooste commented 4 months ago

There are several examples of scenario creation scripts in the folder utils/Scenario-creator. These should give you enough inspiration to create your own script!