Giter Site home page Giter Site logo

stormeventsdataproject's Introduction

StormEventsDataProject

Examining the NOAA Storm Events Database for the human costs of weather. The current model examines the storm event details from 1996-2018, as prior data did not include most types of storm event. Future analysis will try to incorporate location and specific fatality information to improve models. In addition, population census data would be valuable for evaluating relative risk.

Data pre-cleaning: In order to examine the financial costs of individual storm events, the DAMAGE_PROPERTY and DAMAGE_CROPS columns need to be cleaned up. They are currently input in the form "100.0", "2.5K", ".2B". The function functions.convert_num( x) converts a string of any of these forms into a float value.

Note: None of these evaluations incorporate inflation yet.


1. Scrape

First, run python scrape.py in $(PROJECT_HOME) folder to scrape the .csv files from the NOAA Storm Events Database into project home folder. The .csv files will be stored in 3 folders: $(PROJECT_HOME)/details, $(PROJECT_HOME)fatalities, $(PROJECT_HOME)/locations

2. Clean

In $(PROJECT_HOME), run

bash initialize_db.sh
python clean.py postgresql_username postgresql_password

in order to create database and upload storm-events details after 1996

stormeventsdataproject's People

Contributors

rachelewooten avatar

Watchers

James Cloos avatar

Forkers

padho

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.