Skip to contents

This function cuts a raster dataset to a specific basin shapefiles and project the raster according to the specified projection.

Usage

cutRaster2Basin(rasterIn, aoiRegion_latlon, aoiBasin_UTM, proj_UTM)

Arguments

rasterIn

Raster file (e.g. DEM)

aoiRegion_latlon

Extent object of the larger region (i.e. for Central Asia, a good choice is extent(c(65,80.05,35.95,44.05))).

aoiBasin_UTM

Extent object of the basin shapefile

proj_UTM

CRS of UTM projection (i.e. for 42N in Central Asia, use "+init=epsg:32642")

Value

Projected raster cut to basin

See also