[GIS] Automatically download Modis image using python script

modispythonpython-2.7

I need download Modis imagery automatically from the website: https://earthdata.nasa.gov/.

I found this link: http://gis-techniques.blogspot.com/2010/06/getting-modis-image-automatically-from.html

but I can't run it. In that code there's the line:

logFileread=open(r"D:\MODIS\MOD09\lpdaac.txt",'r')

I don't know the structure of this file.I don't know how to create it.
If anyone knows the answer, please tell me.

Best Answer

You may also take a look at "pyModis", a Free and Open Source Python library to work with MODIS data. It can bulk-download, mosaik and reproject:

http://www.pymodis.org