- 使用该方法需要配置Python环境及获取密钥。
未配置Python环境的参考此连接。
Python安装及环境配置教程blog.csdn.net登陆账号,点击Profile,点击App Keys。
在Description中输入Modis便得到的密钥。
![24c110ed7cc953f78decc2ef0b0d11a4.png](https://img-blog.csdnimg.cn/img_convert/24c110ed7cc953f78decc2ef0b0d11a4.png)
至此,准备工作做完啦!
所获取的秘钥如下
F*******-****-****-****-D****D*****C
接下来登陆下载网站
Modis数据下载网站ladsweb.modaps.eosdis.nasa.gov按步骤依次点击
1.PRODUCTS 2.TIME 3.LOCATION 4.FILES 5.REVIEW & ORDER
![5f6a54e6b057f7cea0376bd15ee37f25.png](https://img-blog.csdnimg.cn/img_convert/5f6a54e6b057f7cea0376bd15ee37f25.png)
1.PRODUCTS
这里我选择的是Terra卫星气溶胶产品中的MOD04_3km数据。
点击右侧i符号可以看到该卫星的相关信息
![b7d768c0dde7e124c6ab7d107b5dcd44.png](https://img-blog.csdnimg.cn/img_convert/b7d768c0dde7e124c6ab7d107b5dcd44.png)
2.TIME
选择时间,一共两种选择方法(时间段和单天),请自行探索(懒了哈哈哈)。
我选择的是20190601-20190625
![2708ef7fc2a144498a688cb0036a9660.png](https://img-blog.csdnimg.cn/img_convert/2708ef7fc2a144498a688cb0036a9660.png)
3.LOCATION
选择地点
![ef6acb78314805276e7353bcf3a04306.png](https://img-blog.csdnimg.cn/img_convert/ef6acb78314805276e7353bcf3a04306.png)
4.FILES
点击Select All
![b9b8aee1894b5634edb90e538be810c8.png](https://img-blog.csdnimg.cn/img_convert/b9b8aee1894b5634edb90e538be810c8.png)
5.REVIEW & ORDER
最后Submit Order以后,你订购的Modis外卖就送到了你的邮箱里面啦~
![b29063bca6a225b339348b5bae31d135.png](https://img-blog.csdnimg.cn/img_convert/b29063bca6a225b339348b5bae31d135.png)
订单提交成功后,注册邮箱会收到一封邮件。
![35094e4d012a39da89249d45ca72fbb3.png](https://img-blog.csdnimg.cn/img_convert/35094e4d012a39da89249d45ca72fbb3.png)
![fde24aeb429ebacec049f9645174a54e.png](https://img-blog.csdnimg.cn/img_convert/fde24aeb429ebacec049f9645174a54e.png)
进入箭头处网页,下载对应python版本的工具。
![f8f9d6d79803e971c1a0c527be6e52d2.png](https://img-blog.csdnimg.cn/img_convert/f8f9d6d79803e971c1a0c527be6e52d2.png)
个人推荐把代码存在Jupyter Notebook里面。
不过按照官方提示去掉.txt拓展名以后就得到了我们需要的脚本!!!!
接下来就是下载数据的阶段了
复制订单号、查看下载链接
![81280deade835c9d514851f1dab95968.png](https://img-blog.csdnimg.cn/img_convert/81280deade835c9d514851f1dab95968.png)
打开cmd运行程序前需要切换到脚本所在目录。
![d0802835d10868f6f99766f1d6a718e3.png](https://img-blog.csdnimg.cn/img_convert/d0802835d10868f6f99766f1d6a718e3.png)
输入格式就是
python laads-data-download.py -s https://ladsweb.modaps.eosdis.nasa.gov/archive/orders/501348842/ -d D:balabala -t F*******-****-****-****-D****D*****C
然后静心等待就好了~~~~~~
最后解释一下操作用的参数。
This script will recursively download all files if they don't exist from a
LAADS URL and stores them to the specified path
optional arguments:
-h, --帮助 show this help message and exit
-s URL, --资源连接 Recursively download files at URL
-d DIR, --存储目录
Store directory structure in DIR
-t TOK, --我们获取的密钥 Use app token TOK to authenticate
最后,如果有帮助请关注专栏~~~
资深托更栏主zz不定时更新~~~
![7d185d442bf3a9ff09f8ba82c40473b6.png](https://img-blog.csdnimg.cn/img_convert/7d185d442bf3a9ff09f8ba82c40473b6.png)