private static LineData PrintDailyHeaderLeaf12(Run runOld) { var lastUniverse = GetLastUniverse(runOld); var finalLeafNum = (int)((lastUniverse != null) ? lastUniverse.Crop_.LeafNumber : 0); var space = 39 - finalLeafNum; var header = new LineData(); for (var i = finalLeafNum - 1; i >= 0; --i) { header.Add(i + 1); } header.AddNull(space); for (var i = finalLeafNum - 1; i >= 0; --i) { header.Add(i + 1); } header.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { header.Add(i + 1); } header.AddNull(space); for (var i = finalLeafNum - 1; i >= 0; --i) { header.Add(i + 1); } header.AddNull(space); for (var i = finalLeafNum - 1; i >= 0; --i) { header.Add(i + 1); } header.AddNull(space); for (var i = finalLeafNum - 1; i >= 0; --i) { header.Add(i + 1); } header.AddNull(space); for (var i = finalLeafNum - 1; i >= 0; --i) { header.Add(i + 1); } header.AddNull(space); for (var i = finalLeafNum - 1; i >= 0; --i) { header.Add(i + 1); } return(header); }
private static LineData PrintDailyLeafRow2(Universe universe, int finalLeafNum)//OK { var line = new LineData(); var nbLeaf = universe.Crop_.CreatedLeavesNumber; var space = 38 - finalLeafNum; for (var i = finalLeafNum - 1; i >= 0; --i) { line.Add(universe.Crop_.getExposedSheathAreaIndexForLeafLayer(i), 6); } line.AddNull(41 + space); for (var i = finalLeafNum - 1; i >= 0; --i) { line.Add((universe.Crop_.getExposedSheathTotalDMForLeafLayer(i) * 10.0), 6); } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { line.Add((universe.Crop_.getExposedSheathTotalNForLeafLayer(i) * 10.0), 6); } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { line.Add(universe.Crop_.getExposedSheathSpecificNForLeafLayer(i), 6); } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { line.Add(universe.Crop_.getExposedSheathSpecificWeightForLeafLayer(i), 6); } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { line.Add(universe.Crop_.getExposedSheathTTsinceSenForLeafLayer(i), 6); } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { line.Add(universe.Crop_.getExposedSheathDeadDMForLeafLayer(i) * 10.0, 6); } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { line.Add(universe.Crop_.getExposedSheathLostDMForLeafLayer(i) * 10.0, 6); } return(line); }
private static LineData PrintDailyLeafRow1(Universe universe, int finalLeafNum)//OK { var line = new LineData(); var nbLeaf = universe.Crop_.CreatedLeavesNumber; var space = 38 - finalLeafNum; for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add(universe.Crop_.getLeafLaminaAreaIndexForLeafLayer(i), 6); } else { line.Add((0.0), 6); } } line.AddNull(space).AddNull(); for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add(universe.Crop_.getInterNodeLengthForLeafLayer(i), 6); } else { line.Add((0.0), 6); } } /*var earInterNode = (universe.Crop_.Phytomers_.EarPeduncle != null) ? universe.Crop_.Phytomers_.EarPeduncle.InterNode : null; * if (earInterNode != null) * { * line.Add(earInterNode.Length, 6); * } * else line.Add((0.0), 6);*/ line.Add(universe.Crop_.getEarPeduncleInterNodeLength(), 6); line.Add(universe.Crop_.SumInternodesLength, 6); line.AddNull(space); for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add((universe.Crop_.getLeafLaminaTotalDMForLeafLayer(i) * 10.0), 6); } else { line.Add((0.0), 6); } } line.AddNull(space).AddNull(); for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add((universe.Crop_.getLeafLaminaTotalNForLeafLayer(i) * 10.0), 6); } else { line.Add((0.0), 6); } } line.AddNull(space).AddNull(); for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add(universe.Crop_.getLeafLaminaSpecificNForLeafLayer(i), 6); } else { line.Add((0.0), 6); } } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add(universe.Crop_.getLeafLaminaSpecificWeightForLeafLayer(i), 6); } else { line.Add((0.0), 6); } } line.AddNull(space).AddNull(); for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add(universe.Crop_.getLeafLaminaTTsinceSenForLeafLayer(i), 6); } else { line.Add((0.0), 6); } } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add(universe.Crop_.getLeafLaminaDeadDMForLeafLayer(i) * 10.0, 6); } else { line.Add((0.0), 6); } } line.AddNull(space + 1); for (var i = finalLeafNum - 1; i >= 0; --i) { if (i < nbLeaf) { line.Add(universe.Crop_.getLeafLaminaLostDMForLeafLayer(i) * 10.0, 6); } else { line.Add((0.0), 6); } } return(line); }
public LineData MultiRunLine(Run runOld) { var line = new LineData(); if (runOld.ManagementDef != null) { line.Add(runOld.ManagementDef.Name); } else { line.Add("?"); } if (runOld.ParameterDef != null) { line.Add(runOld.ParameterDef.Name); } else { line.Add("?"); } if (runOld.RunOptionDef != null) { line.Add(runOld.RunOptionDef.Name); } else { line.Add("?"); } if (runOld.SiteDef != null) { line.Add(runOld.SiteDef.Name); } else { line.Add("?"); } if (runOld.SoilDef != null) { line.Add(runOld.SoilDef.Name); } else { line.Add("?"); } if (runOld.VarietyDef != null) { line.Add(runOld.VarietyDef.Name); } else { line.Add("?"); } line.AddNull(); PrintMultiRunSummaryDate(line, runOld, GrowthStage.ZC_00_Sowing); PrintMultiRunSummaryDate(line, runOld, GrowthStage.ZC_92_Maturity); line.AddNull(); PrintMultiRunWarning(line, runOld); string Tag = CutGrainWarningExtractor(runOld); if (Tag == "No Warnings") { line = null; } return(line); }