wxcalc: building a library of weather related functions
As we saw in the previous thread, the activity of eolian sands can be characterized by the ratio of precipitation to potential evapotranspiration. In order to calculate the latter, I need access to some weather related functions such as the derivation of vapor pressure from dew point temperature. Searching for the equations I needed, I stumbled over the “Weather Calculator” site (by Tim Brice and Todd Hall) hosted on a El Paso, Texas NOAA NWS site. While the calculator isn’t of much use for me, the equations behind it were available in a set of pdf files.
I have coded the conversion and other functions into an R source file ‘wxcalc.R‘. A subsequent, perfunctory search did not reveal any R packages with vapor pressure functions – so this might be of some utility. I will be updating this as I go with additional functions … and perhaps modifying some of the existing ones. Thus I will be keeping a dated copy in the following directory:
Here is a list of the 73 functions included so far.