Watershed programming and modeling