search for: processmonth

Displaying 2 results from an estimated 2 matches for "processmonth".

2011 Mar 26
0
NetCDF - rolling means and StdDev
...- c(0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365) DaysToMonth366 <- c(0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366) Lyear <- isLeapYear(2000:2009) # returns boolean TRUE FALSE vector for years in sequence # next function is used latter in script see line 50 processMonth<-function(x){ print(x) } start_year<- 1999 # initiates 1 year before to capture December of correct year, next line uses the for loop to run thru # the number of years. Here 3 is used to limit the number used in a testing mode. for(t in 1:3) { currentYear = start_year...
2011 Feb 28
0
MultiDimensional arrays
...counter <- 2 # first element in array #print(paste("day = ", d)) if(d >= Days[counter]) { counter <- counter + 1 #print(paste("here = ", t)) processMonth(data) # function defined outside of this command sequence data <- array(data, dim = c(Days[1], 405, 265)) day = 1 } else { index<-c(x,y,d,t)...