Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flight-ids SO6 to ADS-B files #109

Open
javisaezh opened this issue Nov 25, 2020 · 3 comments
Open

Flight-ids SO6 to ADS-B files #109

javisaezh opened this issue Nov 25, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@javisaezh
Copy link

Hello, I would like to know if there is already any method developed to match the flight_ids obtained from So6 to ADS-B files. I’m trying to use the assign_id method for both files but it seems to be assigned differnent new flight-ids for SO6 and ADS-B same flights.

Thank you.

@xoolive
Copy link
Owner

xoolive commented Nov 25, 2020

This is not directly implemented, but here is how you could do:

  1. first build a summary dataframe for the so6: you should edit here

    "duration": f.stop - f.start,
    to add the f.start and f.stop information as start and stop entries in the dictionary (you may file a PR to share this small edit, it is definitely worth it); store this as so6_stats = so6.stats().reset_index().

  2. then iterate on your ADS-B data based on this table, and automatically assign flight_id (edit here

    p_icao24 = hasattr(index, "icao24")
    to assign flight_id (maybe also origin and destination?) if the columns exists in the series (you may add the edit to the same PR!), then

adsb_with_id = adsb_traffic.iterate_lazy(by=so6_stats).eval()

Be careful that for historical reasons (this should change...), the flight_id in SO6 is an integer, so you have to force it to a string here if you want it to work properly with Traffic structures.

I don't have the availability to do it myself (do it: yes, test it: no) right now, but your help would be very much appreciated and welcome by fellow users. I would include this in the documentation as well.

@xoolive
Copy link
Owner

xoolive commented Dec 6, 2020

Hello @javisaezh did you find your way with your issue?

@xoolive xoolive self-assigned this Dec 6, 2020
@xoolive xoolive added enhancement New feature or request good first issue Good for newcomers labels Dec 6, 2020
@javisaezh
Copy link
Author

Hello.

My apologies for answering so late, but these days I've had to shelve this issue to deal with other things. Finally I found the way to solve the problem that I told you.

Thank you very much for your instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants