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 error #109

Open bcosentino opened 3 years ago

bcosentino commented 3 years ago

I'm getting an error with runGdal in a script that has been running fine daily for months. I get the same error when using code from the documentation:

>runGdal( product="MOD11A1", extent="austria", begin="2010001", end="2010005", SDSstring="101") 
Error in load(fls_col) : empty (zero-byte) input file

My sessionInfo and MODISoptions are below. I'd appreciate help troubleshooting this error!

sessionInfo:

> sessionInfo()
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] plyr_1.8.6        googledrive_1.0.1 lubridate_1.7.9.2 MODIS_1.2.3       mapdata_2.3.0     maps_3.3.0        chron_2.3-56     
 [8] stringr_1.4.0     rgeos_0.5-5       raster_3.4-5      rgdal_1.5-18      sp_1.4-4          ncdf4_1.17       

loaded via a namespace (and not attached):
 [1] pkgload_1.1.0      shiny_1.5.0        assertthat_0.2.1   remotes_2.2.0      sessioninfo_1.1.1  pillar_1.4.7      
 [7] lattice_0.20-41    glue_1.4.2         digest_0.6.27      promises_1.1.1     htmltools_0.5.0    httpuv_1.5.4      
[13] pkgconfig_2.0.3    devtools_2.3.2     purrr_0.3.4        xtable_1.8-4       ptw_1.9-15         processx_3.4.5    
[19] later_1.1.0.1      mapedit_0.6.0      tibble_3.0.4       generics_0.1.0     usethis_2.0.0      ellipsis_0.3.1    
[25] withr_2.3.0        cli_2.2.0          magrittr_2.0.1     crayon_1.3.4       mime_0.9           memoise_1.1.0     
[31] maptools_1.0-2     ps_1.5.0           fs_1.5.0           fansi_0.4.1        foreign_0.8-80     class_7.3-17      
[37] pkgbuild_1.2.0     tools_4.0.3        prettyunits_1.1.1  lifecycle_0.2.0    callr_3.5.1        compiler_4.0.3    
[43] e1071_1.7-4        tinytex_0.28       rlang_0.4.9        classInt_0.4-3     units_0.6-7        grid_4.0.3        
[49] nloptr_1.2.2.2     rstudioapi_0.13    bitops_1.0-6       testthat_3.0.1     codetools_0.2-16   DBI_1.1.0         
[55] curl_4.3           R6_2.5.0           dplyr_1.0.2        fastmap_1.0.1      rprojroot_2.0.2    KernSmooth_2.23-17
[61] desc_1.2.0         stringi_1.5.3      parallel_4.0.3     Rcpp_1.0.5         vctrs_0.3.6        sf_0.9-6          
[67] tidyselect_1.1.0   xfun_0.19     

MODISoptions:

>MODISoptions()

STORAGE:
_______________
localArcPath : Z:/MODIS/gvs/raw/ 
outDirPath   : Z:/MODIS/gvs/processed/ 

DOWNLOAD:
_______________
MODISserverOrder : LAADS, LPDAAC 
dlmethod         : auto 
stubbornness     : high 
wait             : 0.5 
quiet            : FALSE 

PROCESSING:
_______________
GDAL           : 3.0.4 
MRT            : Version 4.1 (March 2011) 
pixelSize      : asIn 
outProj        : asIn 
resamplingType : NN 
dataFormat     : GTiff 
cellchunk      : 1 
bcosentino commented 3 years ago

I installed the latest version of R (4.0.5), installed the development version of MODIS, and updated all packages, but the issue has persisted. I have a script that uses MODIS to download LST and NDVI data nightly, and my log files show that the empty input file error started in mid-March. Any ideas about what might be causing this error with runGdal?

bcosentino commented 3 years ago

Today I did a clean install of R and RStudio. I manually wiped all files from .libPaths() before reinstalling. I still get the following error with runGdal:

Error in load(fls_col) : empty (zero-byte) input file