Function downloading daily weather data via the package nasapower based on longitude, latitude, planting and harvest date characterizing this environment.

get_daily_tables_per_env(
  environment,
  info_environments,
  path_data,
  et0 = F,
  ...
)

Arguments

environment

character Name of the environment for which climate data should be extracted.

info_environments

data.frame object with at least the 4 first columns.

  1. year: numeric Year label of the environment

  2. location: character Name of the location

  3. longitude: numeric longitude of the environment

  4. latitude: numeric latitude of the environment

  5. planting.date: (optional) Date YYYY-MM-DD

  6. harvest.date: (optional) Date YYYY-MM-DD

  7. elevation: (optional) numeric

  8. IDenv: character ID of the environment (location x year)

The data.frame should contain as many rows as Year x Location combinations. Example: if only one location evaluated across four years, 4 rows should be present.

et0

whether evapotranspiration should be calculated. False by default.

Value

a data.frame data.frame with the following columns extracted from POWER data, according to requested parameters:

  1. longitude numeric

  2. latitude numeric

  3. YEAR numeric

  4. MM integer

  5. DD integer

  6. DOY integer

  7. YYYYMMDD Date

  8. RH2M numeric

  9. T2M numeric

  10. T2M_MIN numeric

  11. T2M_MAX numeric

  12. PRECTOTCORR numeric

  13. ALLSKY_SFC_SW_DWN numeric

  14. T2MDEW numeric

  15. IDenv character ID environment for which weather data were downloaded.

  16. length.gs difftime length in days of the growing season for the environment.

References

Sparks AH (2018). “nasapower: a NASA POWER global meteorology, surface solar energy and climatology data client for R.” Journal of Open Source Software, 3 (30), 1035. Zotarelli L, Dukes MD, Romero CC, Migliaccio KW, Morgan KT (2010). “Step by step calculation of the Penman-Monteith Evapotranspiration (FAO-56 Method).” Institute of Food and Agricultural Sciences. University of Florida.

Author

Cathy C. Westhues cathy.jubin@uni-goettingen.de