# 1:3.5.3 Adjustment for Clear/Overcast Conditions

To incorporate the effect of clear and overcast weather on generated values of relative humidity, monthly average relative humidity values can be adjusted for wet or dry conditions.

The continuity equation relates average relative humidity adjusted for wet or dry conditions to the average relative humidity for the month:

$$R\_{hmon}\*days\_{tot}=R\_{hWmon}\*days\_{wet}+R\_{hDmon}\*days\_{dry}$$                                                                1:3.5.8

where $$R\_{hmon}$$ is the average relative humidity for the month, $$days\_{tot}$$ are the total number of days in the month, $$R\_{hWmon}$$ is the average relative humidity for the month on wet days, $$days\_{wet}$$ are the number of wet days in the month, $$R\_{hDmon}$$ is the average relative humidity of the month on dry days, and $$days\_{dry}$$ are the number of dry days in the month.

The wet day average relative humidity is assumed to be greater than the dry day average relative humidity by some fraction:

$$R\_{hWmon}=R\_{hDmon}+b\_H\*(1-R\_{hDmon})$$                                                                                                  1:3.5.9

where $$R\_{hWmon}$$ is the average relative humidity of the month on wet days, $$R\_{hDmon}$$ is the average relative humidity of the month on dry days, and $$b\_H$$ is a scaling factor that controls the degree of deviation in relative humidity caused by the presence or absence of precipitation. The scaling factor, $$b\_H$$, is set to 0.9 in SWAT+.

To calculate the dry day relative humidity, equations 1:3.5.8 and 1:3.5.9 are combined and solved for $$R\_{hDmon}$$:

$$R\_{hDmon}=(R\_{hmon}-b\_H\*\frac{days\_{wet}}{days\_{tot}})*(1.0-b\_H*\frac{days\_{wet}}{days\_{tot}})^{-1}$$                                                                1:3.5.10

To reflect the impact of wet or dry conditions, SWAT+ will replace $$R\_{hmon}$$ with $$R\_{hWmon}$$ on wet days or $$R\_{hDmon}$$ on dry days in equations 1:3.5.4 through 1:3.5.7.

Table 1:3-5: SWAT+ input variables that pertain to generation of relative humidity.

| Definition                                                                   | Source Name | Input Name    | Input File                                                            |
| ---------------------------------------------------------------------------- | ----------- | ------------- | --------------------------------------------------------------------- |
| Relative humidity input: 'sim' for simulated or gage name                    | hgage       | hmd           | [weather-sta.cli](/io-docs/introduction-1/climate/weather-sta.cli.md) |
| $$\mu mn\_{mon}$$: average minimum air temperature for month ($$\degree C$$) | tmpmn       | tmp\_min\_ave | [weather-wgn.cli](/io-docs/introduction-1/climate/weather-wgn.cli.md) |
| $$\mu mx\_{mon}$$: average maximum air temperature for month ($$\degree C$$) | tmpmx       | tmp\_max\_ave | [weather-wgn.cli](/io-docs/introduction-1/climate/weather-wgn.cli.md) |
| $$\mu dew\_{mon}$$: average dew point temperature for month ($$\degree C$$)  | dewpt       | dew\_ave      | [weather-wgn.cli](/io-docs/introduction-1/climate/weather-wgn.cli.md) |
| $$days\_{wet}$$: average number of days of precipitation in month            | pcpd        | pcp\_days     | [weather-wgn.cli](/io-docs/introduction-1/climate/weather-wgn.cli.md) |


---

# Agent Instructions: 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.5-relative-humidity/1-3.5.3-adjustment-for-clear-overcast-conditions.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.
