-
Notifications
You must be signed in to change notification settings - Fork 27
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
Error in !out[a] : invalid argument type #29
Comments
I get the same error when I run the above code or any of the getHdf() examples in the documentation. Any ideas would be much appreciated. |
To note the hdf files appear to download properly but then the command exits with the error. |
Thanks @ndmsc and @admccurdy for reporting! And sorry for my late reply - I haven't been around for the last couple of weeks... Unfortunately, I cannot reproduce said error:
not only downloads all required files, but also returns the list of output file names:
This works both on Windows and Linux. Here's my session info:
|
It's strange, I have installed R 3.4.3 and managed to get exactly the same environment as yours @fdetsch as shown by sessionInfo() hereafter. But the error is still there. MODIS_1.1.1 package is installed using devtools::install_github("MatMatt/MODIS", ref = "develop") otherwise install.packages() will install MODIS_1.1.0 Any help with this would be much appreciated.
Matrix products: default locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
Very strange indeed! What's your output of
|
Here is the output of MODISoptions()
STORAGE: localArcPath : C:/RDMS/data_backup/ DOWNLOAD: MODISserverOrder : LPDAAC PROCESSING: GDAL : Not available. Use 'MODIS:::checkTools('GDAL')' for more information! |
Seems like the package is not able to find GDAL on your system. Is it in your 'Path' variable? For example, on my machine, the required GDAL executables are in
|
Missing GDAL was the problem for me. I feel a bit sheepish that I didn't figure that out. Thanks for the help @fdetsch. |
Yes @fdetsch, GDAL was the problem and now it's working. What I don't understand is why getHdf function is looking for GDAL? I want to download MODIS data only without processing it ... When I installed GDAL it caused tcltk package to fail. But this is another story. Thanks for your help |
Indeed, this makes little sense. I'll have a look into it within the next couple of days.
|
I think getHdf uses gdalinfo to do the integrity check. I'm not sure if switching off the check disables the requirement. |
@fdetsch Actually no. I downloaded the files using wget on Linux machine !!! |
Alright, then I just consider this issue as solved now. |
Hi,
When downloading MOD11C3 data using getHdf function from MODIS package I ran into this error:
Error in !out[a] : invalid argument type
This is the command I used:
b1 <- getHdf(product = "MOD11C3", begin = "2000.02.01", quiet=TRUE)
It downloads the first file and then the error occurs.
Basically, I want to download all monthly land surface temperature from February 2000 till current date.
Can you please help me understanding the error and how to avoid it?
Thanks
The text was updated successfully, but these errors were encountered: