R/get_solar_radiation.R
get_solar_radiation.Rd
Function downloading daily weather data via the package nasapower based on longitude, latitude, planting and harvest date characterizing this environment.
get_solar_radiation(environment, info_environments, ...)
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. |
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
ALLSKY_SFC_SW_DWN 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.
Cathy C. Westhues cathy.jubin@uni-goettingen.de