cran / XPolaris

:exclamation: This is a read-only mirror of the CRAN R package repository. XPolaris — Retrieving Soil Data from POLARIS. Homepage: https://github.com/lhmrosso/XPolaris Report bugs for this package: https://github.com/lhmrosso/XPolaris/issues
Other
0 stars 0 forks source link

Error message in download tifs #1

Open renanmacedosem opened 1 year ago

renanmacedosem commented 1 year ago

Hi!

I am trying to download data from Xpolaris and I got this message:


Error in `dplyr::mutate()`:
! Problem while computing `download = purrr::map2(...)`.
Caused by error in `download.file()`:
! download from 'http://hydrology.cee.duke.edu/POLARIS/PROPERTIES/v1.0/om/mean/60_100/lat3738_lon-121-120.tif' failed
Run `rlang::last_error()` to see where the error occurred.
Warning messages:
1: Problem while computing `download = purrr::map2(...)`.
ℹ downloaded length 18873752 != reported length 29580585 
2: Problem while computing `download = purrr::map2(...)`.
ℹ URL 'http://hydrology.cee.duke.edu/POLARIS/PROPERTIES/v1.0/om/mean/60_100/lat3738_lon-121-120.tif': Timeout of 60 seconds was reached

This is the script:

center_df <-
  block_geometry%>%
  dplyr::filter(block_id == 14630)%>%
  st_as_sf(wkt = "geometry", crs = 4326)%>%
  st_centroid()%>%
  st_coordinates()

df_local <- 
  data.frame(lat = center_df[,2] ,long = center_df[,1], ID = block_id)

#plot
xplot(locations = df_local)

df_ximages <- ximages(locations = df_local,
                      statistics = c('mean'),
                      variables = c('ph','om','clay', 'sand', 'silt', 'hb', 'bd', 'n', 'ksat', 'alpha','lambda','theta_r', 'theta_s'),
                      layersdepths = c('5_15','15_30','30_60', '60_100'),
                      localPath = paste0("~/Documents/block_id_",block_id))

Please, let me know if you have some ideas.

Section info:

R version 4.2.2 Patched (2022-11-10 r83330)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.3 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3

locale:
 [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C               LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8     LC_MONETARY=en_CA.UTF-8   
 [6] LC_MESSAGES=en_CA.UTF-8    LC_PAPER=en_CA.UTF-8       LC_NAME=C                  LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C       

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

other attached packages:
 [1] RStoolbox_0.3.0           rgdal_1.6-2               rasterVis_0.51.4          lattice_0.20-45           reshape_0.8.9            
 [6] forcats_0.5.2             stringr_1.4.1             purrr_0.3.5               readr_2.1.3               tidyr_1.2.1              
[11] tibble_3.1.8              ggplot2_3.4.0             tidyverse_1.3.2           stars_0.6-0               abind_1.4-5              
[16] sf_1.0-9                  googleCloudStorageR_0.7.0 raster_3.6-11             sp_1.5-1                  mapview_2.11.0           
[21] googledrive_2.0.0         dplyr_1.0.10              DBI_1.1.3                 bigrquery_1.4.1           googleAuthR_2.0.0        
[26] reprex_2.0.2              XPolaris_1.0.2           

loaded via a namespace (and not attached):
  [1] readxl_1.4.1         backports_1.4.1      lwgeom_0.2-10        plyr_1.8.8           splines_4.2.2        listenv_0.8.0       
  [7] crosstalk_1.2.0      leaflet_2.1.1        digest_0.6.30        foreach_1.5.2        htmltools_0.5.3      viridis_0.6.2       
 [13] fansi_1.0.3          magrittr_2.0.3       memoise_2.0.1        doParallel_1.0.17    googlesheets4_1.0.1  tzdb_0.3.0          
 [19] globals_0.16.2       recipes_1.0.3        modelr_0.1.10        gower_1.0.0          exactextractr_0.9.1  askpass_1.1         
 [25] hardhat_1.2.0        timechange_0.1.1     prettyunits_1.1.1    jpeg_0.1-10          colorspace_2.0-3     rvest_1.0.3         
 [31] rappdirs_0.3.3       haven_2.5.1          leafem_0.2.0         crayon_1.5.2         jsonlite_1.8.3       hexbin_1.28.2       
 [37] survival_3.4-0       zoo_1.8-11           iterators_1.0.14     glue_1.6.2           gtable_0.3.1         gargle_1.2.1        
 [43] ipred_0.9-13         webshot_0.5.4        future.apply_1.10.0  maps_3.4.1           scales_1.2.1         Rcpp_1.0.9          
 [49] viridisLite_0.4.1    progress_1.2.2       units_0.8-0          reticulate_1.26      bit_4.0.5            mapproj_1.2.9       
 [55] proxy_0.4-27         lava_1.7.0           stats4_4.2.2         prodlim_2019.11.13   htmlwidgets_1.5.4    httr_1.4.4          
 [61] RColorBrewer_1.1-3   wk_0.7.0             ellipsis_0.3.2       pkgconfig_2.0.3      XML_3.99-0.13        farver_2.1.1        
 [67] nnet_7.3-18          dbplyr_2.2.1         deldir_1.0-6         utf8_1.2.2           caret_6.0-93         tidyselect_1.2.0    
 [73] labeling_0.4.2       rlang_1.0.6          reshape2_1.4.4       munsell_0.5.0        cellranger_1.1.0     tools_4.2.2         
 [79] cachem_1.0.6         cli_3.4.1            generics_0.1.3       broom_1.0.1          fastmap_1.1.0        yaml_2.3.6          
 [85] ModelMetrics_1.2.2.2 bit64_4.0.5          fs_1.5.2             zip_2.2.2            s2_1.1.1             satellite_1.0.4     
 [91] future_1.29.0        nlme_3.1-160         xml2_1.3.3           brio_1.1.3           compiler_4.2.2       rstudioapi_0.14     
 [97] curl_4.3.3           png_0.1-8            e1071_1.7-12         stringi_1.7.8        Matrix_1.5-3         classInt_0.4-8      
[103] vctrs_0.5.1          pillar_1.8.1         lifecycle_1.0.3      data.table_1.14.6    R6_2.5.1             latticeExtra_0.6-30 
[109] KernSmooth_2.23-20   gridExtra_2.3        parallelly_1.32.1    codetools_0.2-18     MASS_7.3-58.1        assertthat_0.2.1    
[115] openssl_2.0.4        withr_2.5.0          parallel_4.2.2       hms_1.1.2            terra_1.6-41         grid_4.2.2          
[121] rpart_4.1.19         timeDate_4021.107    class_7.3-20         pROC_1.18.0          lubridate_1.9.0      base64enc_0.1-3     
[127] interp_1.1-3`
gaborcsardi commented 1 year ago

Hi, this is a read only mirror of CRAN, please see the package authors in the DESCRIPTION file. Look for Maintainer, BugReports and URL. Thanks!

renanmacedosem commented 1 year ago

Sorry about that! Thanks!