Skip to content
Snippets Groups Projects
Commit f1c89df8 authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Giving meaningful feedback when missing soil temperature data

parent de80edda
No related branches found
No related tags found
No related merge requests found
...@@ -316,6 +316,11 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{ ...@@ -316,6 +316,11 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
} }
} }
if(this.dataMatrix.getFirstDateWithParameterValue(DataMatrix.TJM10D) == null)
{
throw new ConfigValidationException("ERROR: No data for soil temperature at -10cm");
}
if(this.dataMatrix.getFirstDateWithParameterValue(DataMatrix.TJM10D) if(this.dataMatrix.getFirstDateWithParameterValue(DataMatrix.TJM10D)
.after(this.dataMatrix.getLastDateWithParameterValue(DataMatrix.TMD)) .after(this.dataMatrix.getLastDateWithParameterValue(DataMatrix.TMD))
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment