cc-ai / floods-frontend

Frontend user-interface for the Climate Change AI Floods project
https://mila.quebec/en/ai-society/visualizing-climate-change/
2 stars 3 forks source link

Overlay #17

Open vict0rsch opened 5 years ago

vict0rsch commented 5 years ago

To know where areas are flooded

notoraptor commented 5 years ago

Hi! @vict0rsch @sashavor @Vahe987

Just to say I am currently working on creating some simulated data to have at least something to display!

Currently, I got approximate values for altitudes in many points in Montreal (around 4238 x 3680 = 15595840 coordinates) and I saved it into a simple TXT file. I am writing a script to help generate rectangles to draw, given this TXT file and a flood threshold. For example, if given thresold is 10 meters, then the script should select all points where altitude is below 10 meters and consider them as flooded.

This is quite easy (just loop over all points), but now I need to group them in rectangles to reduce number of points to draw, and I just need few more time to do it correctly. Once it's done, I should be able to draw the rectangles.

I hope it will be done today or tomorrow, at least!

Vahe987 commented 5 years ago

good job Steven. Did you found a way to determine if the given point is in the river or not?