Skip to content
Prev 24431 / 29559 Next

MODIS package's runGdal() returns error: dataFormat='GTiff', format not supported

Thanks for all your help Chris, the original error has been corrected, and
now there is another error when trying to run runGdal(). I removed the
previous version of MODIS and installed version 0.10-34 (develop branch) as
per Florian's suggestion. Everything runs fine until it gets to accessing
the server and downloading the file. The same happens to my colleague who
is running a 64-bit Ubuntu 14.04 machine with R 3.3.0. The issue seems to
stem from the fact that in the getStruc.R file FtpDayDirs[1]==FALSE. In
fact FtpDayDirs[1] is NULL, which in turn is due to the fact that
getStruc.R failed to connect to e4ftl01.cr.usgs.gov (port 80: Timed out).
Is anyone else having this issue? I tried accessing
http://e4ftl01.cr.usgs.gov/ on my browser and it does seems to be down.
Running getStruc.R and selecting LAADS instead of LPDAAC seems to work, but
I don't know how to incorporate this into the runGdal() command.

Cheers,
Hakim Abdi



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.
Removing package from ?C:/Program Files/R/R-3.2.5/library?
(as ?lib? is unspecified)
type = "source")
* installing *source* package 'MODIS' ...
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (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
All suggested packages are installed
Detecting available write drivers!
Found: 64 candidate drivers, detecting file extensions...
43 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:
_______________
"%d/%m/%Y") ) # specify your beginning and end dates
format
h,tileV = v, SDSstring = bands, outProj="4326")
Loading required package: rgdal
rgdal: version: 1.1-8, (SVN revision 616)
 Geospatial Data Abstraction Library extensions to R successfully loaded
 Loaded GDAL runtime: GDAL 2.0.1, released 2015/09/15
 Path to GDAL shared files: C:/Program Files/R/R-3.2.5/library/rgdal/gdal
 GDAL does not use iconv for recoding strings.
 Loaded PROJ.4 runtime: Rel. 4.9.1, 04 March 2015, [PJ_VERSION: 491]
 Path to PROJ.4 shared files: C:/Program Files/R/R-3.2.5/library/rgdal/proj
 Linking to sp version: 1.2-3
Loading required package: rgeos
rgeos version: 0.3-19, (SVN revision 524)
 GEOS runtime version: 3.5.0-CAPI-1.9.0 r4084
 Linking to sp version: 1.2-3
 Polygon checking: TRUE

########################
outProj          =  +init=epsg:4326 +proj=longlat +datum=WGS84 +no_defs
+ellps=WGS84 +towgs84=0,0,0
pixelSize        =  asIn
resamplingType   =  near
Output directory =
 C:/Users/Hakim/Documents/MODIS_ARC/PROCESSED//MOD13Q1.005_20160525102653
 (no 'job' name specified, generated (date/time based))
########################
Loading required package: RCurl
Loading required package: bitops
Downloading structure on 'LPDAAC' for: MOD13Q1.005
Try: 1
*Error in if (FtpDayDirs[1] == FALSE) { : *
*  missing value where TRUE/FALSE needed*









On Wed, May 25, 2016 at 12:34 AM, chris english <
englishchristophera at gmail.com> wrote:

            

  
  
Message-ID: <CALPtVYVT0uA23+BhJRVFQ4aOLRoTadTdqKnDoKCn5HfYGq_LKQ@mail.gmail.com>
In-Reply-To: <bb47c13dfbc94101a599ae75b683cb12@UWCAS04.uw.lu.se>