Skip to content
Snippets Groups Projects

Master

Merged Tor-Einar Skog requested to merge master into develop
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -116,7 +116,10 @@ public class MamestraBrassicaeModel extends I18nImpl implements Model{
result.setValue(this.getModelId().toString(),"TMDD", dFormat.format(accumulatedDayDegrees));
// Set input data
result.setValue(CommonNamespaces.NS_WEATHER, "TJM10D", dFormat.format(((WeatherObservation)this.dataMatrix.getParamValueForDate(currentDate, DataMatrix.TJM10D)).getValue()));
if(this.dataMatrix.getParamValueForDate(currentDate, DataMatrix.TJM10D) != null)
{
result.setValue(CommonNamespaces.NS_WEATHER, "TJM10D", dFormat.format(((WeatherObservation)this.dataMatrix.getParamValueForDate(currentDate, DataMatrix.TJM10D)).getValue()));
}
result.setValue(CommonNamespaces.NS_WEATHER, "TMD", dFormat.format(((WeatherObservation)this.dataMatrix.getParamValueForDate(currentDate, DataMatrix.TMD)).getValue()));
retVal.add(result);
Loading