Forgot your password?
typodupeerror

Comment In summary... (Score 1) 40

Thanks everyone for their feedback. Nothing like getting slash-dotted for finding out what the world thinks.

Now that its off the front page, I'm going to to take the opportunity to get the last word.

Few more points:
1) In the initial description it does say "... this application is a general guide and not a true prediction" and so yes I agree flood fill isn't the most accurate algorithm for predicting tsunamis. More accurate is GeoClaw which has a lot of fortran and phython code and some very detailed wave models - but obviously its not easy to incorporate into a simple Applet like mine.

2) IMHO, flood fill is better than simply testing the elevation of all points against the wave cause it prevents the water moving through mountain ranges. The logic for flood fill is very simple (maybe 100 lines of code) and its a small extension to basic elevation testing we can handle.

3) Keep watching the web site, cause I do have some improvements planned. Namely handling more than a 10km by 10km area and taking what we do map down to lower level of detail. But for the algorithm I'll probably be sticking with flood fill at least in the short term.

Finally, if someone is bored I am open to collaboration - in particular to with regard to point 1 above, I'm sure someone with the right knowledge could make a much better algorithm. Check the site for email address.

Comment A note from the author... (Score 1) 40

Thanks for the feedback. A couple of points:
1) Yes - you do need to set the direction before clicking on the map. Otherwise the wave will go in the wrong direction and the results will be bad.
Next release (give me 24 hours) will force the user to enter a direction and also put a little arrow showing the direction chosen.

2) Yes - the flooded area can only be 10km by 10km. I chose this based on some basic research on tsunami reach and needing a reasonable response time from google's elevation service.

3) Yes - it only uses flood fill algorithm to determine if an error is blue or not. If the elevation of the location is less than the wave and it has a neighboring sector which is blue, then its blue.
If someone can point me to the maths that describes how to calculate this based on the wave's energy, velocity etc then I'll have a try. But there may be a limit to what can be done in 300 lines of JavaScript :-)

Submission + - Using googlemaps to simulate tsunamis (tsunami-maps.com)

flemster writes: Tsunami mapper is a new site which uses the googlemaps elevation service and the flood fill algorithm to predict which areas near a coast are likely to be affected by a tsunami. You can search for your local beach, set a wave heading and height and then double click the tsunami starting point off the coast, after which the tsunami range will be drawn. Naturally, predicting a tsunami is far more complicated than this and this application is a general guide and not a true predictor. However the simulations of the recent Japanese simulation are interesting. Compare the tsunami mapper simulation with this aerial photo of Ishinomaki after the March tsunami.

Slashdot Top Deals

"The algorithm to do that is extremely nasty. You might want to mug someone with it." -- M. Devine, Computer Science 340

Working...