# Yellow Stemborer (Scirpophaga incertulas) temperature model
TODO: Add documentation
The model is a simple day-degree model, where a certain heat sum leads to a transition of one phase to another. It is designed to fit into the [VIPS](https://www.nibio.no/en/subjects/plant-health/vips--a-digital-pest-prediction-platform) automatic pest prediction system.
The daily contribution to the heat sum is calculated from min and max temperatures using the single sine wave function.
## Outputs
The output is a time series of values. For every day, these values are returned:
* Weather data (max and min temp)
* Daily contribution and total heat sum
* Current phase
* Thresholds for phase transitions
* Warning status. 2 = No risk, 3 = Possible risk, 4 = High risk. 0 = Warning status not applicable (e.g. out of season)
## Developing and testing the model
### Writing code
It is recommended to use an IDE (Integrated Development Environment) such as [NetBeans](https://netbeans.apache.org/) or [Eclipse](https://www.eclipse.org/) to develop and test the model.
### Testing
[JUnit](https://junit.org/) is used for testing the model. See the `src/test/java/no/nibio/vips/model/yellowstemborertempmodel/YellowStemborerTempModelTest.java` file for how it's done.
### Building
Building is done using [Maven](https://maven.apache.org/).