private void Restore_LR() { tables.CalcsMeteo.AddColumn(tables.BazaInfoMeteo.Column("Hr1")); tables.CalcsMeteo.IterateRows( row => { row.Set("Hr1-50", row["Hr1"].DoubleValue - 50, CellMapper.Rounder2); }, "Hr1-50"); var column_Hr1_minus_50 = tables.CalcsMeteo.Column("Hr1-50"); var column_LR = tables.CalcsMeteo.Column("LR"); var equationName = "LR = a + b * (Hr1 - 50)"; CalcUtils.RestoreColumn(tables.CoeffsTable, column_Hr1_minus_50, column_LR, new RoundDoubleCellMapper(5), equationName); }
private void Restore_QP() { var column_F = tables.BazaInfoHydro.Column("F"); var column_QP = tables.CalcsHydro.Column("QP"); var equationName = "QP = b * F"; var cellMapper = CellMapper.Combine(new ZeroOrGreaterCellMapper(), new RoundDoubleCellMapper(5)); CalcUtils.RestoreColumn(tables.CoeffsTable, column_F, column_QP, cellMapper, equationName, false); tables.Result.Column("QP").SetDataFrom( tables.CalcsHydro.Column("QP_Used")); }