Learn R Programming

Evapotranspiration (version 1.7)

ReadInputs: ReadInputs raw date and climate data

Description

Load raw date and climate data, perform pre-processing, check for missing and error entries and then compile data list of daily time step.

Usage

ReadInputs(climatedata, constants, stopmissing, timestep)

Arguments

climatedata
A data frame named "climatedata" containing the raw data of date and climate variables. The data frame contain objects named as "Year", "Month" and "Day" to indicate the date. The climate variables will be of the following names while it is not com
constants
A list named "constants" consists of constants required for data pre-processing which may contain the following items: "a_0", "b_0", "c_0", "d_0". These four constants which are constants required to calculate daily sunshine hours from daily cloud c
stopmissing
A numeric vector of length 2. The first value represents the maximum percentage of missing data that the user can tolerate; the second value represents the maximum percentage of the duration of missing data to the total data duaration that the user can to
timestep
Should be either "daily" or "subdaily" to specify the time step of raw climate data used.

Value

  • This function returns a list with all components of class zoo which have been processed from the raw data, including:
  • Date.dailyA zoo object containing the date in daily step in the format of yyyy-mm-dd.
  • Date.monthlyA zoo object containing the date in daily step in the format of mmm-yyyy.
  • JA zoo object containing the Julian Day for every day during the period that the data spans.
  • iA zoo object containing the month number for every day during the period that the data spans.
  • ndaysA zoo object containing the number of days for every month during the period that the data spans.
  • TmaxA zoo object containing the daily maximum temperatures in degree Celcius.
  • TminA zoo object containing the daily minimum temperatures in degree Celcius.
  • u2A zoo object containing the daily wind speed at 2m from the ground in m/s.
  • uzA zoo object containing the daily wind speed measured at the height of wind instrument in m/s.
  • RsA zoo object containing the daily solar radiation in MJ/m^2/day.
  • nA zoo object containing the daily sunshine hours.
  • CdA zoo object containing the daily cloud cover in oktas.
  • PrecipA zoo object containing the daily precipitation in mm.
  • EpanA zoo object containing the daily Class-A pan evaporation in mm.
  • RHmaxA zoo object containing the daily maximum relative humidity in percentage.
  • RHminA zoo object containing the daily minimum relative humidity in percentage.
  • TdewA zoo object containing the average daily dew temperatures in degree Celcius.
  • Note that the components might have value of NULL when the corresponding raw data cannot be found in "climatedata".

References

MCMAHON, T., PEEL, M., LOWE, L., SRIKANTHAN, R. & MCVICAR, T. 2012. Estimating actual, potential, reference crop and pan evaporation using standard meteorological data: a pragmatic synthesis. Hydrology and Earth System Sciences Discussions, 9, 11829-11910. CHIEW, F. H. & MCMAHON, T. A. 1991. THE APPLICABILITY OF MORTON'S AND PENMAN'S EVAPOTRANSPIRATION ESTIMATES IN RAINFALL-RUNOFF MODELING1. JAWRA Journal of the American Water Resources Association, 27, 611-620.

See Also

evapotranspiration

Examples

Run this code
# ReadInputs climate data
data("climatedata")
data("constants")
data <- ReadInputs(climatedata, constants, stopmissing = c(10,3),timestep="subdaily")

Run the code above in your browser using DataLab