aw5277: new weather csv

This commit is contained in:
2023-06-26 20:53:25 +02:00
parent ea976842cd
commit c217195605
3 changed files with 5042 additions and 2 deletions

View File

@@ -1913,7 +1913,7 @@ namespace FarmMapsAPI.Carbon
var monthClimateList = new List<ClimateVariable>();
foreach (var month in gisSoilSet.AllMonths)
{
var climateYear = loopYear > 2020 || loopYear < 2011 ? 2012 : loopYear;
var climateYear = loopYear > 2050 || loopYear < 2011 ? 2012 : loopYear;
var monthData = climate.Single(x => x.Key.Item1 == farmZone && x.Key.Item2 == month && x.Key.Item3 == climateYear).Value;
var newMonthData = new ClimateVariable(monthData.Temperature, monthData.Precipitation, monthData.Evapotranspiration * 1.25);
monthClimateList.Add(newMonthData);