clip_raster_by_shp¶
Clip input raster by input shp polygons
usage: clip_raster_by_shp [-h] [-extent {raster,shp,intersection,union}]
[-bbox] [-pad PAD] [-invert] [-out_fn OUT_FN]
r_fn shp_fn
Positional Arguments¶
| r_fn | Input raster filename |
| shp_fn | Input shp filename |
Named Arguments¶
| -extent | Possible choices: raster, shp, intersection, union Desired output extent Default: “raster” |
| -bbox | Clip raster to shp bounding box, but dont mask Default: False |
| -pad | Padding around shp extent, in raster units |
| -invert | Invert the input polygons before clipping Default: False |
| -out_fn | Output raster filename (default: *_shpclip.tif) |