question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Clipping trajectories to eurofirs

See original GitHub issue

Hello, I would like to clip so6 trajectories to specific FIRs. For instance, I have collected all the trajectories crossing a specific FIR:

bdx_so6_LIMM = so6_m1.inside_bbox(eurofirs['LIMM'])

and now I would like to clip them. Unfortunately the clip command does not work with the eurofirs objects (I don’t have AIRAC files):

bdx_so6_LIMM['BCS361'].clip(eurofirs['LIMM'].flatten())

I get the following error: NotImplementedError: Multi-part geometries do not provide a coordinate sequence

I’m probably missing something. Is there a better way to do what I’m trying to do?

Thank you, Rob

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
xoolivecommented, Feb 15, 2019

@obbe79 I started to have a look but my faulty flight actually did not intersect the sector (so clip would fail, it will return None in the corrected version).

Could you please try bdx_so6_LIMM['BCS361'].to_pickle('bcs361.pkl') and send the pickled file to my personal email so that I can be sure I debug this particular case?

Thank you for your support

1reaction
xoolivecommented, Feb 13, 2019

This is indeed the problem I suspected 😃

I will fix it the same way it is done now with Flight classes, i.e. you will get the trajectory between the first point of entry and the last point of exit of the trajectory. (In practice, this is what makes the most sense from an ATC point of view)

What you noticed with inside_bbox is correct according to the specification. The thing is that since this first check is very fast to compute, it makes sense to apply it before intersects (and not try to check for an intersection if it doesn’t cross the bounding box)

Read more comments on GitHub >

github_iconTop Results From Across the Web

traffic Documentation - Read the Docs
The basic idea is to clip the trajectory to the learning box, then to resample each trajectory to a fixed number of samples...
Read more >
A Python Toolbox for Processing Air Traffic Data: A Use Case ...
This paper presents how traffic accesses different sources of data, leverages processing methods to clean, filter, clip or resample trajectories ...
Read more >
(PDF) A Python Toolbox for Processing Air Traffic Data
This paper presents how traffic accesses different sources of data, leverages processing methods to clean, filter, clip or resample trajectories ...
Read more >
Clipping common overlapping regions in multiple trajectories
I have more than two GPS trajectories and what I want to do is identify regions similar as in the image and clip...
Read more >
planning tool developed: Topics by Science.gov
The planning toolset allowed for single and multi aircraft trajectory ... and summarize the state of the art of cutting machine tool technology...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found