Skip to content
Prev 22521 / 29559 Next

MODIS Whittaker Smoothing multicore support

Hi Amit, I can provide you with some help to get smoothing working to
leverage multiple cores.  This is already baked into the
whittaker.raster() function of our MODIS package and it makes sense to
use it since the problem is of the "embarrassingly parallel" variety.
To leverage multiple cores you can do something like the following:


#beginCluster(type="SOCK",exclude="MODIS")
##  Alternatively:
nodes <- 4
beginCluster(nodes)
system.time(whittaker.raster(vi=vi, wt=qa, inT=time,
timeInfo=timeInfo, groupYears=FALSE,
outDirPath=paste(root_path,"output/",sep="")))
endCluster()

##  Where vi, qa, time, timeInfo are all arguments you can learn about
in the whittaker.raster() documentation.


Hope this helps!

Sincerely,
Forrest


On Tue, Mar 31, 2015 at 5:33 AM Amit Boshale via R-sig-Geo
<r-sig-geo at r-project.org> wrote: