ReadAmeriflux: Read Ameriflux data into R dataframe.

Description Usage Arguments Details Value See Also Examples

View source: R/ameriflux_get.R

Description

ReadAmeriflux reads pre-downloaded Ameriflux BASE data table (BASE data product CSV file) and creates a dataframe.

Usage

1
ReadAmeriflux(inFile, tz, useEndTime = FALSE)

Arguments

inFile

Path to the CSV file (e.g., "AMF_US-NR1_BASE_HH_9-1.csv").

tz

The time zone for the site (generally Ameriflux data is in local time).

useEndTime

By default, a POSIXct column will be defined based on the "TIMESTAMP_START" column. If you prefer to use "TIMESTAMP_END", set this to TRUE.

Details

ReadAmeriflux reads Ameriflux BASE data product CSV file and outputs a dataframe with consistent date and data columns for use with other rwrfhydro tools.

Value

dataframe

See Also

Other Ameriflux: amfMeta, tzLookup

Examples

1
2
3
4
5
## Not run: 
amf.NR <- ReadAmeriflux('~/wrfhydroTestCases/Fourmile_Creek_testcase_v2.0/OBS/AMF_US-NR1_BASE_HH_9-1.csv',
                        tz='America/Denver')

## End(Not run)

NCAR/rwrfhydro documentation built on Feb. 28, 2021, 12:47 p.m.