An Ecological Analysis of Lotic Environments: I. Design and Testing