Computes water balance from temperature and precipitation data.
watbal(t, p, lat, CC)
data frame with 12 variables: 'Tmp', 'Pcp', 'PET', 'P_PET', 'ppa', 'ST', 'i_ST', 'ETR', 'Dh', 'S', 'r', 'rP'.
Monthly average temperature data (12 nueric values).
Monthly average precipitation data (12 nueric values).
Latitude in degrees. For southern latitudes use negative values.
Field capacity. It depends on water retention capacity and depth of roots. Use 400 as default value.
watbal(t = rnorm(12, 18, 6), p = rnorm(12, 50, 30),
lat = 35, CC = 400)
Run the code above in your browser using DataLab