-
I have the most basic generated time-series trajectory flight data in CSV files with Looked for help at this page: https://traffic-viz.github.io/user_guide/own_data.html |
Beta Was this translation helpful? Give feedback.
Answered by
xoolive
Jan 22, 2023
Replies: 1 comment
-
Hi @laynr About your issue:
Then create a # for a single trajectory
Flight(df.rename(columns=dict(lat='latitude', etc.)))
# for many trajectories
for flight in Traffic(df.rename(columns=dict(lat='latitude', etc.))):
print(flight) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
laynr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @laynr
Indeed, I am well behind in terms of documentation.
About your issue:
lat
,lon
andalt
tolatitude
,longitude
,altitude
timestamp
with a dtype as timestamp (I recommend the timezone-aware version, but things should work in both cases)Then create a
Flight
orTraffic
(collection ofFlight
) object directly from the pandas Dataframe: