pa_weather_summary: Downloads a met file using the apsimx package

pa_get_weather_sfR Documentation

Downloads a met file using the apsimx package

Description

This function retrieves weather data from NASA Power and the Iowa Environmental Mesonet using the apsimx package/

Usage

pa_get_weather_sf(
  aoi,
  source = c("none", "iem", "power"),
  start.date = "1990-01-01",
  end.date = "2021-12-31"
)

Arguments

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.

Value

an object of class met

Author(s)

Caio dos Santos and Fernando Miguez

Examples

## 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)



pacu documentation built on June 8, 2025, 10:44 a.m.