Description Usage Arguments Value Author(s) Examples
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'.
1 2 3 | fLoadFluxNCIntoDataframe(VarList.V.s, FileName.s, Dir.s = "",
NcPackage.s = "ncdf4", fReadTime = fReadTimeSeveralCols,
...)
|
VarList.V.s |
String vector of variables to be read in |
FileName.s |
File name as a string |
Dir.s |
Directory as a string |
NcPackage.s |
Name of R NetCDF package (implemented for 'RNetCDF' and 'ncdf4') as a string |
fReadTime |
function that reads time columns, must append columns year (from 0AD), month, day, and hour (fractional) |
... |
further arguments to var.get.nc or ncvar_get, such as start and count |
Data frame with data from nc file.
AMM, KS (Department for Biogeochemical Integration at MPI-BGC, Jena, Germany)
1 2 3 4 5 | if( FALSE ) { #Do not always execute example code (e.g. on package installation)
Dir.s <- paste(system.file(package='REddyProc'), 'examples', sep='/')
EddyNCData.F <- fLoadFluxNCIntoDataframe(c('NEE', 'Rg', 'NEE_f')
, 'Example_DE-Tha.1996.1998.hourly.nc', Dir.s)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.