From e9d86f8b7b762a86364ef52799f3bb84146fb2d4 Mon Sep 17 00:00:00 2001
From: ALEXANDER Peter <palexand@login01.ecdf.ed.ac.uk>
Date: Thu, 4 Nov 2021 20:17:25 +0000
Subject: [PATCH] Change required number of columns in anpp.out file

---
 src/ac/ed/lurg/yield/LPJYieldResponseMapReader.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ac/ed/lurg/yield/LPJYieldResponseMapReader.java b/src/ac/ed/lurg/yield/LPJYieldResponseMapReader.java
index 28f129c9..67aa8a32 100644
--- a/src/ac/ed/lurg/yield/LPJYieldResponseMapReader.java
+++ b/src/ac/ed/lurg/yield/LPJYieldResponseMapReader.java
@@ -60,7 +60,7 @@ public class LPJYieldResponseMapReader {
 	
 	private void readNppFile(YieldRaster yieldRaster, String fileToRead) {  // Passed in YieldRaster is updated
 		
-		AbstractTabularRasterReader<YieldResponsesItem> nppReader = new AbstractTabularRasterReader<YieldResponsesItem>("\\s+", 10, yieldRaster) {
+		AbstractTabularRasterReader<YieldResponsesItem> nppReader = new AbstractTabularRasterReader<YieldResponsesItem>("\\s+", 4, yieldRaster) {
 			protected void setData(RasterKey key, YieldResponsesItem item, Map<String, Double> rowValues) {
 				double adjFactor = 10 * ModelConfig.PASTURE_HARVEST_FRACTION / 0.446;  // 10 for kg/m2 to t/ha, 0.446 carbon units / dry matter, from Osaki, M., Shinano, T., Tadano, T., 1992. Carbon-nitrogen interaction in field crop production. Soil Science and Plant Nutrition 38, 553-564.
 								
-- 
GitLab