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

strsplit error #111

Closed juanenbici closed 2 years ago

juanenbici commented 3 years ago

Hi. When I try to download and process MODIS data with MODIS R package, I get this strange strsplit error.

runGdal( product="MOD11A1", begin="2010001", end="2010005", SDSstring="101")

what I get after select some tiles:

######################## outProj = asIn pixelSize = asIn resamplingType = near Output directory = C:/**************************/MOD11A1.006_20210526092347 (no 'job' name specified, generated (date/time based)) ######################## Downloading structure on 'LPDAAC' for: MOD11A1.006 Hm, I have to search for the file. Next time provide the full path and I'll be very fast! Error in strsplit(x, ":") : non-character argument

Don't know what is happening here. Thanks

juanenbici commented 3 years ago

After changing the localArcPath, now is not giving me this error anymore but is giving me the following loop error

############################ Remote connection failed! Re-try: 24 Getting file from: LAADS ############################ Remote connection failed! Re-try: 25 Getting file from: LPDAAC

juanenbici commented 3 years ago

after some times trying to download it gives me the same strsplit errors

ramonmelser commented 3 years ago

I am having the same issue. Any resolution yet?

fdetsch commented 3 years ago

@ramonmelser @juanenbici I fail to reproduce this error, which has also been reported in https://github.com/MatMatt/MODIS/issues/114. Can you maybe provide the output of traceback() to give me an idea where the error occurs? Or alternatively, run the above code with debug(MODIS::runGdal) enabled?

fdetsch commented 3 years ago

Please see https://github.com/MatMatt/MODIS/issues/114#issuecomment-903897048 for a possible solution. Closing this once the availability of Earthdata credentials can be verified through the package, see https://github.com/MatMatt/MODIS/pull/115.