View source: R/ensemble.machine.learning.thin.plate.splines.V62.R
machisplin.write.residuals | R Documentation |
Write MACHISPLIN model residuals
machisplin.write.residuals(mltps.in, out.names = NULL)
out.names |
a vector corresponding to the output raster names. If 'null' it will write intial input names. |
mttps.in |
an output from the 'machisplin.mltps' function |
This function outputs performance values, the algorithm(s) used, and rasters for use in GIS output from the 'machisplin.mltps' function
library(MACHISPLIN) # Import a csv Mydata <-read.delim("sampling.csv", sep=",", h=T) #load rasters to use as high resolution co-variates for downscaling ALT = raster("SRTM30m.tif") SLOPE = raster("ln_slope.tif") ASPECT = raster("aspect.tif") TWI = raster("TWI.tif") # function input: raster stack of covarites raster_stack<-stack(ALT,SLOPE,TWI,ASPECT) #run an ensemble machine learning thin plate spline interp.rast<-machisplin.mltps(int.values=Mydata, covar.ras=raster_stack, n.cores=2) machisplin.write.residuals(mltps.in=interp.rast)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.