gdalwarp_grid: Warp basing on the grid of another file

Description Usage Arguments Note Author(s) Examples

Description

The function apply gdalwarp to build rasters with the same projection, resolution and grid alignment of another raster. If not specified, the output format of each file is the same of the corresponding source file.

Usage

1
gdalwarp_grid(srcfiles, dstfiles, ref, of = NULL, ...)

Arguments

srcfiles

A vector of input file paths (managed by GDAL).

dstfiles

A vector of input file paths.

ref

Path of the raster taken as reference.

of

The output format (use the short format name). Default is the format of every input filename.

...

Additional parameters of gdalwarp (different from s_srs, t_srs, te, tr, ts and of).

Note

License: GPL 3.0

Author(s)

Luigi Ranghetti, phD (2017) ranghetti.l@irea.cnr.it

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
ex_sel <- c("/path/of/existing/input/file.tif",
            "/path/of/existing/input/anotherfile.jp2")
ex_ref <- "/path/of/the/reference/file.jp2"
ex_out <- c("/path/of/the/output/file.tif",
            "/path/of/the/output/anotherfile.jp2")

gdalwarp_grid(ex_sel, ex_out, ex_ref, dstnodata=0, overwrite=TRUE)

## End(Not run)

pobsteta/theia2r documentation built on May 25, 2019, 2:21 p.m.