Learn R Programming

GSIF (version 0.5-5.1)

warp: (GDAL) warp function from FWTools

Description

Reproject and resample using (GDAL) warp program.

Usage

# S4 method for SpatialPixelsDataFrame
warp(obj, proj4s = proj4string(obj), 
      GridTopology = NULL, pixsize, 
      resampling_method = "bilinear", 
      NAflag = get("NAflag", envir = GSIF.opts), 
      tmp.file = FALSE, show.output.on.console = FALSE, program)
# S4 method for RasterLayer
warp(obj, proj4s = proj4string(obj), 
      GridTopology = NULL, pixsize, 
      resampling_method = "bilinear", 
      NAflag = get("NAflag", envir = GSIF.opts), 
      tmp.file = FALSE, show.output.on.console = FALSE, program)

Arguments

obj

object of class "SpatialPixelsDataFrame" or class "RasterLayer"

proj4s

character; proj4string describing the target coordinate system

GridTopology

optional grid topology from sp package

pixsize

grid cell size in decimal degrees

resampling_method

character; resampling method (see gdalwarp options)

NAflag

character; missing value flag

tmp.file

logical; specifies whether a temporary file name should be generated

show.output.on.console

logical; specifies whether to print out the progress

program

full path to the (GDAL) warp program

See Also

make.3Dgrid, plotKML::reproject