benmatheson / fire

An experimental fire data analysis and visualization using R, JavaScript, Leaftlet, and Plotly.

Home Page:https://benmatheson.github.io/blog/fire/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An experimental fire data analysis and visualization using R, javascript, Leaftlet, and Plotly.

fire1

The fire_script.R file scrapes fire websites every hour (you must configure with a local cron job) and pareses the Excel and CSV data (fire_history.csv, query.xlsx) to output several current and historic data points in a "exportJSON.JSON" file.

Scripts within index.html format the JSON into the DOM and render Plot.ly charts.

fire2

ESRI ArcGIS image services (only updated during the fire season) from the Alaska Fire Service are utilized in custom Leaflet maps.

The script also cleans up a bit of what I belive are human fat finger errors in the fire crews' data entry.

#fixed the bad thign???***here 
fireHistory <- filter(fireHistory, Month >5)
fireHistory$SitReportDate <- gsub("2107-06-12","2017-06-12", fireHistory$SitReportDate)

About

An experimental fire data analysis and visualization using R, JavaScript, Leaftlet, and Plotly.

https://benmatheson.github.io/blog/fire/


Languages

Language:HTML 53.1%Language:JavaScript 31.1%Language:R 15.6%Language:Shell 0.1%