Created
April 17, 2015 19:38
-
-
Save rastermanden/39ae22cbf5f17ab1b1af to your computer and use it in GitHub Desktop.
download arctic dem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tiles=( 14_39 15_37 15_38 15_39 16_37 16_38 16_39 16_40 17_37 17_38 17_39 17_40 18_37 18_38 18_39 18_40 19_37 19_38 19_39 19_40 20_37 20_38 20_39 21_37 21_38 21_39 21_40 22_37 22_38 22_39 22_40 23_37 23_38 23_39 23_40 ) | |
for i in "${tiles[@]}" | |
do | |
echo fetching $i | |
filelist=`wget -q -O - http://repository.agic.umn.edu/imagery/stereoDEM/SETSM/ArcticDEM/$i/10m/ | sed -n 's/.*href="\([^"]*\).*/\1/p' | grep SETSM_ArcticDEM_` | |
for file in $filelist | |
do | |
echo http://repository.agic.umn.edu/imagery/stereoDEM/SETSM/ArcticDEM/$i/10m/$file | |
wget http://repository.agic.umn.edu/imagery/stereoDEM/SETSM/ArcticDEM/$i/10m/$file | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment