Skip to content
Snippets Groups Projects
Commit e9d86f8b authored by ALEXANDER Peter's avatar ALEXANDER Peter
Browse files

Change required number of columns in anpp.out file

parent 83f95d88
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ public class LPJYieldResponseMapReader { ...@@ -60,7 +60,7 @@ public class LPJYieldResponseMapReader {
private void readNppFile(YieldRaster yieldRaster, String fileToRead) { // Passed in YieldRaster is updated 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) { 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. 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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment