Here you can find possible solutions for common
MODIStsp problems. We will add to this page as soon as additional problems are reported. If these solutions does not work for you, or you have a different problem, signal it at: https://github.com/ropensci/MODIStsp/issues
MODIStsphangs at first execution, while looking for
MODIStspfails to install, signaling problems in installation of either
Please try to install package
gwidgetsRGtk2 beforehand using:
You will probably get some errors/problems during installation: please see instructions on the next point !
MODIStsphangs at first interactive execution, while attempting to install
At first interactive execution (i.e., with “gui = TRUE) of
MODIStsp, an error window may appear, signaling that libatk-1.0-0.dll is missing from your system. This is due to the fact that library”GTK+"" is not yet installed on your system and needs to be installed. To do so, press “OK”. A new window dialog window will appear, asking if you want to install “GTK+”. Select “Install GTK+” and then “OK”. Windows will download and install the GTK+ library. When it finishes, the R Session should be restarted and next
MODIStsp should go well ! In case RStudio does not automatically restart after installing GTK+, simply kill it form “Task Manager” and reload RStudio.
If you still have problems, try to install the GTK+ library independently, following instructions reported here:
, starting from “Download the GTK+ all-in-one bundle. I downloaded version 2.22 for Windows 64-bit.”. Then try to install
MODIStsp as explained in the point above.
Please Install the following required dependencies: * Cairo >= 1.0.0, ATK >= 1.10.0, Pango >= 1.10.0, GTK+ >= 2.8.0, GLib >= 2.8.0 (required by package
RGtk2) * Curl (required by package
curl) * GDAL >= 1.6.3, PROJ.4 >= 4.4.9 (required by package
On Debian and Ubuntu-based systems, to install packages open a terminal and type:
sudo apt-get install r-cran-cairodevice r-cran-rgtk2 libcairo2-dev libatk1.0-dev libpango1.0-dev libgtk2.0-dev libglib2.0-dev libcurl4-openssl-dev libgdal-dev libproj-dev
On rpm-based systems, to install packages open a terminal and type;
sudo yum install libcairo2-devel libatk1.0-devel libpango1.0-devel gtk2 gtk2-devel glib2-devel libcurl4-devel gdal-devel proj-devel
On others distros: we did not test installation on other distros yet - if you experience problems please contact us.
At the first execution
MODIStsp searches for a valid
GDAL installation. If nothing happens for a long time (e.g., several minutes),
MODIStsp (and in particular the
gdalUtils package on which it relies) is not finding a valid
GDAL installation in the more common locations. To solve the problem:
GDALis properly installed in your system. See the main
MODIStspgithub page for simple instructions
GDALis in your system PATH, and that the GDAL_DATA environment variable is correctly set (You can find simple instructions HERE) (If gdal is not correctly installed or the path not set, then opening a windows shell (“cmd”) and issuing the “gdalinfo” command will result in an error !)
If nothing works, please report the issue here: https://github.com/ropensci/MODIStsp/issues
There are currently some problems in installing
install_github on R >= 3.3.1 due to not correct installation of dependencies (related to a bug in CRAN version of
install_github). Installing the development version of
devtools should solve the issue. To do so, on a clean R/RStudio session do:
, then continue with standard
If you have problems in installing the “devel” version of
devtools, manually installing all the dependencies should also solve the issue. To do so, please try doing:
install.packages(c("bitops", "data.table", "gdalUtils", "gWidgets", "hash", "plyr", "raster", "RCurl", "rgdal", "rgeos", "xts", "XML", "xml2", "sp", "stringr", "httr", "RJSONIO","chron","iterators", "digest","pacman"))
, then continue with standard
If you still don’t succeed, please contact us !
(substitute XXX.XXX.XXX.XXX and YYYY with the IP address and port number of the proxy, respectively)
MODIStspfetches the list of files available on NASA archives. This problem is more pronounced for ftp download, so switching to http may be a good idea !
If nothing of the above solves your problem, please report the issue here: https://github.com/ropensci/MODIStsp/issues
MODIStspfails while processing product MxDyyy
Although we tried to test functionality for all products, some bugs may be still present for specific products, due to the complexity and variability of MODIS hdfs structure. In that case, please report the issue here: https://github.com/ropensci/MODIStsp/issues
Please see here
If you wish to use
MODIStsp to process MODIS hdf images that you already downloaded from NASA servers, you should proceed like this:
Place all the hdf files in a folder of your choice (e.g., “D:\myfolder\mydir\hdf_modis”). All the images must reside in the root of that folder (i.e., no subfolders)
Open MODIStsp GUI and set the processing parameters for your analysis as you would do if you had still to download the data. In particular, be sure to:
Set the “download method” to either:
http/ftp: if you want
MODIStsp to check if all the images for the selected product and time period are already available on your PC.
MODIStsp will take care of downloading any missing image (i.e., if you forgot to download something, or the processing period you provided is larger than that “covered” by the images you already have).
offline: if you just want to process the images that you have. In that case,
MODIStsp will not even connect to NASA servers, and just process all images that it finds in your “hdf folder” and which satisfy the processing parameters you specified (to be clear: if you have a folder with MOD13Q1 images, but the GUI is set as to process MOD09A1 data, nothing will happen. Analogously, if you have imagery from 2003 to 2009, but you set the processing period from 2010 to 2015 nothing will happen)
Start the processing.
Please report any other issues at https://github.com/ropensci/MODIStsp/issues