public SQLiteValidation(string scenariosDir, string scenarioName, OutputIntervalType interval)
        {
            _extractSQLite = new ExtractSWAT_SQLite(scenariosDir, scenarioName,interval);
            _extractText = new ExtractSWAT_Text_SWATPlot(scenariosDir,scenarioName);

            _startYear = _extractText.StartYear;
            _endYear = _extractText.EndYear;
        }
Example #2
0
        /// <summary>
        /// Extract data from regular text file as datatable
        /// </summary>
        static void TestExtractFromText_SWATPlot(string txtinoutPath)
        {
            Console.WriteLine("******************** Text SWATPlot ********************");
            ExtractSWAT_Text_SWATPlot extract = new ExtractSWAT_Text_SWATPlot(txtinoutPath);

            Console.WriteLine("******************** First Try ********************");
            extract.Extract(UnitType.RCH, 1, "FLOW_OUTcms");//case sensitive
            extract.Extract(1993, UnitType.RCH, 1, "FLOW_OUTcms");
            extract.Extract(2000, UnitType.RCH, 1, "FLOW_OUTcms");
            extract.Extract(2007, UnitType.RCH, 1, "FLOW_OUTcms");
            extract.Extract(UnitType.HRU, 1, "ETmm");
            extract.Extract(1993, UnitType.HRU, 1, "ETmm");
            extract.Extract(2000, UnitType.HRU, 1, "ETmm");
            extract.Extract(2007, UnitType.HRU, 1, "ETmm");

            Console.WriteLine("******************** Second Try ********************");
            extract.Extract(UnitType.RCH, 1, "FLOW_OUTcms");//case sensitive
            extract.Extract(1993, UnitType.RCH, 1, "FLOW_OUTcms");
            extract.Extract(2000, UnitType.RCH, 1, "FLOW_OUTcms");
            extract.Extract(2007, UnitType.RCH, 1, "FLOW_OUTcms");
            extract.Extract(UnitType.HRU, 1, "ETmm");
            extract.Extract(1993, UnitType.HRU, 1, "ETmm");
            extract.Extract(2000, UnitType.HRU, 1, "ETmm");
            extract.Extract(2007, UnitType.HRU, 1, "ETmm");
        }