usCreateSeasonFactorYday: usCreateSeasonFactorYday

View source: R/EddyUStarFilterDP.R

usCreateSeasonFactorYdayR Documentation

usCreateSeasonFactorYday

Description

Compute year-spanning Seasonfactor by starting year-day

Usage

usCreateSeasonFactorYday(dates, yday = as.POSIXlt(dates)$yday + 
    1L, year = as.POSIXlt(dates)$year + 1900L, 
    startYday = c(335, 60, 152, 244))

Arguments

dates

POSIXct vector of length of the data set to be filled, specifying the center-time of each record

yday

integer (1-366) vector of length of the data set to be filled, specifying the day of the year (1..366) for each record

year

integer vector of length of the data set to be filled, specifying the year

startYday

integer vector (1-366) specifying the starting yearDay for each season in increasing order

Details

With default parameterization, dates are assumed to denote begin or center of the eddy time period. If working with dates that denote the end of the period, use yday = as.POSIXlt(fGetBeginOfEddyPeriod(dates))$yday

Value

Integer vector of length nrow(ds), each unique class representing one season

Author(s)

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], Markus Reichstein <mreichstein@bgc-jena.mpg.de> [aut], Antje Maria Moffat <antje.moffat@bgc.mpg.de> [aut, trl], Olaf Menzer <omenzer@bgc-jena.mpg.de> [ctb], Mirco Migliavacca <mmiglia@bgc-jena.mpg.de> [aut], Kerstin Sickel <ksickel@bgc-jena.mpg.de> [ctb, trl], Ladislav <U+0160>igut <sigut.l@czechglobe.cz> [ctb]

See Also

usCreateSeasonFactorMonth


REddyProc documentation built on May 29, 2024, 12:10 p.m.