Geographic Information Systems Asked by mket20 on February 14, 2021
I’m trying to download some MODIS data using the following function, which errors like so:
ndvi.evi <- runGdal("MOD13Q1", collection = "006", tileH = 20, tileV = 11,
begin = start, end = end, SDSstring = "111000000010",
job = "NDVI.EVI", outProj="asIn")
Error in runGdal("MOD13Q1", collection = "006", tileH = 20, tileV = 11, :
GDAL not installed or configured, read in '?MODISoptions' for help
When I run MODISoptions() I get the following:
> MODISoptions()
STORAGE:
_______________
localArcPath : /private/var/folders/90/qjm_6mxd1wg1f971j9t5n86c0000gp/T/Rtmpa6n6oR/MODIS_ARC
outDirPath : /Users/u1418987/Documents
DOWNLOAD:
_______________
MODISserverOrder : LAADS, LPDAAC
dlmethod : auto
stubbornness : high
wait : 0.5
quiet : FALSE
PROCESSING:
_______________
GDAL : Not available. Use 'MODIS:::checkTools('GDAL')' for more information!
MRT : Enabled
pixelSize : asIn
outProj : asIn
resamplingType : NN
dataFormat : GTiff
cellchunk : 1
However when I run MODIS:::checkTools(‘GDAL’) it seems that it can find GDAL:
> MODIS:::checkTools('GDAL')
Checking availability of GDAL:
OK, GDAL 2.4.2 found!
I have looked at the following forum post and couldn’t get this to work either, even though I successfully followed it:
GDAL not available in MODIS R package?
> Sys.getenv("PATH")
[1] "/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/RStudio.app/Contents/MacOS/postback:/Library/Frameworks/GDAL.framework/Versions/2.4/Programs"
Any advice?
P.S. When I run MODIS:::checkTools() I get the following:
> MODIS:::checkTools()
Checking availability of MRT:
'MRT_HOME' not set/found! MRT is NOT enabled! See: 'https://lpdaac.usgs.gov/tools/modis_reprojection_tool'
Checking availability of GDAL:
OK, GDAL 2.4.2 found!
sh: wget: command not found
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP