Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A coast is stored as a raster of rows and columns of cells, each by . The heights in metres, row by row from the north, are the following. Row 1: 0.4, 0.9, 1.6, 2.8, 3.5, 4.1. Row 2: 0.7, 1.2, 2.4, 2.9, 3.1, 3.8. Row 3: 0.3, 1.9, 2.6, 3.2, 1.1, 3.3. Row 4: 0.6, 1.1, 1.7, 2.4, 0.9, 2.9. Row 5: 0.5, 0.8, 1.3, 2.2, 3.0, 3.6. Row 6: 0.2, 0.6, 1.5, 2.7, 3.4, 4.0. The sea lies to the west of the first column. Water spreads only from a flooded cell to a neighbour that shares an edge with it. (a) How many cells are at or below ? (b) How many of them does a sea level of reach? (c) What area do the reached cells cover, in hectares? (d) By how many hectares does counting all the low cells overstate the flooding? (e) Between and , what is the lowest level, in steps of , at which every low cell is reached?
The shoelace formula gives the area of a polygon from its corners in metres. The buffer of a convex polygon has the area . A cell of column and row has its centre at and . An affine transformation has the form , . The slope has .
Check an answer or open a hint to unlock the worked solution.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Step 1. The low cells. By rows there are 3, 2, 3, 4, 3, 3 cells of or lower, so cells.
Step 2. The cells reached. Start from the west column. The sea spreads along rows 1, 2, 4, 5 and 6, and up through in row 3. The two cells of and in the east of rows 3 and 4 have walls of , , , , and round them. The sea cannot get there. So it reaches cells.
Step 3. The area. .
Step 4. The overstatement. The two walled-in cells have an area of .
Step 5. The level. The two cells can be reached when a path of cells at or below the level connects them to the sea. The weakest wall is the cell of in row 4, which joins them to the cell of . So the lowest level is .
Answer: cells; cells; ; ; .
Watch out. A map of flooded cells made by a simple threshold shows ponds that the sea cannot fill. For a real hazard map, a river or a pump, or a drain, can fill a pocket as well.
Log in to join the discussion.
Loading…