Git Product home page Git Product logo

devinrshaw / wildfire-local-climate-data-creation Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 187 KB

Fire climate dataset creation from NOAA API based on location and time for use in machine learning model. Is the project that motivated the creation of the library simple_noaa.

Jupyter Notebook 100.00%
data data-science data-structures risk-analysis risk-assessment risk-modelling wildfires

wildfire-local-climate-data-creation's Introduction

Wildfire Local Climate Data Creation Project

Introduction

The California Fire Science Consortium established fire regions across the state of California to aid in managing and responding to wildfires. This project aims to use metadata of weather stations within these established fire regions in order to provide relevant weather information during a wildfire event. Code in this project was used in a larger project for the National Science Foundation, where machine learning models were used on the created dataset to identify potential risk factors that are currently ignored by regulatory bodies. Links to the metadata listed by NOAA are listed in notebook used for creation of dataset.

Data Source

The data for this project was obtained from the NOAA National Centers for Environmental Information (NCEI) Climate Data Record of Hourly Surface Meteorological and Upper-Air Observations.

Data Processing

The data was processed using Python and the following libraries:

  • Requests
  • Pandas
  • Shapely
  • Regular Expressions (re)

The steps involved in the data processing are as follows:

  1. The fire regions were established using the coordinates provided by the California Fire Science Consortium and stored as Shapely Polygons.
  2. A list of weather stations and their coordinates were extracted from the data file obtained from NCEI.
  3. For each weather station, the program checks if it is located within one of the established fire regions and appends it to a list of stations within that region.
  4. The function lat_lon_to_shapely was created to convert latitude and longitude into Shapely Point objects.
  5. The function find_region takes a fire location and returns the fire region it is located in.
  6. The function region_station_list takes a fire region and returns a list of weather stations and their coordinates within that region.
  7. The function closest_to_fire_center takes a list of weather stations and a fire location and returns a list of the closest weather stations to the fire center.
  • All of these combine to ultimately be used towards adding to initial dataset

Data Output

The data output from this project adds the climate data acquired in the form of columns representing different variables for each row representing a fire in the dataset.

Conclusion

This project provided a useful tool for analyzing wildfire risk factors by providing relevant information from weather stations within established fire regions. This project motivated the creation of a future project that packaged the methodologies used, showcased on this github as simple_noaa.

wildfire-local-climate-data-creation's People

Contributors

devinrshaw avatar

Stargazers

 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.