Learn R Programming

neonUtilities (version 1.3.6)

stackEddy: Extract eddy covariance data from HDF5 format

Description

Convert data of choice from HDF5 to tabular format. Specific to eddy covariance data product: DP4.00200.001

Usage

stackEddy(filepath, level = "dp04", var = NA, avg = NA)

Arguments

filepath

One of: a folder containing NEON EC H5 files, a zip file of DP4.00200.001 data downloaded from the NEON data portal, a folder of DP4.00200.001 data downloaded by the neonUtilities::zipsByProduct() function, or a single NEON EC H5 file [character]

level

The level of data to extract; one of dp01, dp02, dp03, dp04 [character]

var

The variable set to extract, e.g. co2Turb [character]

avg

The averaging interval to extract, in minutes [numeric]

Value

A named list of data frames. One data frame per site, plus one data frame containing the metadata (objDesc) table and one data frame containing units for each variable (variables).

Details

Given a filepath containing H5 files of DP4.00200.001 data, extracts variables, stacks data tables over time, and joins variables into a single table. For data product levels 2-4 (dp02, dp03, dp04), joins all available data, except for the flux footprint data in the expanded package. For dp01, an averaging interval and a set of variable names must be provided as inputs.

References

License: GNU AFFERO GENERAL PUBLIC LICENSE Version 3, 19 November 2007

Examples

Run this code
# NOT RUN {
# To extract and merge Level 4 data tables, where data files are in the working directory
flux <- stackEddy(filepath=getwd(), level='dp04', var=NA, avg=NA)
# }

Run the code above in your browser using DataLab