Giter VIP home page Giter VIP logo

get_us_weather's Introduction

Get Weather Data

This project retrieves weather data with python in one of three ways: Using an API from NOAA, web scraping and parsing from Wunderground, or from NDAWN.

Note: NDAWN is limited to North Dakota data only (and a few stations in northern Minnesota)

Getting Started

Clone the repo and navigate to the make_weather.py file. Open the file and edit the weather, begin_date, and end_date variables. The weather variable can be noaa for retrieving data from NOAA.gov, wund for wunderground data, or ndawn for NDAWN data. The begin and end dates are the dates between which you want the data.

If using wund:

You need to look up and provide a list of the stations to look up. The provided stations are from cities in North Dakota.

If using noaa:

You need to get a unique API key from NOAA and paste it in mytoken = ''. You must also find what the location id is called for the area you want to sample. For example FIPS:38 is the location id for North Dakota.

Once you have provided the above information, run

make_weather.py

and it will retrieve the data.

Project Organization

├── LICENSE
├─ README.md			   <- The top-level README 
├── make_weather.py      	 	   <- Execute this to get data
├── wunderground_parser_nd.py  	   <- parses .html weather data from wunderground
├── wunderground_scraper_nd.py	   <- scrapes wunderground for .html weather data
├── get_weather_ndawn.py		   <- requests data from ndawn.ndsu.nodak.edu via API
├── get_weather_noaa.py		   <- requests data from noaa.gov via API
├── weather_data
|	├── ndawn			   <- contains .csv data from ndawn
|	├── noaa			   <- contains .csv data from noaa
|	├── wund 			   <- contains .csv data from wunderground

get_us_weather's People

Contributors

gettecr 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.