Longtitude vs. Latitude

Project Summary

This project analyzes the weather of randomly selected 571 cities (Figure 1) across the world of varying distance from the equator. The objective is to observe whether the distance of the city from equator has an effect on temperature, humidity, cloudiness and wind speed or not.

Data

635 raws of data is available. 64 raws of data is ignored since there are missing values. 571 raws of data that includes cities with their maximum temperature, humidity, cloudiness and wind speed values. Data is retrieved on 2 October 2019.

Data Limitations

It is estimated that 68% of the Earth's land exists in the Northern Hemisphere, while 32% is located in the Southern Hemisphere. Since this is the case, we will have less cities generated from the Southern Hemisphere. Temperature is not only affected by distance to the equator but also affected by other climate factors.

Tools & Methods Used

Citipy library is used to randomly select 635 cities across the world. Citipy is a library that look for nearest city with geo coordinates. Cities are selected randomly with the random function with the help of this library. Open Weather API is used for retrieving the real time values of temperature, humidity, cloudiness and wind speed for these cities with geo coordinates if their data is available on Open Weather API. Following series of scatter plots built using Matlpotlib library in order to mark the relationship between temperature, humidity, cloudiness, wind speed and location.

  • Max. Temperature (F) vs. Latitude
  • Humidity (%) vs. Latitude
  • Cloudiness (%) vs. Latitude
  • Wind Speed (mph) vs. Latitude

Visualizations

Max Temperature Image Humidity Graph Cloudiness Graph Wind Speed Graph