如果您在浏览器中打开第二个链接,您将看到源代码:
#!/bin/bash
# Script to download individual .nc files from the ORNL
# Daymet server at: http://daymet.ornl.gov
[…]
# For ranges use {start..end}
# for individul vaules, use: 1 2 3 4
for year in {2002..2003}
do
for tile in {1159..1160}
do wget --limit-rate=3m http://daymet.ornl.gov/thredds/fileServer/allcf/${year}/${tile}_${year}/vp.nc -O ${tile}_${year}_vp.nc
# An example using curl instead of wget
#do curl --limit-rate 3M -o ${tile}_${year}_vp.nc http://daymet.ornl.gov/thredds/fileServer/allcf/${year}/${tile}_${year}/vp.nc
done
done
所以它是一个bash脚本。有Linux?
在任何情况下,脚本只是一系列HTTP检索。 wget和curl都可用于大多数操作系统,并且几乎所有语言都有HTTP库,因此在任何其他技术中重写都相当琐碎。