10.07.2015 Views

Finding Potential Sites for Small-Scale Hydro Power in Uganda: a ...

Finding Potential Sites for Small-Scale Hydro Power in Uganda: a ...

Finding Potential Sites for Small-Scale Hydro Power in Uganda: a ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

(a) (b) (c)Figure 4.8 An example show<strong>in</strong>g the matrix “DATA” (a) and the arrays“RIVERCELLS” (b) and “ORDER” (c).To locate these ten <strong>in</strong> a row connected cells the algorithm is designed to search pixelsdownstream by the use of a “3 x 3 pixel search w<strong>in</strong>dow”, which is illustrated <strong>in</strong> theexample <strong>in</strong> Figure 4.9. It starts search<strong>in</strong>g from the highest ranked pixel <strong>in</strong> “ORDER”,which is also the cell with highest elevation, which <strong>in</strong> the example corresponds to the cell<strong>in</strong> the second row and second column <strong>in</strong> “DATA”. From here it exam<strong>in</strong>es all eightsurround<strong>in</strong>g cells, start<strong>in</strong>g with the northwest pixel and then cont<strong>in</strong>u<strong>in</strong>g clockwise.Figure 4.9 An example of how the ”3 x 3 search w<strong>in</strong>dow” operation works <strong>in</strong> a fictitious raster.42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!