> 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/theoretical-documentation/section-1-climate/chapter-1-3-weather-generator.md).

# Chapter 1:3 Weather Generator

SWAT+ requires daily values of precipitation, maximum and minimum temperature, solar radiation, relative humidity and wind speed. The user may choose to read these inputs from a file or generate the values using monthly average data summarized over a number of years.&#x20;

SWAT+ includes the WXGEN weather generator model (Sharpley and Williams, 1990) to generate climatic data or to fill in gaps in measured records. This weather generator was developed for the contiguous U.S. If the user prefers a different weather generator, daily input values for the different weather parameters may be generated with an alternative model and formatted for input to SWAT+.&#x20;

The occurrence of rain on a given day has a major impact on relative humidity, temperature and solar radiation for the day. The weather generator first independently generates precipitation for the day. Once the total amount of rainfall for the day is generated, the distribution of rainfall within the day is computed if the Green & Ampt method is used for infiltration. Maximum temperature, minimum temperature, solar radiation and relative humidity are then generated based on the presence or absence of rain for the day. Finally, wind speed is generated independently.


---

# 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/theoretical-documentation/section-1-climate/chapter-1-3-weather-generator.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.
