Skip to content

Needing to speed up a process involving calc() and cover() raster functions

1 message · Mathieu Rajerison

#
Hi,

And thanks for all the answers.

I've tested Robert's elegant solution successfully.
I haven't yet tested your solution, Banjamin, but it seems a really good
improvement for speeding all this up and I'll soon give it a try. Thanks
for your awesome RSToolbox package

To answer your question "why setting all pixels to 1", it's just that
afterwards, I smooth the result with a mean-shift focal function. This way,
it gives all the extracted pixels the same value/weight.

Thanks again and happy new yeaR

Mathieu


2015-12-25 6:46 GMT+01:00 Robert J. Hijmans <r.hijmans at gmail.com>: