2022年12月,清华大学地球系统科学系黄小猛教授科研团队在《科学通报》(Science Bulletin)上发表题为“3弧秒全球DEM数据集的超分辨率重建”(Super-resolution reconstruction of a 3 arc-second global DEM dataset)的论文,发布了全球3弧秒(90 m)分辨率海洋和陆地DEM数据产品(GDEM_2022)。
文章地址:https://www.sciencedirect.com/science/article/pii/S2095927322005412
数据网站:清华大学云盘
手动下载该数据比较麻烦,特编写以下脚本实现该数据下载:
#!/bin/bash
echo '#!/bin/bash' >dload.sh
for((i=0;i<=90;i+=5))
do
for((j=0;j<=175;j+=5))
do
f=$(curl -GILs https://cloud.tsinghua.edu.cn/d/695ed43696564904980f/files/?p=/n${i}e${j}.tif\&dl=1 | grep location )
echo curl -C - -O ${f/location:/}
echo curl -C - -O ${f/location:/} >> dload.sh
done
for((j=5;j<=180;j+=5))
do
f=$(curl -GILs https://cloud.tsinghua.edu.cn/d/695ed43696564904980f/files/?p=/n${i}w${j}.tif\&dl=1 | grep location )
echo curl -C - -O ${f/location:/}
echo curl -C - -O ${f/location:/} >> dload.sh
done
done
for((i=5;i<=85;i+=5))
do
for((j=0;j<=175;j+=5))
do
f=$(curl -GILs https://cloud.tsinghua.edu.cn/d/695ed43696564904980f/files/?p=/s${i}e${j}.tif\&dl=1 | grep location )
echo curl -C - -O ${f/location:/}
echo curl -C - -O ${f/location:/} >> dload.sh
done
for((j=5;j<=180;j+=5))
do
f=$(curl -GILs https://cloud.tsinghua.edu.cn/d/695ed43696564904980f/files/?p=/s${i}w${j}.tif\&dl=1 | grep location )
echo curl -C - -O ${f/location:/}
echo curl -C - -O ${f/location:/} >> dload.sh
done
done
参考:
[1]自动跳转的下载地址,用 curl 下载怎样保留原文件名?_curl -o 输出打印默认的文件名_小杰杰_Roger的博客-CSDN博客