Description Usage Arguments Details Value Author(s) References See Also
Fills missing values of relative humidity, radiation and potential evapotranspiration from a data frame with daily values of minimum/maximum/mean temperature and precipitation.
1 | meteocomplete(x, latitude, elevation, slope, aspect)
|
x |
A data frame with dates as row names and columns named 'MeanTemperature', 'MaxTemperature', 'MinTemperature' and 'Precipitation' |
latitude |
Latitude in degrees North. |
elevation |
Elevation in m.a.s.l. |
slope |
Slope in degrees. |
aspect |
Aspect in degrees from North. |
The function fills values for humidity, radiation and PET only if they are missing in the input data frame. If a column 'SpecificHumidity' is present in the input data, relative humidity is calculated from it. Otherwise, relative humidity is calculated assuming that dew point temperature equals the minimum temperature. Potential solar radiation is calculated from latitude, slope and aspect. Incoming solar radiation is then corrected following Thornton & Running (1999) and potential evapotranspiration following Penman (1948).
A data frame copied from x
but with filled values for variables:
MeanRelativeHumidity
: Mean daily relative humidity (in percent).
MinRelativeHumidity
: Minimum daily relative humidity (in percent).
MaxRelativeHumidity
: Maximum daily relative humidity (in percent).
Radiation
: Incoming solar radiation (MJ/m2).
PET
: Potential evapotranspiration (in mm of water).
Miquel De Cáceres Ainsa, CTFC
Thornton, P.E., Running, S.W., 1999. An improved algorithm for estimating incident daily solar radiation from measurements of temperature, humidity, and precipitation. Agric. For. Meteorol. 93, 211-228.
Penman, H. L. 1948. Natural evaporation from open water, bare soil and grass. Proceedings of the Royal Society of London. Series A. Mathematical and Physical Sciences, 193, 120-145.
penman
, radiation_solarRadiation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.