Exemplo n.º 1
0
        /// <summary>
        /// Read data from SWAT output file using OLEDB File Driver
        /// </summary>
        /// <remarks>
        /// 1. This is the method used in ArcSWAT/SWAT_Editor to import data into mdb database
        /// 2. Only support file with .txt extension
        /// </remarks>
        static void TestExtractFromText_FileDriver(string txtinoutPath)
        {
            ExtractSWAT_Text_FileDriver ex = new ExtractSWAT_Text_FileDriver(txtinoutPath);
            //ex.Extract(UnitType.SUB, 1, "ETmm");
            //ex.Extract(UnitType.SUB, 4, "ETmm");
            //ex.Extract(UnitType.SUB, 10, "ETmm");

            //ex.Extract(UnitType.HRU, 1, "ETmm");
            //ex.Extract(UnitType.HRU, 4, "ETmm");
            //ex.Extract(UnitType.HRU, 10, "ETmm");

            //ex.Extract(UnitType.RCH, 1, "FLOW_OUTcms");
            //ex.Extract(UnitType.RCH, 4, "FLOW_OUTcms");
            //ex.Extract(UnitType.RCH, 10, "FLOW_OUTcms");
        }
Exemplo n.º 2
0
        /// <summary>
        /// Read data from SWAT output file using OLEDB File Driver 
        /// </summary>
        /// <remarks>
        /// 1. This is the method used in ArcSWAT/SWAT_Editor to import data into mdb database 
        /// 2. Only support file with .txt extension
        /// </remarks>
        static void TestExtractFromText_FileDriver(string txtinoutPath)
        {
            ExtractSWAT_Text_FileDriver ex = new ExtractSWAT_Text_FileDriver(txtinoutPath);
            //ex.Extract(UnitType.SUB, 1, "ETmm");
            //ex.Extract(UnitType.SUB, 4, "ETmm");
            //ex.Extract(UnitType.SUB, 10, "ETmm");

            //ex.Extract(UnitType.HRU, 1, "ETmm");
            //ex.Extract(UnitType.HRU, 4, "ETmm");
            //ex.Extract(UnitType.HRU, 10, "ETmm");

            //ex.Extract(UnitType.RCH, 1, "FLOW_OUTcms");
            //ex.Extract(UnitType.RCH, 4, "FLOW_OUTcms");
            //ex.Extract(UnitType.RCH, 10, "FLOW_OUTcms");
        }