Application of automated flow and salinity control to dilution of saline irrigation water