Description Usage Arguments Value
View source: R/CSLS_format_weather.R
Takes hourly weather data, summarizes as daily weather data, and re-formats for input to lake evaporation functions
1 | CSLS_format_weather(weather, wind_elev = 3, z0 = 0.02)
|
weather |
a data frame with hourly weather data incl. air temperature (atmp), relative humidity (RH), incoming solar radiation (Rs), precipitation (P), and wind speed (wind). |
wind_elev |
height at which wind is measured (m), default: 3 |
z0 |
aerodynamic roughness of weather measurement site (m), default: 0.02 |
weather a list with weather data that includes:
dt |
string indicating the timestep of input weather series. Expects "hourly", "daily", or "monthly". |
datetimes |
datetimes of weather records POSIXct. If monthly timestep, make sure date is the 15th of each month. |
atmp |
If hourly timestep, vector of air temperature (degrees C) corresponding with datetimes vector. If daily or monthly timestep, list with two vectors, "min" and "max", with mean daily min and max air temperature (degrees C) corresponding with datetimes vector |
RH |
If hourly timestep, vector of relative humidity (percent) corresponding with datetimes vector. If daily or monthly timestep, list with two vectors, "min" and "max", with mean daily min and max relative humidity (percent) corresponding with datetimes vector. |
Rs |
vector of incoming solar or shortwave radiation (MJ/m^2/hr if hourly timestep, MG/m^2/day if daily or monthly), corresponding with datetimes vector. |
wind |
vector with mean wind speed (m/s), corresponding with datetimes vector. |
wind_elev |
atomic number, height at which wind is measured (m) |
z0 |
aerodynamic roughness of weather measurement site (m) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.