Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runGdal with local Hdf #90

Open
earthcli opened this issue Apr 24, 2020 · 1 comment
Open

runGdal with local Hdf #90

earthcli opened this issue Apr 24, 2020 · 1 comment

Comments

@earthcli
Copy link

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
Copy link
Author

earthcli commented Apr 24, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant