Gets met data from the wundergorund 10 day forecast and outputs SWAT IO format meteorological input files

Description

Gets met data from the wundergorund 10 day forecast and outputs SWAT IO format meteorological input files

Usage

1
getSWATwunderForecast(centroids, outDir = getwd(), apiKey)

Arguments

centroids

- data.frame object or location of csv file with two columns, the first being lattitude and second being longidute in decimal degrees. These should be the centroids of the swat model subbasins and are the locations of the ouput met data.

outDir

- Directory where ouput files will be saved.

apiKey

- String input of your freely available api key from wunderground.com. See https://www.wunderground.com/weather/api/d/pricing.html for more details. Select the ANVIL version of the developer plan, record the resulting key and use it in this function.

Value

returns wudnerground 10 day forecast met data in swat IO format

Examples

1
2
3
4
5
6
## Not run: 
centroids = data.frame(lat = 38, lon = 79)
outDir = "test"
getSWATwunderForecast(centroids=centroids, outDir=outDir)

## End(Not run)