pa_get_weather_sf | R Documentation |
This function retrieves weather data from NASA Power and the Iowa Environmental Mesonet using the apsimx package/
pa_get_weather_sf(
aoi,
source = c("none", "iem", "power"),
start.date = "1990-01-01",
end.date = "2021-12-31"
)
aoi |
a sf object |
source |
the weather source from which the data should be retrieved. ‘iem’ = Iowa Environmental Mesonet, ‘power’ = NASA POWER. Defaults to ‘iem’. |
start.date |
first day to retrieve the weather data. Format should be %Y-%m-%d. |
end.date |
last day to retrieve the weather data. Format should be %Y-%m-%d. |
an object of class met
Caio dos Santos and Fernando Miguez
## Not run:
extd.dir <- system.file("extdata", package = "pacu")
area.of.interest <- sf::st_read(file.path(extd.dir, 'cobs_a_aoi.shp'))
weather.met <- pa_get_weather_sf(aoi = area.of.interest,
start.date = '1990-01-01',
end.date = '2020-12-31',
source = 'power')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.