weach(X, lati, ts = 1, temp.units = c("Fahrenheit", "Celsius"), rh.units = c("percent", "fraction"), ws.units = c("mph", "mps"), pp.units = c("in", "mm"), ...)
lightME
matrix
returning hourly (or sub-daily)
weather data. Dimensions 8760 (if hourly) by 8.
Manipulates weather data in the format obtained from WARM (see link below) and returns the format and units needed for most functions in this package. This function should be used for one year at a time. It returns hourly (or sub-daily) weather information.
This function was originally used to transform daily data to hourly data. Some flexibility has been added so that other units can be used. The input data used originally looked as follows.
All the units above are the defaults but they can be changed as part of the arguments.
data(cmi0506) tmp1 <- cmi0506[cmi0506$year == 2005,] wet05 <- weach(tmp1,40) # Return data every 3 hours wet05.3 <- weach(tmp1,40,ts=3)