Displaying 1 result from an estimated 1 matches for "utcalendar".
Did you mean:
calendar
2010 Aug 12
0
- combining lists
Hi all,
I have used this library to create a (360 day)calendar for my rainfall
data (which is divided over 9 gridcells):
## CODE##
library(udunits)
utInit()
calendar <- att.get.nc(nc,'time','calendar')
T <- var.get.nc(nc,"time")
times.list <- utCalendar(T,"days since
1961-01-01",style='array',calendar=calendar)
## END CODE##
****
To separate months and years I use:
## CODE##
times.ind <- lapply(as.list(1:12), function(x,months) which(months == x),
months = times.list$month)
times.ind2 <- lapply(as.list(1961:1990), fun...