Inspiration
Throughout the course of this year and last year, I've read stories of families who have lost their homes to wildfires right here in California. I wanted to create something that, if not solve the problem, could help local governments and fire departments effectively combat wildfires.
What it does
My code reads in data from the California State Government’s website that I put on a text file. Then it sorts the data by county and stores the values in a hashmap. The keys are the county names, and the hashmaps are Arraylists that contain the data about the fires. Using the data, my program then calculates a risk score for every county in California. A risk score is basically a score that shows the likelihood of wildfires occurring in the county. The code then displays the risk scores and other data in a table and a graph in two JavaFX scenes styled using css.
How we built it
I put the data from the California State Government's website on a text file, and used what I learned from doing courses on LinkedinLearning, to code my project in Netbeans.
Challenges I ran into
My first challenge was that I could not find a partner. This is my first hackathon, so I really wanted a partner for some guidance. Ultimately I never found a partner and started working by myself. I had some trouble in the beginning of coding when I was reading the data. To solve this challenge I looked at my coursework to figure out how to read the file. I also had some trouble calculating the risk score. I searched online how to calculate risk and I found a formula: Risk=Impact*Probability. I used this formula to calculate risk scores.
Accomplishments that I'm proud of
I'm really proud that I was able to finish my project on time for my first hackathon. I'm also really proud of the program I created and the fact that it was made under 24 hours, which is just mind-boggling to me. I'm also proud that I was able to use what I learned in the past to create a project which I'm proud of.
What we learned
I learned that you need to do a lot of planning before you start your project. I did not plan how to calculate risk scores before I started coding, and that made the project a lot harder.
What's next for WildfireRiskScoresCalifornia(Here)
I hope to use more data, for accuracy, and expand my program to create predictions about the number of fires in future years.
Log in or sign up for Devpost to join the conversation.