Gets met data from a specified source and creates model input files in the specified format

Description

Gets met data from a specified source and creates model input files in the specified format

Usage

1
2
getMet(locations, dataSource = "cfsr", outFormat = "swat",
  outDir = getwd(), apiKey = "")

Arguments

locations

- data.frame object or location of csv file with two columns, the first being lattitude and second being longidute in decimal degrees. These locations will be the locations of the collected met data.

dataSource

- Source of met data from predefined source list. Currenly only 'cfsr' is supported.

outFormat

- Format of met data output from predefined source. Currently only 'swat' is supported.

outDir

- Directory where ouput files will be saved

apiKey

- String input of api key for selected data source if required.

Value

returns specified met data in specified format

Examples

1
2
3
4
5
6
## Not run: 
locations = data.frame(lat = 38, lon = 79)
outDir = "test"
getMet(locations=locations, outDir=outDir, dataSource = 'cfsr', outFormat = 'swat')

## End(Not run)