Description Usage Arguments Details Value Author(s) References See Also Examples
Manipulates weather data in the format obtained from Iowa Mesonet (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 takes and returns hourly weather information only.
1 2 3 4 5 6 7 8 | weach_imn(data, ts = 1, temp.units = c("Fahrenheit", "Celsius"),
rh.units = c("percent", "fraction"), ws.units = c("mph", "mps"),
pp.units = c("in", "mm"), ...)
weach_imn2(data, temp.units = c("Fahrenheit", "Celsius"), rh.units = c("percent",
"fraction"), ws.units = c("mph", "mps"), pp.units = c("in",
"mm"), na.chr = -99)
NULL
|
data |
data as obtained from the Iowa Mesonet (see details) |
ts |
Time step, at the moment it is assumed to be 1. |
temp.units |
Temperature units. |
rh.units |
Relative humidity units |
ws.units |
wind speed units |
pp.units |
precipitation units |
... |
|
na.chr |
missing data character |
The first function (weach_imn) should be used to transform data from the Iowa Mesonet at hourly intervals from here:
http://mesonet.agron.iastate.edu/agclimate/hist/hourlyRequest.php
When selecting to download variables: Air Temperature (Fahrenheit) Solar Radiation (kilocalories per meter squared) Precipitation (inches) Relative humidity (percent) Wind Speed (mph)
You can read the data directly as it is downloaded making sure you skip the first 6 lines (This includes the title row).
The imported data frame should have 9 columns with:
col 1 site ID
col 2 site name
col 3 date in format "year-month-day", e.g. '2010-3-25'
col 4 hour in format "hour:minute", e.g. '15:00'
col 5 temperature (Fahrenheit)
col 6 solar radiation (kilocalories per meter squared
col 7 precipitation (inches)
col 8 relative humidity (%).
col 9 wind speed (mph)
The second function is in development and it is meant to be used with data downloaded from:
http://mesonet.agron.iastate.edu/agclimate/hist/hourly.php
It might not work well at the moment. It still needs work.
It will return a data frame in the same format as the
weach
function.
Fernando E. Miguez
Iowa Mesonet http://mesonet.agron.iastate.edu/index.phtml
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.