reprojectRaster: Project splitted raster

View source: R/gridRaster.R

reprojectRasterR Documentation

Project splitted raster

Description

Project splitted raster

Usage

reprojectRaster(proj4, in.dir = tempdir(), out.dir = tempdir())

Arguments

proj4

string, proj4string of the target raster.

in.dir

string, input directory; default to tempdir()

out.dir

string, output directory; default to tempdir()

Examples

## Not run: 
r <- raster::raster("~/Documents/calvana.tif")
proj4 <- readLines("~/Proj/nepal/data/proj4.txt")
r2 <- raster::projectRaster(r, crs = proj4)
g <- gridRaster(r, 5, 5)
splitRaster(r, g)
t_crs <- sp::proj4string(sp::CRS("EPSG:3226"))
reprojectRaster(t_crs)
raster::plot(r)
raster::lines(g)

## End(Not run)

emilio-berti/monkeytools documentation built on April 15, 2022, 8:14 a.m.