Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- rm -rf ln8
- mkdir ln8
- rm -rf ln8_cropped
- mkdir ln8_croped
- for zip in *.tar.gz
- do
- tar -xvzf "$zip" --wildcards --no-anchored '*B8.TIF'
- done
- for f in *B8.TIF
- do
- echo "filename is $f"
- gdalwarp -cutline boudary_32650.geojson -crop_to_cutline $f ${f/.tif}_masked.tif
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement