fReadTimeSeveralCols {REddyProcNCDF} | R Documentation |
fReadTimeSeveralCols
Description
Constructing time from columns 'year',...,'hour'
Usage
fReadTimeSeveralCols(data, fileName, ncPkg = requireNetCDFPackage(),
callingFunction = "", colYear = "year",
colMonth = "month", colDay = "day", colHour = "hour",
defaultHour = 0, ...)
Arguments
data |
Data frame |
fileName |
NetCDF file name as a string |
ncPkg |
scalar string of package name to be used |
callingFunction |
Name (string) of function called from |
colYear |
Name (string) of variable holding the year |
colMonth |
Name (string) of variable holding the month |
colDay |
Name (string) of variable holding the day |
colHour |
Name (string) of variable holding the hour |
defaultHour |
(numeric) default that is used when colHour = NA , when only days are specified |
... |
further arguments to var.get.nc or ncvar_get , such as start and count |
Details
Time may be stored in different formats, and fLoadFluxNCIntoDataframe
is parameterized by a argument fReadTime
.
The following functions are provided to construct time from different formats:
These functions help with the preparation of your data for the analysis:
from columns 'year',...,'hour': fReadTimeSeveralCols (this function)
from column in ISODate integer format:
fReadTimeBerkeley
Author(s)
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]