Genomes to fields (G2F) is a multi-institutional, public collaborative to develop information and tools that support the translation of maize (Zea mays L.) genomic information into relevant phenotypes for the benefit of growers, consumers, and society. Building on existing maize genome sequence resources, the project focuses on developing approaches to improve phenomic predictability and facilitate the development and deployment of tools and resources that help address fundamental problems of sustainable agricultural productivity. Specific projects within G2F involve collaboration from research fields such as genetics, genomics, plant physiology, agronomy, climatology and crop modeling, computational sciences, statistics, and engineering. See https://bmcresnotes.biomedcentral.com/articles/10.1186/s13104-020-4922-8.
Here we used the geographic coordinates from 93 environments (diverse locations across 4 years)
Usage
data(G2F_2014_17)Format
A data.frame containing environmental identifications (env), geographic coordinates (lat, lon) and the time window (start, end) given in YYYY-MM-DD.
data.frame file
Examples
require(EnvRtype)
data(G2F_2014_17)
head(G2F_2014_17)
#> env lat lon start end
#> 1 ARH1@2016 34.7299 -90.7597 2016-04-07 2016-09-14
#> 2 ARH1@2017 34.7299 -90.7598 2017-04-17 2017-09-24
#> 3 ARH2@2016 35.8388 -90.6650 2016-04-23 2016-09-30
#> 4 ARH2@2017 35.6747 -90.0749 2017-04-25 2017-10-02
#> 5 COH1@2017 40.6491 -104.9993 2017-05-31 2017-11-07
#> 6 DEH1@2014 38.6300 -75.4651 2014-05-05 2014-10-12
# let's use the first 10 locations only
data = G2F_2014_17
env = data$env[1:10]
lon = data$lon[1:10]
lat = data$lat[1:10]
start = data$start[1:10]
end = data$end[1:10]
# \donttest{
# get_weather() queries the NASA POWER web service
weather.data =
EnvRtype::get_weather(env.id = env,
lat = lat,
lon = lon,
start.day = start,
end.day = end)
#> ---------------------------------------------------------------
#> get_weather -- downloads daily weather from NASA POWER
#> Last updated at 09/27/2026
#> ---------------------------------------------------------------
#> ---------------------------------------------------------------
#> get_weather() - daily weather from NASA POWER
#> https://docs.ropensci.org/nasapower
#> ---------------------------------------------------------------
#> Start .............................. Thu Oct 22 18:30:53 2026
#> Environmental units ................ 10
#> Parallel ........................... [ ]
#> [1/10] ARH1@2016 downloaded
#> [2/10] ARH1@2017 downloaded
#> [3/10] ARH2@2016 downloaded
#> [4/10] ARH2@2017 downloaded
#> [5/10] COH1@2017 downloaded
#> [6/10] DEH1@2014 downloaded
#> [7/10] DEH1@2015 downloaded
#> [8/10] DEH1@2016 downloaded
#> [9/10] DEH1@2017 downloaded
#> [10/10] GAH1@2014 downloaded
#> Computing VPD ...................... [ x ]
#> Computing N, RTA ................... [ x ]
#> Computing n ........................ [ x ]
#> Computing TH1 ...................... [ x ]
#> Computing TH2 ...................... [ x ]
#> Computing PAR_TEMP ................. [ x ]
#> Environmental units downloaded ..... 10/10
#> Daily weather features ............. 25
#> Done ............................... Thu Oct 22 18:31:04 2026
#> Total time ......................... 11.52s
head(weather.data)
#> env LON LAT YEAR MM DD DOY YYYYMMDD daysFromStart T2M
#> 1 ARH1@2016 -90.7597 34.7299 2016 4 7 98 2016-04-07 1 15.40
#> 2 ARH1@2016 -90.7597 34.7299 2016 4 8 99 2016-04-08 2 12.18
#> 3 ARH1@2016 -90.7597 34.7299 2016 4 9 100 2016-04-09 3 11.87
#> 4 ARH1@2016 -90.7597 34.7299 2016 4 10 101 2016-04-10 4 18.04
#> 5 ARH1@2016 -90.7597 34.7299 2016 4 11 102 2016-04-11 5 17.93
#> 6 ARH1@2016 -90.7597 34.7299 2016 4 12 103 2016-04-12 6 12.87
#> T2M_MAX T2M_MIN T2MDEW ALLSKY_SFC_LW_DWN ALLSKY_SFC_SW_DWN ALLSKY_SFC_SW_DNI
#> 1 23.84 7.19 9.57 26.94 22.46 26.01
#> 2 18.41 6.35 5.82 24.14 26.30 34.77
#> 3 17.73 5.93 5.72 25.33 26.20 33.59
#> 4 24.32 11.47 12.49 29.33 23.85 24.49
#> 5 22.36 11.70 15.98 32.72 2.23 0.22
#> 6 18.40 8.57 6.89 26.43 26.05 31.19
#> ALLSKY_SFC_PAR_TOT ALLSKY_SFC_UVA ALLSKY_SFC_UVB PRECTOT EVPTRNS QV2M RH2M
#> 1 10.17 1.32 0.02 0.00 3.58 7.47 71.33
#> 2 11.56 1.50 0.03 0.00 2.94 5.71 68.86
#> 3 11.65 1.49 0.03 0.12 2.40 5.70 68.91
#> 4 10.76 1.38 0.03 0.19 4.24 9.06 71.83
#> 5 1.34 0.20 0.00 28.10 0.89 11.39 88.54
#> 6 11.61 1.50 0.03 0.19 2.78 6.14 69.11
#> GWETROOT GWETTOP FROST_DAYS WS2M VPD N RTA n TH1
#> 1 0.87 0.86 0 2.96 0.7921423 12.779 34.659 9.590 59.44878
#> 2 0.86 0.85 0 3.18 0.6143665 12.814 34.849 12.785 54.62210
#> 3 0.86 0.85 0 2.25 0.5627432 12.850 35.038 12.319 54.15839
#> 4 0.85 0.84 0 5.15 0.7494486 12.885 35.223 8.959 63.46926
#> 5 0.85 0.89 0 4.07 0.2228091 12.920 35.407 0.080 63.87855
#> 6 0.87 0.86 0 3.62 0.6214677 12.955 35.588 11.354 55.64748
#> TH2 PAR_TEMP
#> 1 60.0452 0.66038961
#> 2 55.4752 0.94909688
#> 3 55.1292 0.98146588
#> 4 63.7364 0.59645233
#> 5 64.8828 0.07473508
#> 6 56.5504 0.90209790
# }
