select_seas: Select seasons from 'NetCDF' object

Description Usage Arguments Examples

View source: R/select_seas.R

Description

Function to select specified season (by fractional year, i.e. 0.5 for summer) from an object of class 'NetCDF'.

Usage

1
select_seas(x, seas)

Arguments

x

object of class 'NetCDF'

seas

fractional year indicating what season to select

Examples

1
2
3
4
5
6
7
8
xx <- t(rnorm(100) + c(-2, 0,3,1))
attr(xx, 'time') <- seq(1960, by=0.25, length=100)
class(xx) <- 'NetCDF'

## plot all seasons with individual seasons
plot(xx, type='ts', seas=T, col=1, lty=1, lwd=1)
## highlight one of the season
plot(select_seas(xx, 0.5), lwd=2, col=2, add=T)

jonasbhend/geoutils documentation built on May 19, 2019, 7:27 p.m.