Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. rm -rf ln8
  4. mkdir ln8
  5. rm -rf ln8_cropped
  6. mkdir ln8_croped
  7.  
  8. for zip in *.tar.gz
  9. do
  10. tar -xvzf "$zip" --wildcards --no-anchored '*B8.TIF'
  11. done
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. for f in *B8.TIF
  19. do
  20. echo "filename is $f"
  21. gdalwarp -cutline boudary_32650.geojson -crop_to_cutline $f ${f/.tif}_masked.tif
  22. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement