Measuring Water Flow in Surface Irrigation Ditches and Gated Pipe