0

I have several rasters that I want to do some calculations ,basically calculating the moving average.

    saf
   class       : RasterStack 
   dimensions  : 720, 1440, 1036800, 601  (nrow, ncol, ncell, nlayers)
   resolution  : 0.25, 0.25  (x, y)
   extent      : -180, 180, -90, 90  (xmin, xmax, ymin, ymax)
  coord. ref. : +proj=longlat +ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +no_defs 

I am gratful to anyhelp

1

The NA's here refer to the fact that the min and max value are unknown (this is no longer the case in the current version of 'raster'). Your function should work if you use 'calc' instead of 'overlay'

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.