Measurement and computation of streamflow