fdetsch / MODIS

Download and processing framework for MODIS imagery. The package provides automated access to the global online data archives LP DAAC, LAADS and NSIDC as well as processing capabilities such as file conversion, mosaicking, subsetting and time series.
Other
58 stars 27 forks source link

runGdal with local Hdf #90

Open earthcli opened 4 years ago

earthcli commented 4 years ago

I am sorry I have met a base trouble when runGdal with local Hdf file. I have downloaded a Hdf file from chrome (I must use proxy when downloading the data), and saved it in a folder :D:/ET, with the below code, I get an error of: "Error in product@CCC[[product@PRODUCT[z]]] : subscript out of bounds", would you please show me what is the corret way to do so?

require(MODIS) setwd("D:/ET") hdf=file.path("D:/ET","MOD16A2.A2020097.h23v07.006.2020113000821.hdf") p=runGdal(product="Mod16A2",tileH=23,tileV=7,begin="2020091",end="2020097",SDSstring = "1",localArcPath=getwd())

earthcli commented 4 years ago

sorry , I know this is due to the error of "Mod16A2", which should be "MOD16A2". but, if I do not want to download from runGdal, which parameter should I use to tell the function not to connect to the server? Even after I use the orgStruc function, the runGdal still trying to connect to the server, however, the connection is not avaliable in our country due to the proxy, it stay at the stage of "Downloading structure on 'LPDAAC' for: MOD16A2.006" for more than 20 hours. Would you please show me how to disable the connection the web server?