Re: [R-sig-Geo] Calculate anomalies on time-series rasters

2017-02-13 Thread Thiago V. dos Santos via R-sig-Geo
Thanks for the input, Michael and Loic. It looks like remote's "anomalize" might work, but the overlay approach was more convenient to use based on the shape of my data. Greetings, -- Thiago V. dos Santos PhD student Land and Atmospheric Science University of Minnesota On Sunday, February

Re: [R-sig-Geo] Calculate anomalies on time-series rasters

2017-02-12 Thread Loïc Dutrieux
On 12/02/2017 03:14, Michael Sumner wrote: > I believe the "remote" package has functions for doing exactly this. > > HTH > > On Sun, Feb 12, 2017, 17:42 Thiago V. dos Santos via R-sig-Geo < > r-sig-geo@r-project.org> wrote: > >> Dear all, >> >> I have a netcdf file with monthly temperatures

Re: [R-sig-Geo] Calculate anomalies on time-series rasters

2017-02-12 Thread Michael Sumner
I believe the "remote" package has functions for doing exactly this. HTH On Sun, Feb 12, 2017, 17:42 Thiago V. dos Santos via R-sig-Geo < r-sig-geo@r-project.org> wrote: > Dear all, > > I have a netcdf file with monthly temperatures values covering the period > of January 1961 to December 2010:

[R-sig-Geo] Calculate anomalies on time-series rasters

2017-02-11 Thread Thiago V. dos Santos via R-sig-Geo
Dear all, I have a netcdf file with monthly temperatures values covering the period of January 1961 to December 2010: library(raster) # Create date sequence idx = seq(as.Date("1961/1/1"), as.Date("2010/12/31"), by = "month") # Create raster stack and assign dates r = raster(ncol=5, nrow=5) s =