cal.indices.365togreg.doytoabs: Compute absolute indices for 365-days to Gregorian calendar...

Description Usage Arguments Value Author(s) Examples

View source: R/cal.indices.365togreg.doytoabs.R

Description

cal.indices.365togreg.doytoabs determines absolute indices in a full Gregorian calendar (for a given period) at which to introduce NA days corresponding to day-of-year (DOY) indices for individual years with a 365-days calendar. Basis: Vector providing the NA DOY indices for each individual year.

Usage

1
cal.indices.365togreg.doytoabs(infile, yearstart, yearend, outfile = NA)

Arguments

infile

Rdata-file contianing one matrix with DOY positions for each year to fill in NAs (years = rows 1:2200, days = columns, 1:6); output of function cal.indices.365togreg.

yearstart

Start year of the desired period.

yearend

End year of the desired period.

outfile

If provided, the resulting vector will be written into this RData file (optional).

Value

Vector (positions to fill in NAs): absolute indices for the period (in Gregorian calendar) at which to fill NA days.

Author(s)

Sven Kotlarski, Iris Feigenwinter (MeteoSwiss)

Examples

1
2
3
4
5
6
7
## Not run: 
# Determine absolute indices to fill in NAs for the period
# 1981 to 2010. Matrix with indices for individual years
# provided by infile. No outfile written.
cal.indices.365togreg.doytoabs(infile,1981,2010)

## End(Not run)

SvenKotlarski/qmCH2018 documentation built on July 14, 2019, 7:39 p.m.