ET0_Penman_Monteith_FAO_netcdf: Compute daily reference evapotranspiration for a netCDF...

View source: R/cdtClimate_ET0_FAO_functions.R

ET0_Penman_Monteith_FAO_netcdfR Documentation

Compute daily reference evapotranspiration for a netCDF dataset.

Description

Function to compute daily reference evapotranspiration using the FAO Penman-Monteith equation.

Usage

ET0_Penman_Monteith_FAO_netcdf(
  start.date = "1991-01-01",
  end.date = "2020-12-31",
  tmax.data = list(dir = "", format = "tmax_%s%s%s.nc", varid = "tmax", ilon = 1, ilat
    = 2),
  tmin.data = list(dir = "", format = "tmin_%s%s%s.nc", varid = "tmin", ilon = 1, ilat
    = 2),
  rh.from = "minmax",
  rhmax.data = list(dir = "", format = "rhmax_%s%s%s.nc", varid = "rhmax", ilon = 1,
    ilat = 2),
  rhmin.data = list(dir = "", format = "rhmin_%s%s%s.nc", varid = "rhmin", ilon = 1,
    ilat = 2),
  rhmean.data = list(dir = "", format = "rhmean_%s%s%s.nc", varid = "rhmean", ilon =
    1, ilat = 2),
  wff10.data = list(dir = "", format = "wff_%s%s%s.nc", varid = "wsp", ilon = 1, ilat
    = 2),
  pres.data = list(dir = "", format = "pres_%s%s%s.nc", varid = "pres", ilon = 1, ilat
    = 2),
  rad.data = list(dir = "", format = "rad_%s%s%s.nc", varid = "rad", ilon = 1, ilat =
    2),
  elev.data = list(file = "", varid = "z", ilon = 1, ilat = 2),
  output = list(dir = "", format = "et0_%S.nc")
)

Arguments

start.date

character, the start date of the data to be calculated in the form YYYY-MM-DD.

end.date

character, the end date of the data to be calculated in the form YYYY-MM-DD.

tmax.data

named list, providing the maximum temperature netCDF dataset. Units: degree Celsius.

  • dir: character, full path to the directory containing the netCDF files.

  • format: character, format of the netCDF file names

  • varid: character, name of the variable to read from the netCDF data

  • ilon: integer, order for the longitude dimension of the variable. Example: if the variable "pres" has the dimension order [Lat, Lon] then ilon must be 2

  • ilat: integer, order for the latitude dimension of the variable.

tmin.data

named list, providing the minimum temperature netCDF dataset. Units: degree Celsius. See tmax.data for the elements of the list.

rh.from

character, source of relative humidity data. Valid options: "minmax" and "mean".

  • "minmax": the humidity data are from the minimum and maximum relative humidity.

  • "mean": the humidity data is from a mean relative humidity data.

rhmax.data

named list, if rh.from is equal to "minmax", providing the maximum relative humidity netCDF dataset. Units: percentage. See tmax.data for the elements of the list.

rhmin.data

named list, if rh.from is equal to "minmax", providing the minimum relative humidity netCDF dataset. Units: percentage. See tmax.data for the elements of the list.

rhmean.data

named list, if rh.from is equal to "mean", providing the mean relative humidity netCDF dataset. Units: percentage. See tmax.data for the elements of the list.

wff10.data

named list, providing the wind speed at 10 meters netCDF dataset. Units: m/s. See tmax.data for the elements of the list.

pres.data

named list, providing the surface pressure netCDF dataset. Units: hPa. See tmax.data for the elements of the list.

rad.data

named list, providing the solar radiation flux netCDF dataset. Units: W/m^2. See tmax.data for the elements of the list.

elev.data

named list, providing the Digital Elevation Model in netCDF format. Units: meters.

  • file: character, full path to the netCDF file containing the elevation data.

  • varid: character, name of the variable to read from the netCDF data.

  • ilon: integer, order for the longitude dimension of the variable.

  • ilat: integer, order for the latitude dimension of the variable.

output

named list, the elements of the list are

  • dir: character, full path to the directory to save the calculated reference evapotranspiration

  • format: character, format of the output netCDF file names, the dates are represented by %S

References

Allen, R.G., Pereira, L.S., Raes, D., and Smith, M. 1998. Crop evapotranspiration: Guidelines for computing crop requirements. Irrigation and Drainage PaperNo. 56, FAO, Rome, Italy 300 p. https://www.fao.org/3/X0490E/x0490e00.htm


rijaf-iri/CDT documentation built on July 3, 2024, 2:54 a.m.