org.n52.operation.cropmodeling
Class GridWeatherData

java.lang.Object
  extended by org.n52.operation.cropmodeling.AttributeData
      extended by org.n52.operation.cropmodeling.WeatherData
          extended by org.n52.operation.cropmodeling.GridWeatherData

public class GridWeatherData
extends WeatherData

Handles data access to grid oriented temperature data. The temperatures are assumed to be equally spaced in time, determined by the time resolution and they start from a specific start time.

Author:
Willem Nieuwenhuis

Field Summary
 
Fields inherited from class org.n52.operation.cropmodeling.WeatherData
latitude, longitude, outputName, useRealData
 
Fields inherited from class org.n52.operation.cropmodeling.AttributeData
attributes, name
 
Constructor Summary
GridWeatherData()
           
 
Method Summary
 double[] getOutputData()
           
 double[] getOutputTemperatures()
           
 void setTemperatures(double[] temperatures, JulianTime startTime, double resolution)
          set the temperatures and parameters to be used for the input of the interpolation
 
Methods inherited from class org.n52.operation.cropmodeling.WeatherData
getDayWeatherData, getLatitude, getLongitude, isUseRealData, setDayWeatherData, setLatitude, setLongitude, setOutputDataTable, setUseRealData
 
Methods inherited from class org.n52.operation.cropmodeling.AttributeData
getAttributeData, getAttributes, getIndexedAttribute, setAttributeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridWeatherData

public GridWeatherData()
Method Detail

setTemperatures

public void setTemperatures(double[] temperatures,
                            JulianTime startTime,
                            double resolution)
set the temperatures and parameters to be used for the input of the interpolation

Parameters:
temperatures -
startTime -
resolution -

getOutputData

public double[] getOutputData()
Returns:
Returns the outputData (AMAX) generated by the interpolation

getOutputTemperatures

public double[] getOutputTemperatures()
Returns:
the temperatures as generated by the interpolation