Learn R Programming

getMet (version 0.3.2)

getSWATcfsr: Gets met data from the redimentioned CFSR data set and outputs SWAT IO format meteorological input files

Description

Gets met data from the redimentioned CFSR data set and outputs SWAT IO format meteorological input files

Usage

getSWATcfsr(centroids, outDir = getwd())

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.

Value

returns cfsr met data in swat IO format

Examples

Run this code
## Not run: 
# centroids = data.frame(lat = 38, lon = 79)
# outDir = "test"
# getSWATcfsr(centroids=centroids, outDir=outDir)
# ## End(Not run)

Run the code above in your browser using DataLab