WinRiver Ⅱ is Teledyne RD Instrument's(TRDI)ADCP random software,which is highly appreciated by users for its features such as device connection steady,automatic parameter configuration,Chinese interface,and stable and reliable operation.Nevertheless,the measurement file(*.MMT),which is recorded in the UTF-8 encoding of the Extensible Markup Language(XML)file format,poses challenges in setting the parameters for estimating the edge flow discharge in tide sensing hydrometry test.This paper presents the edge discharge estimation model combining the large cross-section and water level,as well as the accuracy evaluation method of the calculation results.In combination with practical examples,the automatic extraction of the start and end valid ensemble numbers of the measurement file,the determination of the left and right edges at the start of measurement,and the intelligent calculation of the edge distance were carried out.The developed program enables batch processing calls of the software,which is beneficial for enhancing the accuracy and computational efficiency of the cross-section flow discharge measurement.