This project is to make an interactive page which allows people to learn more about ‘earthquakes in their backyard’
(1) an initial ‘landing’ page that is a map of NZ with all the faults shown (basically what we have created as part of the SeisTech event search page)
(2) When the user clicks on a fault a pop-up box displays: (i) name of the fault; (ii) some basic metadata like the magnitude; (iii) a link to a video (see 3)
(3) the video shows the GmSimViz animation of the rupture - rupture on the fault, ground motion shaking, and then finishes with the final (maximum over the full time duration) PGV and MMI. Viktor has already implemented this functionality in its entirety. [each video can be hosted on YouTube]
Current Working website
Source code https://github.com/ttgenius/flask-leaflet
For all instructions on how to setup the website, see README.md in above git link.
Click a fault to show srf projection
Click the same fault again to remove srf projection.
Mouseover to show pop up box
Click 'Simulation Video' to see GMSimViz video
TODO:
Produce GMSimViz videos for each fault
Why not using exisiting https://github.com/ucgmsim/USER-Projects
(1) Website only works on certain pc due to hard coded paths
(2) Data insertion through url
(3) Using PostgreSQL
(4) code in django, bit messy, better from scratch
Recommendation:
1) Use flask + mysql to deploy on AWS