R/get_weather_soil_data.R
get_daily_tables_per_env.Rd
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, ... )
environment |
|
---|---|
info_environments |
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. |
a data.frame data.frame
with the following columns extracted
from POWER data, according to requested parameters:
longitude numeric
latitude numeric
YEAR numeric
MM integer
DD integer
DOY integer
YYYYMMDD Date
RH2M numeric
T2M numeric
T2M_MIN numeric
T2M_MAX numeric
PRECTOTCORR numeric
ALLSKY_SFC_SW_DWN numeric
T2MDEW numeric
IDenv character
ID environment for which weather data were
downloaded.
length.gs difftime
length in days of the growing season
for the environment.
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.
Cathy C. Westhues cathy.jubin@uni-goettingen.de