pull.date: Return TIS Data in a Specific Date-time Range

Description Usage Arguments Value Author(s) Examples

Description

For the specified dates, site, package parameters, and data product or name of family of data products, data are downloaded and returned. Data for the month(s) spanned in the requested dates will be saved to the save.dir, if specified.

Usage

1
pull.date(site, dp.id, bgn.date, end.date, time.agr, package, save.dir)

Arguments

site

Parameter of class character. The NEON site data should be downloaded for.

dp.id

Parameter of class character. The data product code in question. See Noble::tis_pri_vars for a selected list of data product names and codes, or http://data.neonscience.org/data-product-catalog for a complete list.

bgn.date

Parameter of class character. A date/time in the format yyyy-mm-dd HH:MM:SS, representing the first timestamp to return data for.

end.date

Parameter of class character. A date/time in the format yyyy-mm-dd HH:MM:SS, representing the last timestamp to return data for.

time.agr

Parameter of class numeric. The data agregation interval requested, must be 1, 2, 5, or 30.

package

Parameter of class character. Optional. The type of data package to be returned If not specified, defaults to "basic".

save.dir

Parameter of class character. Optional. The local directory where data files should be saved. If unspecified, defaults to a temporariy directory given by base::tempdir().

Value

Writes data files to the specified directory.

Author(s)

Robert Lee rlee@battelleecology.org

Examples

1
2
3
4
5
6
7
## Not run: 
#Make a temporary direcotry for the example:
tempDir<- tempdir()
pull.date(site = "CPER", dp.id = "DP1.00002.001", bgn.month = "2017-03-15 00:00:00",
end.month = "2017-03-16 00:00:00", time.agr = 30, package="basic", save.dir= tempDir)

## End(Not run)

rhlee12/Noble documentation built on May 31, 2019, 10:36 a.m.