pgirmess (version 1.6.9)

readGDALbbox: Read a raster using rgdal within a user specified bounding box

Description

Read a raster using rgdal within a user specified bounding box

Usage

readGDALbbox(gdal, spo, mar,...)

Arguments

gdal

any raster that can be read by readGDAL

spo

spatial object whose bounding box can be retrieved using bbox

mar

user defined margin around the bounding box (default = 2 pixels)

further parameters to pass to readGDAL

Value

returns the required data subset from the raster file as a Spatial object

Details

This function read a raster file using GDAL within the bounding box of a spatial objet. This permits to extract required subset areas from very large raster data sets that cannot be loaded into the workspace.

See Also

readGDAL, bbox