download.AmerifluxLBL

download.AmerifluxLBL(sitename, outfolder, start_date, end_date,
  overwrite = FALSE, verbose = FALSE, username = "pecan", method,
  ...)

Arguments

sitename

the Ameriflux ID of the site to be downloaded, used as file name prefix. The 'SITE_ID' field in list of Ameriflux sites

outfolder

location on disk where outputs will be stored

start_date

the start date of the data to be downloaded. Format is YYYY-MM-DD (will only use the year part of the date)

end_date

the end date of the data to be downloaded. Format is YYYY-MM-DD (will only use the year part of the date)

overwrite

should existing files be overwritten

verbose

should the function be very verbose

username

Ameriflux username

method

Optional. download.file() function option. Use this to set custom programs such as ncftp

Details

Uses Ameirflux LBL JSON API to download met data from Ameriflux towers in CSV format

Examples

# NOT RUN {
result <- download.AmerifluxLBL("US-Akn","~/","2011-01-01","2011-12-31",overwrite=TRUE)
# }# NOT RUN {
# }