> 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/1-3.1-precipitation/1-3.1.2-amount-of-precipitation.md).

# 1:3.1.2 Amount of Precipitation

Numerous probability distribution functions have been used to describe the distribution of rainfall amounts. SWAT+ provides the user with two options: a skewed distribution and an exponential distribution.

The skewed distribution was proposed by Nicks (1974) and is based on a skewed distribution used by Fiering (1967) to generate representative streamflow. The equation used to calculate the amount of precipitation on a wet day is:

$$R\_{day}=\mu\_{mon}+2\*\sigma\_{mon}*(\frac{\[(SND\_{day}-\frac{g\_{mon}}{{6}})*\frac{g\_{mon}}{{6}}+1]^3-1}{g\_{mon}})$$                                                                             1:3.1.3

where $$R\_{day}$$ is the amount of rainfall on a given day  ($$mm\space H\_2O$$), $$\mu\_{mon}$$ is the mean daily rainfall              ($$mm\space H\_2O$$) for the month, $$\sigma\_{mon}$$ is the standard deviation of daily rainfall ($$mm\space H\_2O$$) for the month, $$SND\_{day}$$ is the standard normal deviate calculated for the day, and $$g\_{mon}$$ is the skew coefficient for daily precipitation in the month.

The standard normal deviate for the day is calculated:

$$SND\_{day}=cos(6.283*rnd\_2)*\sqrt{-2ln(rnd\_1)}$$                                                                                       1:3.1.4

where $$rnd\_1$$ and $$rnd\_2$$ are random numbers between 0.0 and 1.0.

The exponential distribution is provided as an alternative to the skewed distribution. This distribution requires fewer inputs and is most commonly used in areas where limited data on precipitation events is available. Daily precipitation is calculated with the exponential distribution using the equation:

$$R\_{day}=\mu\_{mon}\*(-ln(rnd\_1))^{rexp}$$                                                                                                                      1:3.1.5

where $$R\_{day}$$ is the amount of rainfall on a given day  ($$mm\space H\_2O$$), $$\mu\_{mon}$$ is the mean daily rainfall ($$mm\space H\_2O$$) for the month, $$rnd\_1$$ is a random number between 0.0 and 1.0, and $$rexp$$ is an exponent that should be set between 1.0 and 2.0. As the value of $$rexp$$ is increased, the number of extreme rainfall events during the year will increase. Testing of this equation at locations across the U.S. have shown that a value of 1.3 gives satisfactory results.

Table 1:3-1: SWAT+ input variables that pertain to generation of precipitation.

<table><thead><tr><th width="231">Definition</th><th>Source Name</th><th>Input Name</th><th>Input File</th></tr></thead><tbody><tr><td>Precipitation input: 'sim' for simulated or gage name</td><td>pgage</td><td>pcp</td><td><a href="/pages/-Mb1mDEncU0CHo8l57G2">weather-sta.cli</a></td></tr><tr><td><span class="math">P_i(W/D)</span>: probability of a wet day following a dry day in month</td><td>pr_wd</td><td>wet_dry</td><td><a href="/pages/-Mb1mMMQRXp-CAmAnGmG">weather-wgn.cli</a></td></tr><tr><td><span class="math">P_i(W/W)</span>: probability of a wet day following a wet day in month</td><td>pr_ww</td><td>wet_wet</td><td><a href="/pages/-Mb1mMMQRXp-CAmAnGmG">weather-wgn.cli</a></td></tr><tr><td><mark style="background-color:red;">Rainfall distribution code: 0-skewed, 1-exponential</mark></td><td></td><td>IDIST</td><td>file.cio</td></tr><tr><td><span class="math">rexp</span><mark style="background-color:red;">: value of exponent (required if IDIST = 1)</mark></td><td></td><td>REXP</td><td>file.cio</td></tr><tr><td>average amount of precipitation falling in month  (<span class="math">mm\space H_2O</span>)</td><td>pcpmm</td><td>pcp_ave</td><td><a href="/pages/-Mb1mMMQRXp-CAmAnGmG">weather-wgn.cli</a> </td></tr><tr><td>average number of days of precipitation in month(<span class="math">\mu_{mon}</span>= PCPMM / PCPD)               </td><td>pcpd</td><td>pcp_days</td><td><a href="/pages/-Mb1mMMQRXp-CAmAnGmG">weather-wgn.cli</a> </td></tr><tr><td><span class="math">\sigma_{mon}</span>: standard deviation for daily precipitation in month  (<span class="math">mm\space H_2O</span>)</td><td>pcpstd</td><td>pcp_sd</td><td><a href="/pages/-Mb1mMMQRXp-CAmAnGmG">weather-wgn.cli</a> </td></tr><tr><td><span class="math">g_{mon}</span>: skew coefficient for daily precipitation in month</td><td>pcpskw</td><td>pcp_skew</td><td><a href="/pages/-Mb1mMMQRXp-CAmAnGmG">weather-wgn.cli</a> </td></tr></tbody></table>


---

# 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:

```
GET https://swatplus.gitbook.io/io-docs/theoretical-documentation/section-1-climate/chapter-1-3-weather-generator/1-3.1-precipitation/1-3.1.2-amount-of-precipitation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
