|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.n52.operation.cropmodeling.CropAssimilationAlgorithm
public class CropAssimilationAlgorithm
Algorithm to calculate assimilation values
The algorithm works on a timeseries temperature values; it needs time-temperature value pairs and the latitude of the spatial location to correctly perform the calculation
| Field Summary | |
|---|---|
protected java.util.Calendar |
cal
TemperatureModelAlgorithm cal field |
| Constructor Summary | |
|---|---|
CropAssimilationAlgorithm()
constructor |
|
| Method Summary | |
|---|---|
double[] |
calculate(double[] temperatures)
Calculates the results of the AlgorithmN for the values in params. |
void |
setCropdataFile(java.lang.String cropdataFile)
Specify the file to be used for the cropdata parameter file |
void |
setCropType(java.lang.String cropType)
Specify the crop type to use |
void |
setLatitude(double lat)
|
void |
setResolution(double resolution)
|
void |
setStartTime(int year,
int month,
int day,
int hours,
int minutes)
|
void |
setTemperatureModel(TemperatureModelAlgorithm tempo)
Specify the temperature model |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Calendar cal
| Constructor Detail |
|---|
public CropAssimilationAlgorithm()
| Method Detail |
|---|
public void setLatitude(double lat)
lat - The latitude to set.public void setResolution(double resolution)
resolution - The time resolution in minutes to set.
public void setStartTime(int year,
int month,
int day,
int hours,
int minutes)
year - month - day - hours - minutes - public void setCropdataFile(java.lang.String cropdataFile)
cropdataFile - cropdata parameter filenamepublic void setCropType(java.lang.String cropType)
cropType - public void setTemperatureModel(TemperatureModelAlgorithm tempo)
tempo - temperature modelpublic double[] calculate(double[] temperatures)
AlgorithmN
calculate in interface AlgorithmN
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||