Saturday, August 8, 2015

Airline Route Histogram

Read the airplane and the routes ".dat" file  it into the python

After reading the files see what are the variables in the airport data and the routes data .
It consists of the Airport Id ,latitudes ,longitudes,place etc..
Let's match the latitudes and longitudes to the airport id and print the latitudes with it's corresponding  airport ID

so in order to match use the following code



 After getting the latitudes and longitudes for the corresponding Airports,we will make use of the latitudes and longitudes to calculate the distance from source and destination

 till now we matched the latitudes and longitudes and we calculated the distance based on the latitudes and longitudes
Now we will draw a histogram based on the frequency of the flights

No comments:

Post a Comment