MODIS package's runGdal() returns error: dataFormat='GTiff', format not supported
What operating system? When you upgraded QGIS did you also upgrade GDAL? When you upgraded R, did you update your packages (or rebuild any packages)? What do you get from the following command? gdalDrivers() Thanks, Alex
On 05/02/2016 02:11 PM, Hakim Abdi wrote:
Hello everyone, I'm having problems with the MODIS package, specifically, the runGdal() command after the recent update to R 3.2.5. The error I get is this: Error in runGdal(product = product, begin = dates$beginDOY, end = dates$endDOY, : in argument dataFormat='GTiff', format not supported by GDAL type: 'gdalWriteDriver()' (column 'name') to list available inputs I'm not quite sure why this is happening, and I haven't found a solution online. Does anyone have an idea? The package was working fine before I upgraded R from 3.1.1. to 3.2.5, QGIS from 2.12.3 to 2.14.1 and RStudio to version 0.99.467. My details are below, thanks for the assistance: R version 3.2.5 (2016-04-14) -- "Very, Very Secure Dishes" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.
require(MODIS)
Loading required package: MODIS Loading required package: raster Loading required package: sp MODIS_manual: https://ivfl-rio.boku.ac.at/owncloud/public.php?service=files&t=660dc830afb091237cc40b3dea2fdf6b Attaching package: ?MODIS? The following object is masked from ?package:base?: file.size
MODISoptions()
All suggested packages are installed Detecting available write drivers! Found: 64 candidate drivers, detecting file extensions... 0 usable drivers detected! STORAGE:
_______________
localArcPath : C:/Users/Hakim/Documents/MODIS_ARC/
outDirPath : C:/Users/Hakim/Documents/MODIS_ARC/PROCESSED/
DOWNLOAD:
_______________
MODISserverOrder : LPDAAC, LAADS
dlmethod : auto
stubbornness : 5
PROCESSING:
_______________
GDAL : GDAL 2.0.2, released 2016/01/26
MRT : Version 4.1 (March 2011)
pixelSize : asIn
outProj : GEOGRAPHIC
resamplingType : NN
dataFormat : GTiff
DEPENDENCIES:
_______________
dates <- as.POSIXct( as.Date(c("01/01/2010","01/05/2016"),format =
"%d/%m/%Y") )
dates <- transDate(dates[1],dates[2])
product <- "MOD13Q1"
bands <- "010"
h = c("21","22")
v = c("07","08")
*> runGdal(product=product,begin=dates$beginDOY,end = dates$endDOY,tileH =
h,tileV = v, SDSstring = bands, outProj="4326")*
*Error in runGdal(product = product, begin = dates$beginDOY, end =
dates$endDOY, : **in argument dataFormat='GTiff', format not supported by
GDAL type: 'gdalWriteDriver()' (column 'name') to list available inputs*
sessionInfo()
R version 3.2.5 (2016-04-14)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MODIS_0.10-34 raster_2.5-2 sp_1.2-3
loaded via a namespace (and not attached):
[1] tools_3.2.5 Rcpp_0.12.4 grid_3.2.5 lattice_0.20-33
__________________________________________________
Hakim Abdi | PhD Candidate
Center for Geobiosphere Science
Department of Physical Geography and Ecosystem Science
Lund University, S?lvegatan 12, SE-223 62 Lund, Sweden
[[alternative HTML version deleted]]
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo at r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-geo