wget批量下载遥感影像

 下载遥感影像的时候经常遇到需要下载一大堆的情况,普通的下载器一次只能新建一个下载任务,几百条下载链接需要手点几百下,太麻烦啦,这个时候,你需要wget

wget是一个在LINUX下面的下载命令,那么我们如何在windows下面使用呢?首先我们需要安装一个Cygwin,一个windows下运行linux命令的工具。

 

 

 

01

Cygwin安装

Cygwin可以从这里下载:

https://www.cygwin.com/install.html

 

 

点上面箭头指的,64位的(默认大家电脑都是64位的啊),下载好,开始安装

 

 

就放C盘吧,不改目录了

 

 

 

 

有时候它可能无法自动找到镜像站点,你需要手动去网站上找一下

 

 

 

选择中国的镜像,复制到地址栏中,添加,继续下一步

 

 

我们下载使用的是wget包,在这里一定要选择一个版本安装上

 

 

安装完成后即可用于下载。

 

 

 

02

遥感影像批量下载

以ASTER DEM为例,我先检索数据,获取了一个下载列表

 

 

打开刚刚安装好的Cygwin

 

 

首先对下载文件存储目录进行定位,下面是我的目录,注意代码的斜线方向;然后第二条语句即可根据下载链接txt进行下载(要使用网站的账户密码,在这里我用了星号);第三条语句查看下载进度,注意更改pid值:

 

 

cd G:/SatalliteImages/DEM
wget -m -np -nH --cut-dir=4 --wait=2 -i 9538438406-download.txt --http-user=****** --http-password=******* -c --content-disposition -o dl-log.log -b
tail -f 922 dl-log.log

 

MODIS数据也可以下载,以MCD12Q1数据为例:

 

 

代码略有区别,主要是这次下载的是MCD12Q1整个页面下的所有数据,只需一个下载链接。

wget -m -np -nH --cut-dir=1 --wait=1  https://e4ftl01.cr.usgs.gov/MOTA/MCD12Q1.006/ --http-user=******** --http-password=******** -c -o MCD12Q1-data.log -b
tail -f 64  MCD12Q1-data.log


 wget还是非常强大的,不论是DEM,MODIS,还是Sentinel,都可以用它下载,有下载影像需求的同学赶快试试吧。

 

 

 

本文授权转载于知乎用户”走天涯徐小洋”,感谢作者辛勤创作!

  • 打赏

x

  • 微信
  • 支付宝
除特殊注明外,资料来源于网络,仅供学习,请于24小时内 删除
吾爱地理 » wget批量下载遥感影像
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your article helped me a lot, is there any more related content? Thanks!
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Reading your article has greatly helped me, and I agree with you. But I still have some questions. Can you help me? I will pay attention to your answer. thank you.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your article helped me a lot, is there any more related content? Thanks!
Reading your article has greatly helped me, and I agree with you. But I still have some questions. Can you help me? I will pay attention to your answer. thank you.
Your article helped me a lot, is there any more related content? Thanks!
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your article helped me a lot, is there any more related content? Thanks!
Pretty! This has been a really wonderful post. Many thanks for providing these details.
Your article helped me a lot, is there any more related content? Thanks!
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
I do not even understand how I ended up here, but I assumed this publish used to be great
I’m often to blogging and i really appreciate your content. The article has actually peaks my interest. I’m going to bookmark your web site and maintain checking for brand spanking new information.
Your article helped me a lot, is there any more related content? Thanks!
Great information shared.. really enjoyed reading this post thank you author for sharing this post .. appreciated
For the reason that the admin of this site is working, no uncertainty very quickly it will be renowned, due to its quality contents.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I really like reading through a post that can make men and women think. Also, thank you for allowing me to comment!
I appreciate you sharing this blog post. Thanks Again. Cool.
I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
I appreciate you sharing this blog post. Thanks Again. Cool.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
I don't think the title of your article matches the content lol. Just kidding, mainly because I had some doubts after reading the article.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I just like the helpful information you provide in your articles
Your article helped me a lot, is there any more related content? Thanks!
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Good post! We will be linking to this particularly great post on our site. Keep up the great writing
Nice post. I learn something totally new and challenging on websites
Very well presented. Every quote was awesome and thanks for sharing the content. Keep sharing and keep motivating others.
This was beautiful Admin. Thank you for your reflections.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
I truly appreciate your technique of writing a blog. I added it to my bookmark site list and will
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Your article helped me a lot, is there any more related content? Thanks!
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Great information shared.. really enjoyed reading this post thank you author for sharing this post .. appreciated
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
This was beautiful Admin. Thank you for your reflections.
Your article helped me a lot, is there any more related content? Thanks!