modifying the gauge id output so that it only contains river segments that have gauges on it