Last active
September 13, 2022 20:05
-
-
Save aldoridhoni/2a9740721f6d9bb5ef958590064a2acc to your computer and use it in GitHub Desktop.
Batch Download ALOS from JAXA
This file contains 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 | |
# Indonesia | |
for long in {090..160..5}; do | |
# north side | |
for lat in {020..000..-5}; do | |
file="N${lat}E${long}_N$(printf '%03d' $((10#$lat + 05)))E$(printf '%03d' $((10#$long + 05))).tar.gz" | |
wget -nc ftp://ftp.eorc.jaxa.jp/pub/ALOS/ext1/AW3D30/release_v1804/$file | |
done | |
# khatulistiwa | |
file="S005E${long}_N000E$(printf '%03d' $((10#$long + 05))).tar.gz" | |
wget -nc ftp://ftp.eorc.jaxa.jp/pub/ALOS/ext1/AW3D30/release_v1804/$file | |
# south side | |
for lat in {010..020..5}; do | |
file="S${lat}E${long}_S$(printf '%03d' $((10#$lat - 05)))E$(printf '%03d' $((10#$long + 05))).tar.gz" | |
wget -nc ftp://ftp.eorc.jaxa.jp/pub/ALOS/ext1/AW3D30/release_v1804/$file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you, this helped me write a script to download the whole dataset.