public PiscesDMI(string dbName, string controlFilename, DateTime t1, DateTime t2) { m_controlFile = new ControlFile(controlFilename); m_dbName = dbName; m_t1 = t1; m_t2 = t2; }
/// <summary> /// /// </summary> /// <param name="server">either pnhyd0 or yakhyd</param> /// <param name="controlFilename">riverware control file</param> /// <param name="startDate">riverware simulation start date</param> public HydrometDMI(HydrometHost server, string controlFilename, DateTime startDate, DateTime endDate) { controlFile1 = new ControlFile(controlFilename); this.startDate = startDate; this.endDate = endDate; this.server = server; }
public static void ProcessFile(string filename) { ControlFile cf = new ControlFile(filename); for (int i = 0; i < cf.Length; i++) { double val = 0.0; if (cf.OptionExists(i, "static_file")) { // nothing to do for static files } else if (cf.TryParse(i, "data", out val, 0)) { string outFilename = ""; cf.TryParse(i, "file", out outFilename); File.WriteAllText(outFilename, val.ToString() + "\n"); } else { Console.WriteLine("Error parsing '" + cf[i]); } } }
public ExcelDMI(string excelName, string controlFilename) { controlFile1 = new ControlFile(controlFilename); this.excelName = excelName; TimeSpan ts = new TimeSpan(t2.Ticks - t1.Ticks); }