Skip to content

MODIS Whittaker Smoothing multicore support

2 messages · Amit Boshale, Forrest Stevens

#
Hi Forrest, that worked! Thank you so much!I was always getting an error that sendCall function was not found, I just had to load snow package and everything is fine. 
Thanks!Amit







     Forrest Stevens <forrest at ufl.edu> schrieb am 15:26 Dienstag, 31.M?rz 2015:
   

 

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:

  
  
#
Great!  Always glad to help!

Forrest
On Wed, Apr 1, 2015 at 8:38 AM Amit Boshale <amit.boshale at yahoo.com> wrote: