Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 04 20:04
    xoolive commented #206
  • Aug 03 11:41
    sfo commented #206
  • Jul 31 21:07
    xoolive closed #220
  • Jul 31 21:07
    xoolive closed #223
  • Jul 31 20:35
    xoolive synchronize #223
  • Jul 30 19:35
    xoolive closed #225
  • Jul 29 23:33
    dependabot[bot] labeled #225
  • Jul 29 23:33
    dependabot[bot] opened #225
  • Jul 28 20:19
    xoolive assigned #224
  • Jul 28 20:19
    xoolive opened #224
  • Jul 28 20:19
    xoolive labeled #224
  • Jul 27 14:27
    xoolive edited #223
  • Jul 27 09:06
    MichelKhalaf opened #223
  • Jul 26 13:40
    rmonstein closed #216
  • Jul 26 13:39
    rmonstein closed #218
  • Jul 26 13:05
    xoolive synchronize #218
  • Jul 26 12:44
    xoolive closed #221
  • Jul 26 12:44
    xoolive closed #222
  • Jul 26 12:41
    rmonstein synchronize #218
  • Jul 26 12:29
    MichelKhalaf opened #222
Xavier Olive
@xoolive
🤞
Busy tonight but I will follow up later or tomorrow morning
Daniel Rotherham
@DRotherham
Thanks Xavier
image.png
This is the result of the pip install from git
Xavier Olive
@xoolive
Try to update fiona with conda/mamba and keep going?
Daniel Rotherham
@DRotherham
image.png
This is the result of Mamba install traffic
But this is what happens now when I run a test script
image.png
So we are back to the click conflicting error versions
Xavier Olive
@xoolive
Problem solved by installing the github HEAD version. New release soon to come
Xavier Olive
@xoolive
Hello @/all let me mention here the serious changes that are ongoing in the documentation https://traffic-viz.github.io/ Things are still moving a lot and some pages are still empty but feel free to comment, suggest, or, even better, contribute to make it a better document serving the community!
Jan Wyler
@janwyler
image.png
Hello, I tried installing Traffic in several different ways but I'm always getting similar errors. Does anyone have an idea how to solve this?
Xavier Olive
@xoolive
on your screenshot, you are trying to compile cartopy, which means you most likely didn't set up a fresh environment as recommended in the documentation
if you want to pip install after that (for the dev version for instance), you should do after activating the environment
Manuel Derra
@m-derra
When using the resample function on a Flight object, does it interpolate linear on lat/lon coordinates or does it take the great circle into account?
Xavier Olive
@xoolive
that's linear interpolation because we usually resample trajectories with a decent sampling rate. There are functions for geodesy/great circles https://traffic-viz.github.io/api_reference/traffic.core.geodesy.html#traffic.core.geodesy.greatcircle so we could think of a new method to fill gaps in trajectories with great circle interpolation. Would you want to give it a try?
6 replies
Arthur Nchn
@ArthurNchn_twitter
Hi, thanks for the very comprehensive tool. I work on a MacBook and I tried to add my Opensky credentials in the traffic.conf file (username = xxx and password = xxx). I keep getting an error message ("This method requires authentification"). I tried several formats (with and without quotes) but without success. I noticed I have got two conf files, one in "Application Support - traffic" and one in "opt--lib--python3.9--site-packages--traffic". Is it somehow related? Thanks very much for your assistance!
Xavier Olive
@xoolive
Try from traffic import config_file then look at config_file to check which file is considered
then check your username password with from traffic.data import opensky then look at variable opensky.auth
hope it helps
Arthur Nchn
@ArthurNchn_twitter
Thanks, I checked and I restarted python, and now it works perfectly
Xavier Olive
@xoolive
I just pushed traffic v2.7.0 to pip, it should be on conda-forge servers very soon.
Jan Wyler
@janwyler

I tried to open several files, evaluate them and save the file for later use.

  1. I did:
    df = Traffic.from_file(f'raw_data/test/20190101.pkl')
    df = df.assign_id().cumulative_distance().resample("1s").eval()
    df.to_pickle(f'raw_data/24h_eval/20190101.pkl')

  2. Later I wanted to reimport the file as a Traffic object like this:
    df = Traffic.from_file(f'{raw_data/24h_eval/20190101.pkl')

But if I try to call a flight_ID (example: df["RU7TEST1_581"]) from the reimported Traffic object (2.) I get the following error:
UndefinedVariableError: name 'callsign' is not defined

Do the flight_ID not get transferred if I reimport an evaluated file?

I also tried to re assign IDs with .assign().eval() but then I only get IDs with None-123. How could I solve this?

Xavier Olive
@xoolive
Hello @janwyler you can check the content of the dataframe with the .data attribute. If the callsign data is missing, I assume it was not there when you saved it.
In case of doubt, consider the pickle format as "not so safe" though: https://traffic-viz.github.io/data_sources/export.html
Nermin Zijadić
@NerminZijadic

I finished the installation and ran sample: File "c:\users\nermin\desktop\opensky-network\sample_request.py", line 5, in <module>
import simplekml

ModuleNotFoundError: No module named 'simplekml'

Nermin Zijadić
@NerminZijadic
And also, I tried Download trajectories.py, and got this:
AuthenticationException: Authentication failed.
Xavier Olive
@xoolive
If you need simplekml for your needs, you should install it, that is not part of the library. If authentication failed, I can't do much for you either, check your credentials.
Sören Holzenkamp
@soerenho
Hello everyone!
Do you know if there are already projects in which adsb data are combined with those from eurocontrol?
I want to compare the planned routes with the actual flown ones.
Before I start from scratch, I thought I'd ask if anyone knows any existing tricks, functions or projects
3 replies
Enrico Spinielli
@espinielli
Xavier Olive
@xoolive
regulations.png
@soerenho @m-derra (about m1, m3 and ads-b)
Sören Holzenkamp
@soerenho
Thank you all!
893239571
@893239571
Hello everyone!
When I use Traffic.between("2021-02-06 18:00" , "2021-02-06 21:00"), the TypeError : Invalid comparison between dtype=datetime64[ns] and Timestamp
How to solve it ?
893239571
@893239571
2022-06-03 23-01-27 的屏幕截图.png
Xavier Olive
@xoolive
I suspect your underlying dataframe has timestamps which are not timezone-aware, can you check with t.data ?
if not, just do
t = t.assign(timestamp=lambda df: df.timestamp.dt.tz_localize('utc'))
893239571
@893239571
Thanks you! It works!
ElSabio97
@ElSabio97
hullo! @xoolive Where can we see what .query_ehs() actually does?
Xavier Olive
@xoolive
download raw messages for DF20,21, decode them and enrich a flight with extra data
ElSabio97
@ElSabio97

Yes, of course, but where in the repository can we see exactly how it wokrs? how it performs the query on the Impala server?

download raw messages for DF20,21, decode them and enrich a flight with extra data

then opensky.extended() is in opensky_impala.py
doitg
@doitg:matrix.org
[m]
Can someone give me the dependency package about traffic?
1 reply