Skip to content

Fire Following Earthquake (FFE) experiments with Apache Spark

License

Notifications You must be signed in to change notification settings

chrisbc/ffe-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ffe-spark

Fire Following Earthquake (FFE) experiments with Apache Spark

The aim of the project is to explore the application of Spark and GeoMesa to this problem domain.

There may be two key applications of interest:

1) Finding adjacent vertices

The naive algorithm for finding adjacent vertices (the flammable objects) by distance has O(n2) cost, making it impractical for medim-large scale madelling. Can we do better e.g. O(nlogn) using geo-indexed algorithms e.g. those in GeoMesa for Spark.

ref:

2) Modelling

Modelling the spread of fire over time and eventual fuel exhaustion could be well suited to a Graph data model using message passing. These are available in Spark GraphX so here we can compare this to the current approach using for loops and a Pandas dataframe.

Getteging started

Pre-requisites:

  • You must have a workgin docker installation
  • Some notebooks need larger input datasets (shapefiles). These should be copied into the geodata folder.

Startup

  • Open a terminal and cd into the docker folder
  • run docker-compose up -d from the docker folder
  • run docker-compose logs notebook and cut-n-paste the URL e.g. http://127.0.0.1:8888/?token=**********
  • opemn the URL in your brower and open the DEMO folder.

Youre in, try out the notebooks yourself.

Usage

  • Notice that docker-compose is running 4 containers. To shutdown all together, just run docker-compose down
  • Any changes or new notebooks will be saved to the host filesystem in docker/fs/home/jovyan. You may check this in to the git repo is you want to share them.

About

Fire Following Earthquake (FFE) experiments with Apache Spark

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published