Coder Social home page Coder Social logo

world-weather-analysis-api's Introduction

World Weather Analysis - An API Application

A python project was built to analyze the weather of 500+ cities in the world of varying distance from the equator.

Background

This script generates data of 500+ cities with following info:

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

And linear regression was applied for the above info in Northern and Southern Hemispheres.

Analyzed cities on the world map:

Observations and Insights

  1. From the graph of max temp and latitude, we can see that there is a strong relationship (r = -0.87271) between northern hemisphere latitude and max temp. The max temp will likely decrease 1 F degree per degree latitude in the northern hemisphere.

  1. From the cloudiness graph, there is no significant correlation between cloudiness and latitude. Most cities have either higher (close to 100%) cloud covered or lower (close to 0%).

  2. There is no strong relationship between wind speed and latitude too. Most cities have a wind speed lower than 20 mph all over the world.

  3. We can see the most cities have higher humidity as shown below. This script got the random latitudes and longtitudes between (-90 to 90) and (-180 to 180). However, the main defect of this theoretical assumption is that most area on the earth is covered by ocean where has much fewer cities than the continents. citipy only get the closest city of the random coordinates. When it comes to the ocean coordinates, all cities along the coastline would be collected into the dataframe. Those cities are highly humid due to the ocean currents, resulting in the relatively higher humidity scatter points in this dataset.

A world map of all analyzed cities is shown in the notebook and readme file to prove this analysis.

  1. A correlation matrix was generated. Most columns have not strong relationship with each other. However, the Max temp shows a correlated relationship with Latitude (r = -0.67468).

world-weather-analysis-api's People

Contributors

kk-deng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.