usCreateSeasonFactorMonth: usCreateSeasonFactorMonth

View source: R/EddyUStarFilterDP.R

usCreateSeasonFactorMonthR Documentation

usCreateSeasonFactorMonth

Description

Compute year-spanning Seasonfactor by starting month

Usage

usCreateSeasonFactorMonth(dates, month = as.POSIXlt(dates)$mon + 
    1L, year = as.POSIXlt(dates)$year + 1900L, 
    startMonth = c(3, 6, 9, 12))

Arguments

dates

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

month

integer (1-12) vector of length of the data set to be filled, specifying the month for each record

year

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

startMonth

integer vector specifying the starting month for each season, counting from one. Default is (Dez, Jan, Feb)(Mar, April, May)(June, July, August), (Sept, Oct, Nov)

Details

Compute factors to denote the season for uStar-Filtering by specifying starting months, with continuous seasons spanning year boundaries If Jan is not a starting month, then the first months of each year will be part of the last period in the year. E.g. with the default the fourth period of the first year consists of Jan, Feb, Dec.

REddyProc internally works with a timestamp 15 minutes after the start of each half hour. When providing the dates argument, user may shift the start time by dates = myDataset$DateTime + 15 * 60

Value

Integer vector length(dates), with each unique value 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

usCreateSeasonFactorMonthWithinYear, usCreateSeasonFactorYday, usCreateSeasonFactorYdayYear


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