[R-sig-Geo] Package MODIS error in runMrt( ) and getHdf - 'Problems with online connections try a little later'

Marsik,Matthew P mmarsik at ufl.edu
Wed Sep 30 16:49:13 CEST 2015


Hello

I am having trouble running the function runMrt from the package MODIS. This was working as of last Friday morning, 25 Sept. I've done Google searches for help
(https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=r-modis+%22Problems+with+online+connections%22), with no success. Any help would be appreciated!

I have a time series of downloaded MODIS MOD13Q1 hdfs from 2000-2014 for tiles h=09-12, v=05-06 for the southeastern US and stored on a networked drive. I want to process them
clipping to a spatial extent and project them into Albers USGS for the conterminous US with a pixel size of 250 meters. I've set my localArcPath to the networked drive
containing the MOD13Q1 hdf files, and the outDirPath to my local computer's C drive. I've specified the following MODISoptions:

MODIS:::MODISoptions(localArcPath = modis_archive_path, outDirPath = modis_out_path, systemwide=FALSE, save=FALSE, stubbornness=1)

When I execute the following runMrt() function

runMrt(job=job, product=product,
                                begin=begin,
                                end=end,
                                localArcPath=modis_archive_path,
                                outDirPath=modis_out_path,
                                extent=extent(boundary),
                                SDSstring=out_SDSstring,
                                outProj='AEA',
                                projPara='6378137.0 6356752.314140356 29.5 45.5 96.0 23.0 0 0 0 0 0 0 0 0 0',
                                datum='NAD83',
                                pixelSize=out_pixel,
                                resamplingType=resample,
                                stubbornness=stubbornness)

I receive an error with getHdf noting there is an error with the online connection:

Output projection: Albers Equal Area
Output pixel size: 250
Resampling method: nn
Output projection parameters specified!
Using:
  6378137.0 6356752.314140356 29.5 45.5 96.0 23.0 0 0 0 0 0 0 0 0 0
Error in MODIS:::getHdf(product = opts$product$PRODUCT[z], collection = strsplit(todo[u],  :
  Problems with online connections try a little later
In addition: Warning message:
In dir.create(outDir) :
  'R:\MACROS~1\Data\M2ENLS~L\M7L986~Z\data\M248XV~A\PMS9ML~B\\SEUS' already exists
> [1] "Elapsed Time: 4.32000000000016 seconds"

The following are my R session specifications:

R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
RCurl_1.95-4.7
bitops_1.0-6
rgeos_0.3-11
rgdal_1.0-6
MODIS_0.10-18
raster_2.4-18
sp_1.1-1

regards,

Matthew Marsik, PhD
Research Scientist
Land Use and Environmental
Change Institute (LUECI)
3141 Turlington Hall
Gainesville, FL 32611
Email: mmarsik at ufl.edu
Tel: 352-294-7604
Web: lueci.clas.ufl.edu


	[[alternative HTML version deleted]]



More information about the R-sig-Geo mailing list