Description Usage Arguments Value Examples
Takes a raster object and a vector of aggrgation values calculates resampling a writes to a folder
This function mainly exists as it seems difficult to use parallel cores to resample a raster object. Hence paralle the different scale functions and use the outputs in seperate functions.
1 | BatchAggregate(inRaster, scaleVector, outNames, NoCores)
|
inRaster |
A raster object to be resampled |
scaleVector |
A vector of the different resampling factors to be applied |
outNames |
a string of folder location and stack names used for writing outputs, will have the aggregation values appended |
NoCores |
Number of Cores to used to parallel processing |
raster objects written to file following resampling.
1 2 3 | #resolutionVector <-2:8
#outName <- "F:\\Projects\\shrub_cover_paper\\pixelSizeTests\\ras_stack"
#returns: "F:\Projects\shrub_cover_paper\pixelSizeTests\ras_stack8.tif" "F:\Projects\shrub_cover_paper\pixelSizeTests\ras_stack7.tif" etc
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.