This is a study of weather in cities around the globe, the gathering
of data, creation of charts, and analysis of the results. Geography
and remembering geography lessons from too many years ago played a
large part in the proper gathering of the data. To get a reasonable
distribution of data points, I choose the method of dividing the
earth into quadrants using the image on the right. From the image,
I used the x-axis as latitude -180.0 to 180.0(Far West to Far East),
and the y-axis was -90.0 to 90.0.
The data gathering steps were as follows: one, the program uses a list of 4 tuples which were the ranges -180 to 180, and those are passed along with a constant tuple (-90,90) to two random.uniform functions which generated x and y coordinates. Two, the list of geo-coordinates are passed to a library called citipy which found the nearest city with a population greater than 500. Three, duplicates city, country records were deleted and the process was repeated until at least 500 cities are gathered. Four, with the city and country, the program makes requests to the Open Weather Map's API to gather the date, latitude, longitude, max temperature, humidity, cloudiness, and wind speed. The gathered data is then used to create the plots using matplotlib and seaborn modules.