fLoadFluxNCIntoDataframe: Load data from a NetCDF file

Description Usage Arguments Value Author(s) Examples

Description

Load specified variables and time stamp information from NetCDF file in Fluxnet BGI format. The time stamp information needs to be provided as variables 'year', 'month', 'day', 'hour'.

Usage

1
2
3
fLoadFluxNCIntoDataframe(varNames, fileName, 
    ncPkg = requireNetCDFPackage(), fReadTime = fReadTimeSeveralCols, 
    ...)

Arguments

varNames

string vector of variables to be read in

fileName

File name as a string

ncPkg

scalar string of package name to be used

fReadTime

function that reads time columns It must append columns year (from 0AD), month, day, and hour (fractional) See fReadTimeSeveralCols

...

further arguments to var.get.nc or ncvar_get, such as start and count

Value

Data frame with data from nc file.

Author(s)

AMM, KS, TW Department for Biogeochemical Integration at MPI-BGC, Jena, Germany <REddyProc-help@bgc-jena.mpg.de> [cph], Thomas Wutzler <twutz@bgc-jena.mpg.de> [aut, cre], Antje Maria Moffat <antje.moffat@bgc.mpg.de> [aut, trl]

Examples

1
2
3
4
examplePath <- system.file(
file.path('examples','Example_DE-Tha.1996.1998.hourly_selVars.nc')
, package = "REddyProcNCDF")
EddyNCData <- fLoadFluxNCIntoDataframe(c('NEE', 'Rg', 'NEE_f'), examplePath)

REddyProcNCDF documentation built on May 2, 2019, 10:15 a.m.