Saturday, 19 December 2015

GDAL not available in MODIS R package?


I am trying to analyze the MODIS EVI 250m, 16day dataset. I found the R MODIS package and am following the instructions here: https://conservationecology.wordpress.com/2014/08/11/bulk-downloading-and-analysing-modis-data-in-r/


But when I try to run the runGDAL function it tells me that:


library(MODIS)
dates1 <- as.POSIXct( as.Date(c("01/01/2015","31/12/2015"),format = "%d/%m/%Y") )
dates2 <- transDate(dates1[1],dates1[2])
product <- "MOD13Q1"

h = "25"
v = "07"
runGdal(product=product,begin=dates2$beginDOY,end = dates2$endDOY,tileH = h,tileV = v,SDSstring = "111", outProj="4326")

However I get the error:



Error in runGdal(product = product, begin = dates2$beginDOY, end = dates2$endDOY, : GDAL not installed or configured, read in '?MODISoptions' for help



I tried using the checkTools() command to set GDAL:


MODIS:::checkTools("GDAL")

Checking availabillity of GDAL: OK, GDAL 1.11.3, released 2015/09/16 found!

Does anybody have any ideas on how to fix this issue?


I'm using MODIS version 0.10.33. Output of MODISoptions():


STORAGE:
_______________
localArcPath : /Users/sujoybhattacharyya/MODIS_download
outDirPath : /Users/sujoybhattacharyya/MODIS_download/Processed
DOWNLOAD:
_______________

MODISserverOrder : LPDAAC, LAADS
dlmethod : auto
stubbornness : high

PROCESSING:
_______________
GDAL : Not available. Use 'MODIS:::checkTools('GDAL')' for more information!
MRT : Not available. Use 'MODIS:::checkTools('MRT')' for more information!
pixelSize : asIn
outProj : asIn

resamplingType : NN
dataFormat : GTiff

DEPENDENCIES:
_______________


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...