Read a raster using rgdal within a user specified bounding box
readGDALbbox(gdal, spo, mar,...)
any raster that can be read by readGDAL
spatial object whose bounding box can be retrieved using bbox
user defined margin around the bounding box (default = 2 pixels)
further parameters to pass to readGDAL
returns the required data subset from the raster file as a Spatial object
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.