Skip to content

TimeMagazine/natural_disasters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Natural Disaster data

These scripts will download and collate huge amounts of information on natural disasters.

The getEvents.js script, found in the data folder, downloads all natural disaster data from the National Oceanic and Atmospheric Administration and organizes it by state and county. The script produces a JSON file for each state in processed/states/ folder.

Usage

git clone https://github.com/TimeMagazine/natural_disasters && cd natural_disasters
npm install

To download the raw files, run this:

node lib/getEvents.js

Warning: The script may take up to two hours to download all NOAA events, but the downcache module will cache the files locally for future references. Upon completion, the state files will be updated with the latest natural disasters from NOAA.

Data

The natural disasters are downloaded from:

  1. NOAA storm events database
  2. NOAA significant earthquake archive

The first database contains 41 types of events, ranging from heavy fogs to rip tides. The second database only contains earthquakes.

Converting geographies to U.S. counties

The NOAA events come in various geographies, e.g. hurricanes use National Weather Zones, and earthquakes are recorded in latitude and longitude. The following geographic data, contained in the data/raw folder, is used in the getEvents.js script to convert other geographies to U.S. counties for the final map.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published