public void WriteToSettings(PiscesEngine settings) { settings.ThirtyYearAverage = this.checkBox30Year.Checked; settings.SelectedAnalysisType = AnalysisType.WaterYears; settings.WaterYears = this.SelectedYears; settings.BeginningMonth = yearTypeSelector1.BeginningMonth; }
public CorrelationAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.Correlation; m_name = "Correlation"; Description = "Correlation between two items. You must selected exactly two items"; }
public MovingAverageAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.MovingAverage; m_name = "Moving Average"; Description = "Moving average"; }
public WaterYearsAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.WaterYears; m_name = "Water Years"; Description = "This option allows comparing different water or calendar years"; }
public DisplayOptionsDialog(PiscesEngine explorer) { InitializeComponent(); this.explorer1 = explorer; listBox1.Items.Clear(); analysisList = explorer1.AnalysisList; for (int i = 0; i < analysisList.Count; i++) { listBox1.Items.Add(explorer1.AnalysisList[i].Name); } analysisList[AnalysisType.TimeSeries].UserInterface = new TimeSeriesOptions(); analysisList[AnalysisType.Exceedance].UserInterface = new ExceedanceOptions(); analysisList[AnalysisType.Probability].UserInterface = new ProbabilityOptions(); analysisList[AnalysisType.WaterYears].UserInterface = new WaterYearOptions(); analysisList[AnalysisType.SummaryHydrograph].UserInterface = new SummaryHydrographOptions(); analysisList[AnalysisType.Correlation].UserInterface = new CorrelationOptions(); analysisList[AnalysisType.MonthlySummary].UserInterface = new MonthlySummaryOptions(); analysisList[AnalysisType.MovingAverage].UserInterface = new MovingAverageOptions(); analysisList[AnalysisType.TraceAnalysis].UserInterface = new TraceOptions(); listBox1.SelectedIndex = 0; ReadFromSettings(explorer); }
public virtual void WriteToSettings(PiscesEngine settings) { settings.SelectedAnalysisType = analysisType; settings.TimeWindow = timeWindowOptions1.TimeWindow; settings.MonthDayRange = this.rangePicker1.MonthDayRange; settings.StatisticalMethods = aggregateOptions1.StatisticalMethods; settings.BeginningMonth = yearTypeSelector1.BeginningMonth; }
public TimeSeriesAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.TimeSeries; Explorer = explorer; this.view = explorer.View; m_name = "Time Series"; Description = "This option will graph a raw or basic summary of your data."; }
public void WriteToSettings(PiscesEngine settings) { settings.SelectedAnalysisType = AnalysisType.MovingAverage; settings.TimeWindow = timeWindowOptions1.TimeWindow; settings.PlotMoving120HourAverage = checkBox120hr.Checked; settings.PlotMoving24HourAverage = checkBox24hr.Checked; settings.PlotRaw =checkBoxRawData.Checked; }
public void WriteToSettings(PiscesEngine settings) { settings.SelectedAnalysisType = AnalysisType.MovingAverage; settings.TimeWindow = timeWindowOptions1.TimeWindow; settings.PlotMoving120HourAverage = checkBox120hr.Checked; settings.PlotMoving24HourAverage = checkBox24hr.Checked; settings.PlotRaw = checkBoxRawData.Checked; }
public ProbabilityAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.Probability; m_name = "Sorted Data - Probability"; Description = "Selected items are sorted, ranked " + "\nand plotted using a simple ranking i=(1,2,3 ... n)" + "\npercent = i/n"; }
/// <summary> /// A monthly summary of daily data /// displays the min,max,mean, and count for each month. /// </summary> /// <param name="explorer"></param> public MonthlySummaryAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.MonthlySummary; m_name = "Monthly Summary"; Description = "A monthly summary of daily data. Either multi years or condensed to 12 values.\n" + "Displays the min,max,mean, and count"; }
public void ReadFromSettings(PiscesEngine settings) { timeWindowOptions1.TimeWindow = settings.TimeWindow; //this.timeWindowOptions1.AllowFullPeriodOfRecord = settings.AllowFullPeriodOfRecord; //this.timeWindowOptions1.Visible = !settings.HasTraces; this.checkBox120hr.Checked = settings.PlotMoving120HourAverage; this.checkBox24hr.Checked = settings.PlotMoving24HourAverage; this.checkBoxRawData.Checked = settings.PlotRaw; }
public ExceedanceAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.Exceedance; m_name = "Sorted Data - Exceedance"; Description = "Selected items are sorted, ranked " + "\nand plotted using the Weibul ranking i=(1,2,3 ... n)" + "\npercent = i/(n+1)"; }
public SummaryHydrographAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.SummaryHydrograph; m_name = "Summary Hydrograph"; Description = "A summary hydrograph is a statistical hydrograph.\n" + "Consider using a monthly summary if you don’t need a statistic for each day in the year\n" + "\n\nNote: February 29th is not included."; }
public SummaryHydrographAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.SummaryHydrograph; m_name = "Summary Hydrograph"; Description = "A summary hydrograph is a statistical hydrograph.\n" +"Consider using a monthly summary if you don’t need a statistic for each day in the year\n" +"\n\nNote: February 29th is not included."; }
public virtual void ReadFromSettings(PiscesEngine settings) { timeWindowOptions1.TimeWindow = settings.TimeWindow; //this.timeWindowOptions1.AllowFullPeriodOfRecord = settings.AllowFullPeriodOfRecord; //this.timeWindowOptions1.Visible = !settings.HasTraces; rangePicker1.BeginningMonth = settings.BeginningMonth; rangePicker1.MonthDayRange = settings.MonthDayRange; aggregateOptions1.StatisticalMethods = settings.StatisticalMethods; yearTypeSelector1.BeginningMonth = settings.BeginningMonth; Enabling(); }
public TraceAnalysis(PiscesEngine explorer) : base(explorer) { m_analysisType = AnalysisType.TraceAnalysis; m_name = "Trace Analysis"; Description = "This analysis option allows users to comparatively and/or statistically analyze " + " a dataset that contains several traces/scenarios which usually result from " + " iterative model runs with varying model inputs, assumptions, and conditions." + " \n\n" + "Trace analysis will not run if the selected number of traces < 10." + " \n"; }
public void WriteToSettings(PiscesEngine settings) { settings.SelectedAnalysisType = AnalysisType.SummaryHydrograph; settings.TimeWindow = timeWindowOptions1.TimeWindow; settings.ExceedanceLevels = exceedanceLevelPicker1.ExceedanceLevels; settings.AlsoPlotYear = this.checkBoxPlotYear.Checked; settings.PlotYear = this.YearToPlot; settings.PlotMax = this.checkBoxMaximum.Checked; settings.PlotMin = this.checkBoxMinimum.Checked; settings.PlotAvg = this.checkBoxAverage.Checked; settings.BeginningMonth = this.yearTypeSelector1.BeginningMonth; }
public void ReadFromSettings(PiscesEngine settings) { this.checkBoxAverage.Checked = settings.PlotAvg; this.checkBoxMaximum.Checked = settings.PlotMax; this.checkBoxMinimum.Checked = settings.PlotMin; this.checkBoxPlotYear.Checked = settings.AlsoPlotYear; this.maskedTextBoxPlotYear.Text = settings.PlotYear.ToString(); timeWindowOptions1.TimeWindow = settings.TimeWindow; //this.timeWindowOptions1.AllowFullPeriodOfRecord = settings.AllowFullPeriodOfRecord; //this.exceedanceLevelPicker1.ExceedanceLevels = settings.ExceedanceLevels; this.yearTypeSelector1.BeginningMonth = settings.BeginningMonth; }
public void ReadFromSettings(PiscesEngine settings) { this.checkBoxPlotTrace.Checked = settings.AlsoPlotTrace; this.comboBoxSelectedTrace.Text = settings.PlotTrace.ToString(); this.traceExceedanceCheckBox.Checked = settings.traceExceedanceAnalysis; this.traceAggregationCheckBox.Checked = settings.traceAggregationAnalysis; this.sumCYRadio.Checked = settings.sumCYRadio; this.sumWYRadio.Checked = settings.sumWYRadio; this.sumRangeRadio.Checked = settings.sumCustomRangeRadio; this.checkBoxPlotMin.Checked = settings.PlotMinTrace; this.checkBoxPlotAvg.Checked = settings.PlotAvgTrace; this.checkBoxPlotMax.Checked = settings.PlotMaxTrace; this.timeWindowOptions1.TimeWindow = settings.TimeWindow; this.rangePicker1.BeginningMonth = settings.BeginningMonth; this.rangePicker1.MonthDayRange = settings.MonthDayRange; this.scenarioTable = settings.Database.GetSelectedScenarios(); }
public void WriteToSettings(PiscesEngine settings) { settings.SelectedAnalysisType = AnalysisType.TraceAnalysis; settings.ExceedanceLevels = exceedanceLevelPicker1.ExceedanceLevels; settings.AlsoPlotTrace = this.checkBoxPlotTrace.Checked; try // stupid hack... needs some better logic here. problem is that Pisces crashes when the combobox is left blank { settings.PlotTrace = this.comboBoxSelectedTrace.SelectedItem.ToString(); } catch { settings.PlotTrace = "Run0"; } settings.traceExceedanceAnalysis = this.traceExceedanceCheckBox.Checked; settings.traceAggregationAnalysis = this.traceAggregationCheckBox.Checked; settings.sumCYRadio = this.sumCYRadio.Checked; settings.sumWYRadio = this.sumWYRadio.Checked; settings.sumCustomRangeRadio = this.sumRangeRadio.Checked; settings.PlotMinTrace = this.checkBoxPlotMin.Checked; settings.PlotAvgTrace = this.checkBoxPlotAvg.Checked; settings.PlotMaxTrace = this.checkBoxPlotMax.Checked; settings.TimeWindow = timeWindowOptions1.TimeWindow; settings.MonthDayRange = this.rangePicker1.MonthDayRange; }
public void ReadFromSettings(PiscesEngine settings) { this.checkBoxAverage.Checked = settings.PlotAvg; this.checkBoxMaximum.Checked = settings.PlotMax; this.checkBoxMinimum.Checked = settings.PlotMin; this.checkBoxPlotYear.Checked = settings.AlsoPlotYear; var yearsText = ""; foreach (var years in settings.PlotYear) { yearsText += years + ","; } yearsText = yearsText.Trim(','); this.maskedTextBoxPlotYear.Text = yearsText; timeWindowOptions1.TimeWindow = settings.TimeWindow; //this.timeWindowOptions1.AllowFullPeriodOfRecord = settings.AllowFullPeriodOfRecord; //this.exceedanceLevelPicker1.ExceedanceLevels = settings.ExceedanceLevels; this.yearTypeSelector1.BeginningMonth = settings.BeginningMonth; }
private void InitializePisces(string fileName) { Logger.OnLogEvent += new StatusEventHandler(Logger_OnLogEvent); UserControl uc = null; #if PISCES_OPEN uc = new TimeSeriesZedGraph(); #else uc = new TimeSeriesTeeChartGraph(); #endif graphView1 = new GraphExplorerView(uc as ITimeSeriesGraph); engine1 = new PiscesEngine(graphView1, fileName); ReadSettingsFromDatabase(); SetView(graphView1); tree1 = new PiscesTree(new TimeSeriesTreeModel(engine1.Database)); tree1.FilterChanged += tree1_FilterChanged; tree1.ContextMenuStrip = this.contextMenuStripTree; tree1.Parent = this.splitContainer1.Panel1; tree1.Dock = DockStyle.Fill; tree1.SelectionChanged += new EventHandler(tree1_SelectionChanged); tree1.LabelChanged += new EventHandler <EventArgs>(tree1_LabelChanged); tree1.Delete += new EventHandler <EventArgs>(tree1_Delete); tree1.TreeNodeParentChanged += new EventHandler <ParentChangedEventArgs>(tree1_TreeNodeParentChanged); tree1.TreeNodeSortChanged += new EventHandler <SortChangedEventArgs>(tree1_TreeNodeSortChanged); engine1.View = graphView1; engine1.OnProgress += new ProgressEventHandler(explorer_OnProgress); DataMenu.DropDown = contextMenuStripTree; DatabaseChanged(); }
private void InitializePisces(string fileName) { Logger.OnLogEvent += new StatusEventHandler(Logger_OnLogEvent); UserControl uc=null; #if PISCES_OPEN uc = new TimeSeriesZedGraph(); #else uc = new TimeSeriesTeeChartGraph(); #endif graphView1 = new GraphExplorerView(uc as ITimeSeriesGraph); engine1 = new PiscesEngine(graphView1,fileName); ReadSettingsFromDatabase(); SetView(graphView1); tree1 = new PiscesTree(new TimeSeriesTreeModel( engine1.Database)); tree1.FilterChanged += tree1_FilterChanged; tree1.ContextMenuStrip = this.contextMenuStripTree; tree1.Parent = this.splitContainer1.Panel1; tree1.Dock = DockStyle.Fill; tree1.SelectionChanged += new EventHandler(tree1_SelectionChanged); tree1.LabelChanged += new EventHandler<EventArgs>(tree1_LabelChanged); tree1.Delete += new EventHandler<EventArgs>(tree1_Delete); tree1.TreeNodeParentChanged += new EventHandler<ParentChangedEventArgs>(tree1_TreeNodeParentChanged); tree1.TreeNodeSortChanged += new EventHandler<SortChangedEventArgs>(tree1_TreeNodeSortChanged); engine1.View = graphView1; engine1.OnProgress += new ProgressEventHandler(explorer_OnProgress); DataMenu.DropDown = contextMenuStripTree; DatabaseChanged(); }
public void ReadFromSettings(PiscesEngine settings) { yearTypeSelector1.BeginningMonth = settings.BeginningMonth; checkBox30Year.Checked = settings.ThirtyYearAverage; }
public AnalysisCollection(PiscesEngine explorer) { m_list = new List <BaseAnalysis>(); Explorer = explorer; }
public override void ReadFromSettings(PiscesEngine settings) { base.ReadFromSettings(settings); radioButtonMultiYear.Checked = settings.MultiYearMonthlyAggregate; statisiticalMethodOptions1.StatisticalMethods = settings.StatisticalMethods; }
public override void WriteToSettings(PiscesEngine settings) { base.WriteToSettings(settings); settings.StatisticalMethods = statisiticalMethodOptions1.StatisticalMethods; settings.MultiYearMonthlyAggregate = radioButtonMultiYear.Checked; }
public void WriteToSettings(PiscesEngine settings) { analysisList[this.listBox1.SelectedIndex].ExplorerSettings.WriteToSettings(settings); }
protected BaseAnalysis(PiscesEngine explorer) { m_explorer = explorer; view = explorer.View; }
public void ReadFromSettings(PiscesEngine settings) { analysisList[this.listBox1.SelectedIndex].ExplorerSettings.ReadFromSettings(settings); //explorer1.SaveSettings(); }