cutRaster2Basin: Cutting raster file to basin shape with reprojection

View source: R/cutRaster2Basin.R

cutRaster2BasinR Documentation

Cutting raster file to basin shape with reprojection

Description

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

Other Helper functions: %>%(), aggregate_to_monthly(), decadeMaker(), generateSeqDates(), hyear(), monDateSeq(), posixct2rsminerveChar()


hydrosolutions/riversCentralAsia documentation built on Feb. 7, 2023, 4:50 p.m.