-
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 using getHdf: Error in setPath #58
Comments
Hm, I fail to reproduce this on Windows. On my machine, everything runs smoothly: hdf = getHdf(product="MOD13A2", tileH=18, tileV=4, begin="2000.07.01",end="2000.07.15", quiet = TRUE)
hdf
# $MOD13A2.006
# [1] ".../MODIS_~1/MODIS/MOD13A2.006/2000.06.25/MOD13A2.A2000177.h18v04.006.2015138073417.hdf"
# [2] ".../MODIS_~1/MODIS/MOD13A2.006/2000.07.11/MOD13A2.A2000193.h18v04.006.2015138073356.hdf" Here's my > sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MODIS_1.1.4 raster_2.8-4 sp_1.3-1 mapdata_2.3.0 maps_3.3.0
loaded via a namespace (and not attached):
[1] remotes_2.0.2 sf_0.7-2 lattice_0.20-38 testthat_2.0.1 usethis_1.4.0 htmltools_0.3.6
[7] yaml_2.2.0 rlang_0.3.1 pkgbuild_1.0.2 e1071_1.7-0 nloptr_1.2.1 later_0.7.5
[13] foreign_0.8-71 glue_1.3.0 withr_2.1.2 DBI_1.0.0.9001 sessioninfo_1.1.1 rgeos_0.4-2
[19] mapedit_0.4.3 devtools_2.0.1 codetools_0.2-15 memoise_1.1.0 callr_3.1.1 httpuv_1.4.5.1
[25] ps_1.3.0 maptools_0.9-4 parallel_3.5.2 curl_3.2 class_7.3-14 Rcpp_1.0.0
[31] xtable_1.8-3 backports_1.1.3 promises_1.0.1 classInt_0.3-1 desc_1.2.0 pkgload_1.0.2
[37] mime_0.6 fs_1.2.6 ptw_1.9-13 digest_0.6.18 processx_3.2.1 shiny_1.2.0
[43] grid_3.5.2 rprojroot_1.3-2 rgdal_1.3-6 cli_1.0.1 tools_3.5.2 bitops_1.0-6
[49] magrittr_1.5 crayon_1.3.4 prettyunits_1.0.2 assertthat_0.2.0 rstudioapi_0.9.0 R6_2.3.0
[55] units_0.6-2 compiler_3.5.2 Can you maybe try once again (optionally, using the develop version: |
I tried again using the develop version and got the same. > getHdf(product="MOD13A2",
+ tileH=18,
+ tileV=4,
+ begin="2000.07.01",end="2000.07.15")
Updating collection from LPDAAC for product: MOD13A2
Error in setPath(path.expand(paste0(opts$localArcPath, paste0(unlist(string), :
dir.create(path, recursive = TRUE, showWarnings = showWarnings) is not TRUE Here's the session info: > sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] MODIS_1.1.4 raster_2.6-7 sp_1.3-1 mapdata_2.3.0 maps_3.3.0
loaded via a namespace (and not attached):
[1] rgdal_1.3-4 units_0.6-1 digest_0.6.17 htmltools_0.3.6 ptw_1.9-13 R6_2.2.2
[7] curl_3.2 grid_3.5.1 bitops_1.0-6 e1071_1.7-0 devtools_1.13.6 httr_1.3.1
[13] compiler_3.5.1 sf_0.6-3 git2r_0.23.0 httpuv_1.4.5 rgeos_0.3-28 lattice_0.20-35
[19] mime_0.5 DBI_1.0.0 later_0.7.5 shiny_1.1.0 mapedit_0.4.3 spData_0.2.9.4
[25] classInt_0.2-3 magrittr_1.5 promises_1.0.1 maptools_0.9-4 foreign_0.8-71 yaml_2.2.0
[31] tools_3.5.1 parallel_3.5.1 withr_2.1.2 nloptr_1.0.4 xtable_1.8-3 class_7.3-14
[37] memoise_1.1.0 Rcpp_0.12.18 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello
I am trying to download a series with
getHdf()
:getHdf(product="MOD13A2", tileH=18, tileV=4, begin="2000.07.01",end="2000.07.15")
While on my Linux system this works perfectly well, I get an error when trying to do the same on Windows (personally I am working with Linux, but we want to use the MODIS package in a course where the students are going to work on Windows).
Though
getHdf()
manages to download a couple of hdf files, it will stop at some point and give me the following error:Updating collection from LPDAAC for product: MOD13A2
Error in setPath(path.expand(paste0(opts$localArcPath, paste0(unlist(string), : dir.create(path, recursive = TRUE, showWarnings = showWarnings) is not TRUE)
If I then repeat the call of
getHdf()
, it will again download a couple of hdfs and then stop again at some point and so on.Hope you guys can help me.
The text was updated successfully, but these errors were encountered: