Grasshopper

algorithmic modeling for Rhino

Hi !

I'm trying to trace routes taken by a plane.

I've got a csv with flight number and a location point every minute.

The problem is this csv is not for one unique flight but over 200.

In grasshopper, how would I go about iterating over each flight and creating a polyline through points that correspond to a specific flight.

I've included the csv file and and an example of what I'm trying to achieve !!!

Views: 500

Attachments:

Replies to This Discussion

I would retrieve all of the lat and lon values that correspond to each unique callsign. One problem though (looking at your data) is that the length of the list for callsign, lat, and lon are all different. Ideally these would all have the same amount of data in them.

Anyways, you can create a set from the callsigns (which will result in a list of unique callsigns) then use those to see which indices they correspond to, and then grab the matching lat and longs. Like so:

Now your lat data is broken up into branches where each branch contains the lat values for a specific callsign. Do the same for Long, and visualize them however you'd like.

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service