ropensci / MODIStsp

An "R" package for automatic download and preprocessing of MODIS Land Products Time Series
https://docs.ropensci.org/MODIStsp
GNU General Public License v3.0
155 stars 51 forks source link

Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer) #201

Closed Algernonthanks closed 4 years ago

Algernonthanks commented 4 years ago

hi, when i used this package to process the offline date -MOD17A2H, there is a error : Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", : Cannot create a RasterLayer object from this file. (file does not exist).

But i do not how to deal with it. Would you like to help me to solve this problem.

Algernonthanks commented 4 years ago

MODIStsp(scroll_window=TRUE)

[1] "C:\Users\Desktop\test out" [1] "C:\Users\Desktop\test modis" [1] "C:\Users\Desktop\test.json" TRUE [Wed Apr 29 17:21:42 2020] MODIStsp --> Starting processing [Wed Apr 29 17:21:42 2020] Accessing http server at: https://e4ftl01.cr.usgs.gov/MOLT/MOD17A2H.006/ [Wed Apr 29 17:21:42 2020] Retrieving list of available Terra Files for Year 2015 [Wed Apr 29 17:21:42 2020] HDF File: MOD17A2H.A2015201.h16v00.006.2015304061234.hdf already exists on your system. Skipping download! [Wed Apr 29 17:21:42 2020] HDF File: MOD17A2H.A2015201.h17v00.006.2015304072101.hdf already exists on your system. Skipping download! ........... [Wed Apr 29 17:21:58 2020] [Wed Apr 29 17:21:58 2020] 290 files for date: 2015.07.20 were successfully downloaded! [Wed Apr 29 17:21:59 2020] Processing Terra GPP files for date: 2015_07_20 [Wed Apr 29 17:22:08 2020] Processing Terra Psn_QC files for date: 2015_07_20 [Wed Apr 29 17:22:14 2020] Computing QC_bits for date: 2015_07_20 Error in .local(.Object, ...) :

Error in .rasterObjectFromFile(x, band = band, objecttype = "RasterLayer", : Cannot create a RasterLayer object from this file. (file does not exist)

Algernonthanks commented 4 years ago

i have solved this issue, accoding to the previous issue, i.e., "Hi. Its probably an issue related to the gdal 3 update. Could you please try installing the "devel" branch from gdal and see if it solves the problem? install.packages('ropensci/MODIStsp', ref = 'devel')"

lbusett commented 4 years ago

Oh, good... I was about to ask for further info.

Let me know if you have other problems.

Lorenzo

Algernonthanks commented 4 years ago

OK, Thank you for your great work for Modistsp.