cal.convert.360togreg.grid: Convert gridded 360-days field to Gregorian calendar

Description Usage Arguments Value Author(s) Examples

View source: R/cal.convert.360togreg.grid.R

Description

cal.convert.360togreg.grid converts a 3D field (nx * ny * time) of a 360-days calendar (complete years) to Gregorian calendar by filling in NAs.

Usage

1
2
cal.convert.360togreg.grid(org.series, yearstart, yearend, fill.vector,
  data.type = 0)

Arguments

org.series

Original time series (complete years only!).

yearstart

First year of original 360-day time series.

yearend

Last year of original 360-day time series.

fill.vector

Vector indicating at which positions NA days should be introduced; output of function cal.indices.360togreg.doytoabs(). If data.type=1: filename of RData file containing the fill vector.

data.type

If 0: fill vector is provided as an R object (default). If 1: fill vector is provided in an RData file containing the fill vector only (filename is provided by fill.vector).

Value

3D array (nx x ny x ndays): original time series but in Gregorian calendar (original series filled with NAs).

Author(s)

Iris Feigenwinter, Sven Kotlarski (MeteoSwiss)

Examples

1
2
3
4
5
6
7
## Not run: 
# convert gridded daily series of a 360-days calendar for the years
# 1980 to 2009 to a Gregorian calendar. NA indices provided as vector
# 'indices'
cal.convert.360togreg.grid(series,1980,2009,indices,0)

## End(Not run)

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