protected bool Glue(DateTime start, DateTime end, List<string> list) { try { HDFGlue tool_glue = new HDFGlue(); tool_glue.Reset(); tool_glue.FilesToGlue = list; tool_glue.AppName = fGlueExe; tool_glue.AppPath = fGlueExePath; tool_glue.WorkingDirectory = fGlueWorkingFolder; tool_glue.Output = fOutputPath + fOutputTag + start.ToString("yyyyMMddHH") + "_" + end.ToString("yyyyMMddHH") + ".hdf5"; tool_glue.Is3DFile = false; tool_glue.ThrowExceptionOnError = true; tool_glue.Glue(); } catch (Exception ex) { fLastException = ex; return false; } return true; }
protected bool Glue(DateTime start, DateTime end, List<string> list, ConfigNode log_entry) { try { string output = fOutputPath + fOutputTag + start.ToString("yyyyMMddHH") + "_" + end.ToString("yyyyMMddHH") + ".hdf5"; if (fLogExecution) log_entry.NodeData["glue.exception"].Set(""); if (!fOverwrite) { if (File.Exists(output)) { if (fLogExecution) log_entry.NodeData["output.file"].Set("[exists] " + output); return true; } } if (fLogExecution) log_entry.NodeData["output.file"].Set(output); HDFGlue tool_glue = new HDFGlue(); tool_glue.Reset(); tool_glue.FilesToGlue = list; tool_glue.AppName = fGlueExe; tool_glue.AppPath = fGlueExePath; tool_glue.WorkingDirectory = fGlueWorkingFolder; tool_glue.Output = output; tool_glue.Is3DFile = false; tool_glue.ThrowExceptionOnError = true; tool_glue.Glue(); } catch (Exception ex) { fLastException = ex; if (fLogExecution) log_entry.NodeData["glue.exception"].Set(ex.Message); return false; } return true; }