> For the complete documentation index, see [llms.txt](https://swatplus.gitbook.io/io-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://swatplus.gitbook.io/io-docs/introduction-1/databases/plants.plt/untitled-18.md).

# days\_mat

The PHU program was incorporated directly into SWAT+. The heat units to maturity were changed to days to maturity (*days\_mat*). The concept of heat units to maturity was developed for annual crops and we use heat units for the entire growing season for native perennials and native annuals. By inputting days to maturity, we can include different crop varieties as defined by length of growing season (e.g., 120-, 110-, 100- and 90-day varieties for corn). The heat units to maturity calculation in the model first computes base zero heat units for the entire year and assumes a planting date when heat units exceed 0.15 \* base zero. Then, the model calculates heat units from planting date through the days to maturity using the crop's base temperature as specified by [tmp\_base](/io-docs/introduction-1/databases/plants.plt/tmp_base.md). If the maximum days for a crop are input, e.g., 120 days for corn, and the growing season is less than 120 days, the model essentially sums heat units for the entire growing season which represents (and estimates) the maximum days to maturity.&#x20;

The algorithm currently uses monthly weather generator parameters but could be modified to alternatively use daily temperature inputs. The model provides heat unit estimates in both the northern and southern hemispheres.&#x20;

There are several advantages to incorporating the heat unit program into SWAT+ including:

1. It eliminates the need for running an external program when developing inputs,&#x20;
2. allows input of a commonly understood variable (days) instead of a variable that is not commonly known at every location (heat units),&#x20;
3. allows the model to calculate heat units for native perennials and annuals that are location dependent,&#x20;
4. a database (plants.plt) can be maintained and supported that includes different crop varieties, and&#x20;
5. by inputting the maximum growing season for a crop, the model will calculate appropriate heat units for that crop anywhere in the northern or southern hemisphere.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://swatplus.gitbook.io/io-docs/introduction-1/databases/plants.plt/untitled-18.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
