dhardestylewis / terrain_aggregator

Workflow to aggregate terrain imagery at scale to a single seamless image dataset
Other
10 stars 3 forks source link

Flood modelling `README.md` blurb #89

Open dhardestylewis opened 2 years ago

dhardestylewis commented 2 years ago

Consider re-including in the README.md

## Crop watershed-delineated DEMs from these retiles, using features labelled by the `index` attribute in a separate vector image
mkdir HUCs.d
NUMBER_OF_HUCS=739
for huc in $(seq 0 $(( ${NUMBER_OF_HUCS} - 1)) ); do gdalwarp -multi -cutline HUCs.shp -cl HUCs -cwhere "index=${huc}" -crop_to_cutline albers-warped.d.vrt HUCs.d/HUC${huc}.tif ; done