Learn R Programming

getMet (version 0.3.2)

getMet: 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

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

Run this code
## Not run: 
# locations = data.frame(lat = 38, lon = 79)
# outDir = "test"
# getMet(locations=locations, outDir=outDir, dataSource = 'cfsr', outFormat = 'swat')
# ## End(Not run)

Run the code above in your browser using DataLab