machisplin.write.geotiff: Write MACHISPLIN geotiff

View source: R/ensemble.machine.learning.thin.plate.splines.V62.R

machisplin.write.geotiffR Documentation

Write MACHISPLIN geotiff

Description

Write MACHISPLIN geotiff

Usage

machisplin.write.geotiff(mltps.in, out.names = NULL, overwrite = TRUE)

Arguments

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

Value

This function outputs performance values, the algorithm(s) used, and rasters for use in GIS output from the 'machisplin.mltps' function

Examples

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.geotiff(mltps.in=interp.rast)

jasonleebrown/machisplin documentation built on Jan. 2, 2023, 3:08 a.m.