Clipping trajectories to eurofirs
See original GitHub issueHello, 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:
- Created 5 years ago
- Comments:9 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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
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 beforeintersects
(and not try to check for an intersection if it doesn’t cross the bounding box)