This function reformats the data into a more usable form and calculates three
new elements; saturation vapour pressure (es), actual vapour pressure (ea) and
relative humidity (RH). All units are converted to International System of
Units (SI), e.g. Fahrenheit to Celsius and inches to millimetres.
Alternative elevation measurements are supplied for missing values or values
found to be questionable based on the Consultative Group for International
Agricultural Research's Consortium for Spatial Information group's (CGIAR-CSI)
Shuttle Radar Topography Mission 90 metre (SRTM 90m) digital elevation data
based on NASA's original SRTM 90m data.
If multiple stations are given, data are summarised for each year by station,
which include vapour pressure and relative humidity elements calculated from
existing data in GSOD. Else, single stations are tidied and a data frame is
returned.
All missing values in resulting files are represented as NA regardless of
which field they occur in.
Only station files in the original ".op.gz" file format are supported by this
function. If you have downloaded the full annual "gsod_YYYY.tar" file you
will need to extract the individual station files from the tar file first to
use this function.
For a complete list of the fields and description of the contents and units,
please refer to Appendix 1 in the GSODR vignette,
vignette("GSODR", package = "GSODR")
.