Getting MODIS Data and Tools
By the end of this tutorial the following steps will all be executed in R using the MODIS package. To gain a little understand and test the tools we download, however, the first thing we are going to do is a manual download of a MODIS file and some MODIS tools and then we will test out those tools to make sure they work as expected.
The files that we will download can be access through the Data Pool which is located here Data Pool Home. At the data pool home you should aquaint yourself with the MODIS product table which is here. Product Table. For this exercise I will be downloading a MODIS product known as MOD11 A2. That is a 1km resolution 8 day average of Land Surface Temperature. MODIS LST 8 day average. That file is located on the Terra FTP site MODIS TERRA FTP I’m going to select the version 5 dataset MOD11A2 Version 5 . Specifically a file from the 8 days starting 4th of July 2006. 2006 4th of July.
To get the file I want I merely use the kmz file provided here Modis Tiles in Google Earth whcih tells me the Tile specification. I want a file that covers tile h10v04. If you don’t have google earth you can also use this image
I will download two files. The *hdf file and the xml file.
Before doing that I can browse a jpg of the file here
Download the following two files to a directory we will call Test.
Next up we will get some tools to help us with these files. You will need to register to get the modis reprojection tool
Download that tool. And read the next page before unzipping it
Modis Reprojection Tool …
NOT FOUND !
Comment???
Rotzetter Armand
Zürich
Switzerland
weird.
Try here and make sure you register
https://lpdaac.usgs.gov/tools
Steve, when I go here:
https://lpdaac.usgs.gov/tools/modis_reprojection_tool
I find that there is no Windows version of MRT available other than for 32 bit Windows NT. Any idea what’s going on there?
To add insult to injury even the download of the NT version failed…
I use the 32 bit version on windows 7. How did you try to install it
I was never able to try–four attempted downloads all failed. Something’s not right. I sent a message to the email address listed on the help page.
Oh, ok.
If you cant work that out I will upload it. Gmail doesnt allow exe transmission
Steve
Hi Steve,
First off, this is awesome, thanks for writing it up. While all your instructions about building a package/working with PATH, etc have been easy to follow, I’m having trouble connecting to the ftp linked above with my username. I don’t seem to have access using the same username and password I used to download the MRT. Thoughts?
Thanks!
Jill
I am having the same problem as Jill. It seems that the data is now available via a http server rather than ftp. Do you have any advice on how to proceed? Thank you very much!
Ceren
Hi Ceren, glad I’m not the only one who got tripped up there! But the updated MODIS package version takes this into account and worked fine for me, so just keep going and it will work. It helped me to find that you can get a zipped version of the current package to install into R from zip file instead of going through these development steps (I think this blog series was written before the zip file was available) here:
https://r-forge.r-project.org/R/?group_id=1252
Saves some time if you don’t already have your computer set up. You do still need to install gdal and MRT separately, though.
Jill- thank you so much! I will give this a shot. May reach out to you again if I have any issues, but this should work. Thanks again
No problem. Let me know if you get runMrt to work; I could only get runGdal (and only when the OSGeo4W gdal was installed).
I think there is a problem with the the ftp server. It is not working anymore.
They switched to a http server, so this step no longer works. The package, however, does. See the comments above for more info.
I’m working on my final project race with MODIS images, the idea is to use the R program to make the process which is to select a tile download these pictures in different years (time series) for an area specific and keep them repository, then extract the NDVI and EVI information for that area and then generate a map that will be displayed on a screen, you can tell me if you know of anyone who has done this kind of code in R, I would appreciate.
Greta
How can I help you On Jun 1, 2014 4:08 PM, “Steven Mosher's Blog” wrote:
>
hi Steven, my question is about if you know or seem the code guide en R for this issue con MODIS, i need for my final tesis.