This script clips GeoTIF images to plots using a shapefile/GeoJSON.
The script requires GeoTIF image/s and a GeoJSON, both in the same coordinate system.
The script ouputs subdirectories for each plot in the GeoJSON with plot clipped GeoTIFs in each.
- Positional Arguments:
- TIF file to clip: 'tif', nargs='+'
- Required Arguments:
- Sensor used to collect images: '-sen', '--sensor'
- GeoJSON with plot polygons: '-shp', '--shape'
- Optional Arguments:
- Output directory: '-o', '--outdir', default='plotclip_out'
- Coordinate system of images: '-e', '--epsg', default=4326