Skip to content

Geogith/Weather-Forecasting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WEATHER FORECASTING ACROSS THE WORLD

Overview

Python scripts were created to visualize the weather for over 500 cities across the world at varying distances from the equator. To understand weather patterns for forecasting, a series of scatter plots were created. The scatter plots depicted the relationship between Temperature versus Latitude, Humidity versus Latitude, Cloudiness versus Latitiude, and Wind Speed versus Latitude. One of the relationship is shown below:

image

Linear regressions for each relationship were created separating them in Northern and Southern Hemispheres.

image

More than 500 cities were randomly selected based on there latitude and longitude to perform a weather check on each of the cities usig a series of API calls to confirm the findings of the Python scripts. The analysis used external data for comparison using third party APIs. Data was parsed using an OpenWeatherMap and US Census API Keys to make GET requests for JSON formatted information. Requested JSON information was converted into a PYTHON dictionary for loading into a Pandas Dataframe. A Google Maps and Places API Key was used to obtain information about geographic areas. Special attention was taken to understand rate limits and the importance of creating "test cases" prior to running large scripts. A firm understanding of each API documenation was used in the analysis to run efficient Python scripts.

The table below shows 20 of the 550 cities randomly selected for a weather check:

image

These relationships were used to assist in the selection of ideal weather conditions for vacation planning.


VACATION PLANNING USING WEATHER FORECASTING

Juptyer-gmaps and Google Places API was used for planning future vacations across the globe. A heat map of the humidity for the 550 cities selected above was created. The Pandas DataFrame was narrowed down to include only data for ideal weather conditions of a maximum temperature lower than 80 degrees but higher than 70. Wind speed less than 10 mph with zero cloudiness. Any rows that didn't contain all three conditions were dropped for the DataFrame. Google Places API located hotel within 5000 meters of selected coordinates. This information was plotted on the humidity heatmap with a pin containing the hotel name, city, and country.

image


Contact:

Email: 
rocklady4@gmail.com

About

Visualizing weather changes across the world using third party APIs and Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published