Closed jeffreyhanson closed 2 years ago
Awesome! I will have a try hopefully early next week.
Took longer than I'd hoped, but finally getting to this today.
I really like the idea and setup of this!
I haven't gotten my API token yet, but started with the other components as far as I could get. Not that far it turns out as the create_spp_aoh_data
function is throwing an error.
Using the following
spp_aoh_data <- create_spp_aoh_data(
spp_range_data, output_dir = output_dir, cache_dir = cache_dir )
I get:
√ initializing [14ms]
√ importing global elevation data [19ms]
Error: [rast] cannot read from C:/Users/richard/AppData/Local/Temp/Rtmp6DN0ni/file858c40e25dc2/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest – Boreal__ver002.tif
In addition: Warning message:
Error: [rast] cannot read from C:/Users/richard/AppData/Local/Temp/Rtmp6DN0ni/file858c40e25dc2/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest – Boreal__ver002.tif x importing global habitat data [30.5s]
Do you think its a special character issue related to Windows?
sessionInfo:
R version 4.1.1 (2021-08-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19043)
Matrix products: default
locale:
[1] LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252
[3] LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
[5] LC_TIME=English_Canada.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] ggplot2_3.3.5 rappdirs_0.3.3 aoh_0.0.0.99999 testthat_3.1.0 terra_1.4-14
[6] sf_1.0-3
loaded via a namespace (and not attached):
[1] httr_1.4.2 pkgload_1.2.3 jsonlite_1.7.2 foreach_1.5.1
[5] here_1.0.1 assertthat_0.2.1 sp_1.4-5 triebeard_0.3.0
[9] urltools_1.7.3 remotes_2.4.1 sessioninfo_1.1.1 pillar_1.6.4
[13] lattice_0.20-44 glue_1.4.2 colorspace_2.0-2 plyr_1.8.6
[17] pkgconfig_2.0.3 devtools_2.4.2 httpcode_0.3.0 raster_3.5-2
[21] purrr_0.3.4 fasterize_1.0.3 scales_1.1.1 processx_3.5.2
[25] tzdb_0.1.2 tibble_3.1.5 proxy_0.4-26 generics_0.1.0
[29] usethis_2.1.0 ellipsis_0.3.2 cachem_1.0.6 withr_2.4.2
[33] cli_3.0.1 magrittr_2.0.1 crayon_1.4.1 memoise_2.0.0
[37] ps_1.6.0 fs_1.5.0 fansi_0.5.0 doParallel_1.0.16
[41] xml2_1.3.2 lwgeom_0.2-8 class_7.3-19 pkgbuild_1.2.0
[45] rredlist_0.7.0 tools_4.1.1 prettyunits_1.1.1 hms_1.1.1
[49] lifecycle_1.0.1 munsell_0.5.0 callr_3.7.0 compiler_4.1.1
[53] e1071_1.7-9 rlang_0.4.11 classInt_0.4-3 units_0.7-2
[57] grid_4.1.1 iterators_1.0.13 rstudioapi_0.13 zen4R_0.5
[61] gtable_0.3.0 codetools_0.2-18 DBI_1.1.1 curl_4.3.2
[65] R6_2.5.1 keyring_1.2.0 dplyr_1.0.7 fastmap_1.1.0
[69] utf8_1.2.2 rprojroot_2.0.2 KernSmooth_2.23-20 readr_2.0.2
[73] desc_1.4.0 parallel_4.1.1 crul_1.1.0 Rcpp_1.0.7
[77] vctrs_0.3.8 tidyselect_1.1.1
Thanks for catching this! Yeah, I haven't seen this before - I reckon you're right about the issue pertaining to special characters on Windows. I'll look into it and let you know when I've pushed a potential fix.
@ricschuster, I think I fixed this with ea92c1c. Can you please install the latest version and try again?
Thanks Jeff!
I still get an error:
√ importing global elevation data [30ms]
Error: [rast] file does not exist: C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest a€" Boreal__ver002.tif
Here the warning messages I also get:
warnings()
Warning messages:
1: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest – Boreal__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest a€" Boreal__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
2: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__103_Forest – Subantarctic__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__103_Forest a€" Subantarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
3: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__104_Forest – Temperate__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__104_Forest a€" Temperate__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
4: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__105_Forest – Subtropical-tropical dry__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__105_Forest a€" Subtropical-tropical dry__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
5: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__106_Forest – Subtropical-tropical moist lowland__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__106_Forest a€" Subtropical-tropical moist lowland__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
6: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__107_Forest – Subtropical-tropical mangrove vegetation__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__107_Forest a€" Subtropical-tropical mangrove vegetation__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
7: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__108_Forest – Subtropical-tropical swamp__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__108_Forest a€" Subtropical-tropical swamp__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
8: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__109_Forest – Subtropical-tropical moist montane__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__109_Forest a€" Subtropical-tropical moist montane__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
9: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__301_Shrubland – Subarctic__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__301_Shrubland a€" Subarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
10: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__302_Shrubland – Subantarctic__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__302_Shrubland a€" Subantarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
11: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__303_Shrubland – Boreal__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__303_Shrubland a€" Boreal__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
12: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__304_Shrubland –Temperate__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__304_Shrubland a€"Temperate__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
13: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__305_Shrubland – Subtropical-tropical dry__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__305_Shrubland a€" Subtropical-tropical dry__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
14: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__306_Shrubland – Subtropical-tropical moist__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__306_Shrubland a€" Subtropical-tropical moist__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
15: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__307_Shrubland – Subtropical-tropical high altitude__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__307_Shrubland a€" Subtropical-tropical high altitude__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
16: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__308_Shrubland – Mediterranean-type__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__308_Shrubland a€" Mediterranean-type__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
17: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__401_Grassland – Tundra__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__401_Grassland a€" Tundra__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
18: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__402_Grassland – Subarctic__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__402_Grassland a€" Subarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
19: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__403_Grassland – Subantarctic__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__403_Grassland a€" Subantarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
20: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__404_Grassland – Temperate__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__404_Grassland a€" Temperate__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
21: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__405_Grassland – Subtropical-tropical dry__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__405_Grassland a€" Subtropical-tropical dry__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
22: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__406_Grassland – Subtropical-tropical seasonally wet-flooded__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__406_Grassland a€" Subtropical-tropical seasonally wet-flooded__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
23: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__407_Grassland – Subtropical-tropical high altitude__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__407_Grassland a€" Subtropical-tropical high altitude__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
24: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__501_Wetlands (inland) – Permanent rivers-streams-creeks__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__501_Wetlands (inland) a€" Permanent rivers-streams-creeks__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
25: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__502_Wetlands (inland) – Seasonal-intermittent-irregular rivers-streams-creeks__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__502_Wetlands (inland) a€" Seasonal-intermittent-irregular rivers-streams-creeks__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
26: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__503_Wetlands (inland) – Shrub dominated wetlands__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__503_Wetlands (inland) a€" Shrub dominated wetlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
27: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__504_Wetlands (inland) – Bogs, marshes, swamps, fens, peatlands__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__504_Wetlands (inland) a€" Bogs, marshes, swamps, fens, peatlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
28: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__505_Wetlands (inland) – Permanent freshwater lakes__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__505_Wetlands (inland) a€" Permanent freshwater lakes__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
29: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__506_Wetlands (inland) – Seasonal-intermittent freshwater lakes (over 8__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__506_Wetlands (inland) a€" Seasonal-intermittent freshwater lakes (over 8__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
30: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__507_Wetlands (inland) – Permanent freshwater marshes-pools (under 8__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__507_Wetlands (inland) a€" Permanent freshwater marshes-pools (under 8__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
31: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__508_Wetlands (inland) – Seasonal-intermittent freshwater marshes-pools (under 8__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__508_Wetlands (inland) a€" Seasonal-intermittent freshwater marshes-pools (under 8__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
32: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__509_Wetlands (inland) – Freshwater springs and oases__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__509_Wetlands (inland) a€" Freshwater springs and oases__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
33: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__510_Wetlands (inland) – Tundra wetlands__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__510_Wetlands (inland) a€" Tundra wetlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
34: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__511_Wetlands (inland) – Alpine wetlands__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__511_Wetlands (inland) a€" Alpine wetlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
35: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__512_Wetlands (inland) – Geothermal wetlands__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__512_Wetlands (inland) a€" Geothermal wetlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
36: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__513_Wetlands (inland) – Permanent inland deltas__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__513_Wetlands (inland) a€" Permanent inland deltas__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
37: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__514_Wetlands (inland) – Permanent saline, brackish or alkaline__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__514_Wetlands (inland) a€" Permanent saline, brackish or alkaline__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
38: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__515_Wetlands (inland) – Seasonal-intermittent saline, brackish or alkaline__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__515_Wetlands (inland) a€" Seasonal-intermittent saline, brackish or alkaline__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
39: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__516_Wetlands (inland) – Permanent saline, brackish or alkaline__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__516_Wetlands (inland) a€" Permanent saline, brackish or alkaline__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
40: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__517_Wetlands (inland) – Seasonal-intermittent saline, brackish or alkaline__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__517_Wetlands (inland) a€" Seasonal-intermittent saline, brackish or alkaline__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
41: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__801_Desert – Hot__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__801_Desert a€" Hot__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
42: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__802_Desert – Temperate__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__802_Desert a€" Temperate__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
43: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__803_Desert – Cold__ver002.tif' to 'C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__803_Desert a€" Cold__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
44: `C:\Users\ricsc\AppData\Local\Temp\Rtmp8wmAcf\file84302f2c1fe5/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest a€" Boreal__ver002.tif' does not exist in the file system, and is not recognized as a supported dataset name. (GDAL error 4)
Ah - looks like the issue is that the file paths are mxing "/"
and "\"
in the same path. I'll try and push a fix later today.
Paths are fixed now, but still getting errors and warnings:
Error: [rast] file does not exist: C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest a€" Boreal__ver002.tif
In addition: There were 44 warnings (use warnings() to see them)
x importing global habitat data [30.4s]
warnings()
Warning messages:
1: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest – Boreal__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest a€" Boreal__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
2: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__103_Forest – Subantarctic__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__103_Forest a€" Subantarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
3: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__104_Forest – Temperate__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__104_Forest a€" Temperate__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
4: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__105_Forest – Subtropical-tropical dry__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__105_Forest a€" Subtropical-tropical dry__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
5: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__106_Forest – Subtropical-tropical moist lowland__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__106_Forest a€" Subtropical-tropical moist lowland__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
6: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__107_Forest – Subtropical-tropical mangrove vegetation__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__107_Forest a€" Subtropical-tropical mangrove vegetation__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
7: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__108_Forest – Subtropical-tropical swamp__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__108_Forest a€" Subtropical-tropical swamp__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
8: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__109_Forest – Subtropical-tropical moist montane__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__109_Forest a€" Subtropical-tropical moist montane__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
9: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__301_Shrubland – Subarctic__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__301_Shrubland a€" Subarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
10: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__302_Shrubland – Subantarctic__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__302_Shrubland a€" Subantarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
11: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__303_Shrubland – Boreal__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__303_Shrubland a€" Boreal__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
12: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__304_Shrubland –Temperate__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__304_Shrubland a€"Temperate__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
13: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__305_Shrubland – Subtropical-tropical dry__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__305_Shrubland a€" Subtropical-tropical dry__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
14: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__306_Shrubland – Subtropical-tropical moist__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__306_Shrubland a€" Subtropical-tropical moist__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
15: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__307_Shrubland – Subtropical-tropical high altitude__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__307_Shrubland a€" Subtropical-tropical high altitude__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
16: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__308_Shrubland – Mediterranean-type__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__308_Shrubland a€" Mediterranean-type__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
17: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__401_Grassland – Tundra__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__401_Grassland a€" Tundra__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
18: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__402_Grassland – Subarctic__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__402_Grassland a€" Subarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
19: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__403_Grassland – Subantarctic__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__403_Grassland a€" Subantarctic__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
20: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__404_Grassland – Temperate__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__404_Grassland a€" Temperate__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
21: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__405_Grassland – Subtropical-tropical dry__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__405_Grassland a€" Subtropical-tropical dry__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
22: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__406_Grassland – Subtropical-tropical seasonally wet-flooded__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__406_Grassland a€" Subtropical-tropical seasonally wet-flooded__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
23: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__407_Grassland – Subtropical-tropical high altitude__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__407_Grassland a€" Subtropical-tropical high altitude__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
24: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__501_Wetlands (inland) – Permanent rivers-streams-creeks__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__501_Wetlands (inland) a€" Permanent rivers-streams-creeks__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
25: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__502_Wetlands (inland) – Seasonal-intermittent-irregular rivers-streams-creeks__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__502_Wetlands (inland) a€" Seasonal-intermittent-irregular rivers-streams-creeks__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
26: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__503_Wetlands (inland) – Shrub dominated wetlands__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__503_Wetlands (inland) a€" Shrub dominated wetlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
27: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__504_Wetlands (inland) – Bogs, marshes, swamps, fens, peatlands__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__504_Wetlands (inland) a€" Bogs, marshes, swamps, fens, peatlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
28: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__505_Wetlands (inland) – Permanent freshwater lakes__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__505_Wetlands (inland) a€" Permanent freshwater lakes__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
29: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__506_Wetlands (inland) – Seasonal-intermittent freshwater lakes (over 8__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__506_Wetlands (inland) a€" Seasonal-intermittent freshwater lakes (over 8__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
30: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__507_Wetlands (inland) – Permanent freshwater marshes-pools (under 8__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__507_Wetlands (inland) a€" Permanent freshwater marshes-pools (under 8__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
31: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__508_Wetlands (inland) – Seasonal-intermittent freshwater marshes-pools (under 8__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__508_Wetlands (inland) a€" Seasonal-intermittent freshwater marshes-pools (under 8__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
32: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__509_Wetlands (inland) – Freshwater springs and oases__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__509_Wetlands (inland) a€" Freshwater springs and oases__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
33: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__510_Wetlands (inland) – Tundra wetlands__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__510_Wetlands (inland) a€" Tundra wetlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
34: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__511_Wetlands (inland) – Alpine wetlands__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__511_Wetlands (inland) a€" Alpine wetlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
35: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__512_Wetlands (inland) – Geothermal wetlands__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__512_Wetlands (inland) a€" Geothermal wetlands__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
36: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__513_Wetlands (inland) – Permanent inland deltas__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__513_Wetlands (inland) a€" Permanent inland deltas__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
37: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__514_Wetlands (inland) – Permanent saline, brackish or alkaline__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__514_Wetlands (inland) a€" Permanent saline, brackish or alkaline__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
38: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__515_Wetlands (inland) – Seasonal-intermittent saline, brackish or alkaline__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__515_Wetlands (inland) a€" Seasonal-intermittent saline, brackish or alkaline__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
39: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__516_Wetlands (inland) – Permanent saline, brackish or alkaline__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__516_Wetlands (inland) a€" Permanent saline, brackish or alkaline__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
40: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__517_Wetlands (inland) – Seasonal-intermittent saline, brackish or alkaline__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__517_Wetlands (inland) a€" Seasonal-intermittent saline, brackish or alkaline__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
41: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__801_Desert – Hot__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__801_Desert a€" Hot__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
42: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__802_Desert – Temperate__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__802_Desert a€" Temperate__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
43: In file.rename(from = raw_layer_paths, layer_paths) :
cannot rename file 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__803_Desert – Cold__ver002.tif' to 'C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__803_Desert a€" Cold__ver002.tif', reason 'The filename, directory name, or volume label syntax is incorrect'
44: `C:/Users/richard/AppData/Local/Temp/RtmpQtzvL0/file29d072e23481/lvl2_frac_1km_ver002/iucn_habitatclassification_fraction_lvl2__101_Forest a€" Boreal__ver002.tif' does not exist in the file system, and is not recognized as a supported dataset name. (GDAL error 4)
Ah - hmm - not sure would could be causing the issue. I'll have a think about it and get back to you.
@ricschuster, I've just pushed some changes that I think should fix the issues on windows - could you please give it another go?
Thanks @jeffreyhanson !
I still haven't gotten an API key from IUCN (will try to request one again), which leads to an interesting result using the example data. I now get an error trying to run that:
Awesome! Yeah, it looks like you've gotten past the issues with importting the habitat data.
@jeffreyhanson how long did the IUCN API request take for you? I've requested it almost two weeks ago and still haven't heard back.
I don't remember sorry - I requested mine a few years ago. That said, 2 weeks seems like a long time - I don't remember it taking that long. Maybe it's worth trying to request it again (if possible)?
Also, I'm currently working on updating the package to use pre-processed versions of the habitat + elevation data to speed stuff up -- so the current version might have a few broken things. Can I let you know when it's ready to use?
Good to hear that its a one time things that works for a couple of years. I'm going to request it again.
(Thanks for the heads up)
I think it's working now! I managed to run it through all the amphibians (only 2 hours after downloading data and preliminary habitat + elevation data processing) - I'm trying mammals now.
@josephrbennett, I've added you to the repo now. If you download a copy of the repo and unzip it, you can view the doucmentation by going to the docs
folder and then double clicking index.html
to open it in your web browser. Let me know if you have any questions?
To download the repo, click on the "Code" button and then "Download ZIP" buttons:
@josephrbennett, just as a heads up, I've updated the documentation a bit from yesterday (mostly just adding a new tutotrial/vignette). I don't plan on making any further changes documentation. If you could take a look through it and let me know if you have any suggestions that would be really helpful?
@ricschuster, any updates on the API token?
Gotten the token today, which was great. Checking the package does throw errors in the testing though:
E Some test files failed
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
16. \-base:::h(simpleError(msg, call))
-- Error (test_simulate_spp_data.R:74:3): global elevation and habitat data ----
<assertError/simpleError/error/condition>
Error: length(path) not equal to 1
Backtrace:
x
1. \-aoh::simulate_spp_data(...) test_simulate_spp_data.R:74:2
2. \-aoh::get_global_habitat_data(...)
3. \-aoh:::get_prep_global_habitat_data(...)
4. \-aoh:::import_prep_habitat_data(record_dir)
5. \-assertthat::assert_that(length(path) == 1)
[ FAIL 9 | WARN 17 | SKIP 10 | PASS 281 ]
Error: Test failures
Execution halted
√ checking for unstated dependencies in vignettes ...
√ checking package vignettes in 'inst/doc' ...
√ checking re-building of vignette outputs (5.5s)
√ checking for non-standard things in the check directory
√ checking for detritus in the temp directory
See
'C:/Users/richard/AppData/Local/Temp/RtmpQf8nQv/aoh.Rcheck/00check.log'
for details.
-- R CMD check results --------------------------------------------------- aoh 0.0.0.99999 ----
Duration: 12m 34.6s
> checking examples ... ERROR
Running examples in 'aoh-Ex.R' failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: terra_combine
> ### Title: Combine
> ### Aliases: terra_combine
>
> ### ** Examples
>
> # create a raster
> x <- rast(
+ ncols = 10, nrows = 10,
+ xmin = 0, xmax = 10, ymin = 0, ymax = 10,
+ crs = "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +datum=WGS84"
+ )
> print(x)
class : SpatRaster
dimensions : 10, 10, 1 (nrow, ncol, nlyr)
resolution : 1, 1 (x, y)
extent : 0, 10, 0, 10 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=lcc +lat_0=0 +lon_0=-100 +lat_1=48 +lat_2=33 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs
>
> # create another raster
> y <- rast(
+ ncols = 5, nrows = 5,
+ xmin = 90, xmax = 95, ymin = 80, ymax = 85,
+ crs = "+proj=lcc +lat_1=48 +lat_2=33 +lon_0=-100 +datum=WGS84"
+ )
> print(y)
class : SpatRaster
dimensions : 5, 5, 1 (nrow, ncol, nlyr)
resolution : 1, 1 (x, y)
extent : 90, 95, 80, 85 (xmin, xmax, ymin, ymax)
coord. ref. : +proj=lcc +lat_0=0 +lon_0=-100 +lat_1=48 +lat_2=33 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs
>
> # combine them together
> z <- terra_combine(list(x, y))
Error: [names<-] incorrect number of names
Execution halted
> checking tests ...
See below...
> checking for unstated dependencies in examples ... OK
WARNING
'qpdf' is needed for checks on size reduction of PDFs
> checking package dependencies ... NOTE
Suggests orphaned package: 'ggmap'
> checking installed package size ... NOTE
installed size is 18.3Mb
sub-directories of 1Mb or more:
extdata 2.5Mb
testdata 14.6Mb
> checking top-level files ... NOTE
Non-standard file/directory found at top level:
'temp'
-- Test failures ---------------------------------------------------------------- testthat ----
> # load packages
> library(testthat)
> library(aoh)
Loading required package: sf
Linking to GEOS 3.9.1, GDAL 3.2.1, PROJ 7.2.1
Loading required package: terra
terra version 1.4.14
Attaching package: 'terra'
The following object is masked from 'package:testthat':
describe
>
> # enable parallel testing
> Sys.unsetenv("R_TESTS")
>
> # run tests
> test_check("aoh")
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `PROJCRS["World_Behrmann",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["Lambert Cylindrical Equal Area",METHOD["Lambert Cylindrical Equal Area",ID["EPSG",9835]],PARAMETER["Latitude of 1st standard parallel",30,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `PROJCRS["World_Behrmann",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["Lambert Cylindrical Equal Area",METHOD["Lambert Cylindrical Equal Area",ID["EPSG",9835]],PARAMETER["Latitude of 1st standard parallel",30,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `PROJCRS["World_Behrmann",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["Lambert Cylindrical Equal Area",METHOD["Lambert Cylindrical Equal Area",ID["EPSG",9835]],PARAMETER["Latitude of 1st standard parallel",30,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
Error in x$.self$finalize() : attempt to apply non-function
Error in x$.self$finalize() : attempt to apply non-function
Error in x$.self$finalize() : attempt to apply non-function
Error in x$.self$finalize() : attempt to apply non-function
Error in x$.self$finalize() : attempt to apply non-function
Error in x$.self$finalize() : attempt to apply non-function
Error in x$.self$finalize() : attempt to apply non-function
Error in x$.self$finalize() : attempt to apply non-function
Error in x$.self$finalize() : attempt to apply non-function
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `PROJCRS["World_Behrmann",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["Lambert Cylindrical Equal Area",METHOD["Lambert Cylindrical Equal Area",ID["EPSG",9835]],PARAMETER["Latitude of 1st standard parallel",30,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
|======================================================================| 100%
|======================================================================| 100%
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `PROJCRS["World_Behrmann",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["Lambert Cylindrical Equal Area",METHOD["Lambert Cylindrical Equal Area",ID["EPSG",9835]],PARAMETER["Latitude of 1st standard parallel",30,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `PROJCRS["World_Behrmann",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["Lambert Cylindrical Equal Area",METHOD["Lambert Cylindrical Equal Area",ID["EPSG",9835]],PARAMETER["Latitude of 1st standard parallel",30,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `PROJCRS["World_Behrmann",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["Lambert Cylindrical Equal Area",METHOD["Lambert Cylindrical Equal Area",ID["EPSG",9835]],PARAMETER["Latitude of 1st standard parallel",30,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]'
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 1: PROJ: proj_create_operations: SQLite error on SELECT name, coordinate_system_auth_name, coordinate_system_code, geodetic_crs_auth_name, geodetic_crs_code, conversion_auth_name, conversion_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM projected_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
ERROR 6: Cannot find coordinate operations from `GEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],CS[ellipsoidal,2],AXIS["geodetic latitude (Lat)",north,ORDER[1],ANGLEUNIT["degree",0.0174532925199433]],AXIS["geodetic longitude (Lon)",east,ORDER[2],ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]]' to `PROJCRS["World_Behrmann",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["Lambert Cylindrical Equal Area",METHOD["Lambert Cylindrical Equal Area",ID["EPSG",9835]],PARAMETER["Latitude of 1st standard parallel",30,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8823]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["False easting",0,LENGTHUNIT["metre",1],ID["EPSG",8806]],PARAMETER["False northing",0,LENGTHUNIT["metre",1],ID["EPSG",8807]]],CS[Cartesian,2],AXIS["easting",east,ORDER[1],LENGTHUNIT["metre",1,ID["EPSG",9001]]],AXIS["northing",north,ORDER[2],LENGTHUNIT["metre",1,ID["EPSG",9001]]]]'
== Skipped tests ===============================================================
* On Windows (1)
* On local (3)
* On local and slow internet (6)
== Warnings ====================================================================
-- Warning (test_create_spp_aoh_data.R:25:3): simulated data -------------------
running command '"C:\OSGeo4W64\bin\gdalwarp.exe" -q -overwrite -te -916531 4303769 320469 5069769 -te_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c59f22363.wkt" -tr 1000 1000 -s_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c55165f94.wkt" -t_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c59f22363.wkt" -r "bilinear" -of "GTiff" -wo "NUM_THREADS=1" -co "COMPRESS=LZW" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c3f6e289.tif" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c7e1155be\file403c3aed4966.tif"' had status 1
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:25:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
11. base::system(cmd, intern = TRUE)
-- Warning (test_create_spp_aoh_data.R:25:3): simulated data -------------------
C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c7e1155be\file403c3aed4966.tif: No such file or directory (GDAL error 4)
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:25:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
10. terra::rast(filename)
11. terra:::.local(x, ...)
12. SpatRaster$new(f, subds - 1, "", FALSE, opts, 0[])
13. methods::new(def, ...)
15. methods::initialize(value, ...)
16. .Object$initialize(...)
17. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
18. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
-- Warning (test_create_spp_aoh_data.R:95:3): some species missing habitat data --
running command '"C:\OSGeo4W64\bin\gdalwarp.exe" -q -overwrite -te -916531 4303769 320469 5069769 -te_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c43397f89.wkt" -tr 1000 1000 -s_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c65c365c.wkt" -t_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c43397f89.wkt" -r "bilinear" -of "GTiff" -wo "NUM_THREADS=1" -co "COMPRESS=LZW" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c22a32e3a.tif" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c3a4e24f7\file403c664b222f.tif"' had status 1
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:95:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
11. base::system(cmd, intern = TRUE)
-- Warning (test_create_spp_aoh_data.R:95:3): some species missing habitat data --
C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c3a4e24f7\file403c664b222f.tif: No such file or directory (GDAL error 4)
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:95:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
10. terra::rast(filename)
11. terra:::.local(x, ...)
12. SpatRaster$new(f, subds - 1, "", FALSE, opts, 0[])
13. methods::new(def, ...)
15. methods::initialize(value, ...)
16. .Object$initialize(...)
17. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
18. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
-- Warning (test_create_spp_aoh_data.R:168:3): species with reversed elevation limits --
running command '"C:\OSGeo4W64\bin\gdalwarp.exe" -q -overwrite -te -916531 4303769 320469 5069769 -te_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c672d7b3b.wkt" -tr 1000 1000 -s_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403cee3801.wkt" -t_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c672d7b3b.wkt" -r "bilinear" -of "GTiff" -wo "NUM_THREADS=1" -co "COMPRESS=LZW" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c53857cb.tif" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c11e81248\file403c6938c01.tif"' had status 1
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:168:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
11. base::system(cmd, intern = TRUE)
-- Warning (test_create_spp_aoh_data.R:168:3): species with reversed elevation limits --
C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c11e81248\file403c6938c01.tif: No such file or directory (GDAL error 4)
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:168:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
10. terra::rast(filename)
11. terra:::.local(x, ...)
12. SpatRaster$new(f, subds - 1, "", FALSE, opts, 0[])
13. methods::new(def, ...)
15. methods::initialize(value, ...)
16. .Object$initialize(...)
17. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
18. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
-- Warning (test_create_spp_aoh_data.R:241:3): GDAL processing -----------------
running command '"C:\OSGeo4W64\bin\gdalwarp.exe" -q -overwrite -te -916531 4303769 320469 5069769 -te_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c6ada6263.wkt" -tr 1000 1000 -s_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c479160f3.wkt" -t_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c6ada6263.wkt" -r "bilinear" -of "GTiff" -wo "NUM_THREADS=1" -co "COMPRESS=LZW" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c66274426.tif" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c11de49cd\file403c6a8f1e4c.tif"' had status 1
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:241:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
11. base::system(cmd, intern = TRUE)
-- Warning (test_create_spp_aoh_data.R:241:3): GDAL processing -----------------
C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c11de49cd\file403c6a8f1e4c.tif: No such file or directory (GDAL error 4)
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:241:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
10. terra::rast(filename)
11. terra:::.local(x, ...)
12. SpatRaster$new(f, subds - 1, "", FALSE, opts, 0[])
13. methods::new(def, ...)
15. methods::initialize(value, ...)
16. .Object$initialize(...)
17. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
18. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
-- Warning (test_create_spp_aoh_data.R:326:3): PSOCK parallel processing -------
running command '"C:\OSGeo4W64\bin\gdalwarp.exe" -q -overwrite -te -916531 4303769 320469 5069769 -te_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c70e422b5.wkt" -tr 1000 1000 -s_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c51b66712.wkt" -t_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c70e422b5.wkt" -r "bilinear" -of "GTiff" -wo "NUM_THREADS=1" -co "COMPRESS=LZW" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c71fa312c.tif" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c20c1a76\file403c43db94b.tif"' had status 1
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:326:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
11. base::system(cmd, intern = TRUE)
-- Warning (test_create_spp_aoh_data.R:326:3): PSOCK parallel processing -------
C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c20c1a76\file403c43db94b.tif: No such file or directory (GDAL error 4)
Backtrace:
1. aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:326:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
10. terra::rast(filename)
11. terra:::.local(x, ...)
12. SpatRaster$new(f, subds - 1, "", FALSE, opts, 0[])
13. methods::new(def, ...)
15. methods::initialize(value, ...)
16. .Object$initialize(...)
17. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
18. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
-- Warning (test_plot_spp_aoh_data.R:23:3): no base map ------------------------
running command '"C:\OSGeo4W64\bin\gdalwarp.exe" -q -overwrite -te -916531 4303769 320469 5042769 -te_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c7a2e3e55.wkt" -tr 1000 1000 -s_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c6cdc638e.wkt" -t_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c7a2e3e55.wkt" -r "bilinear" -of "GTiff" -wo "NUM_THREADS=1" -co "COMPRESS=LZW" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c2dca70c9.tif" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c2666337d\file403c2c56387f.tif"' had status 1
Backtrace:
1. aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:23:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
11. base::system(cmd, intern = TRUE)
-- Warning (test_plot_spp_aoh_data.R:23:3): no base map ------------------------
C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c2666337d\file403c2c56387f.tif: No such file or directory (GDAL error 4)
Backtrace:
1. aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:23:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
10. terra::rast(filename)
11. terra:::.local(x, ...)
12. SpatRaster$new(f, subds - 1, "", FALSE, opts, 0[])
13. methods::new(def, ...)
15. methods::initialize(value, ...)
16. .Object$initialize(...)
17. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
18. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
-- Warning (test_plot_spp_aoh_data.R:60:3): base map ---------------------------
running command '"C:\OSGeo4W64\bin\gdalwarp.exe" -q -overwrite -te -916531 4303769 320469 5042769 -te_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c2b5849e0.wkt" -tr 1000 1000 -s_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403cf32d59.wkt" -t_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c2b5849e0.wkt" -r "bilinear" -of "GTiff" -wo "NUM_THREADS=1" -co "COMPRESS=LZW" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c28b910a8.tif" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c3fddc81\file403c962ff5.tif"' had status 1
Backtrace:
1. aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:60:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
11. base::system(cmd, intern = TRUE)
-- Warning (test_plot_spp_aoh_data.R:60:3): base map ---------------------------
C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c3fddc81\file403c962ff5.tif: No such file or directory (GDAL error 4)
Backtrace:
1. aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:60:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
10. terra::rast(filename)
11. terra:::.local(x, ...)
12. SpatRaster$new(f, subds - 1, "", FALSE, opts, 0[])
13. methods::new(def, ...)
15. methods::initialize(value, ...)
16. .Object$initialize(...)
17. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
18. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
-- Warning (test_plot_spp_aoh_data.R:96:3): customized -------------------------
running command '"C:\OSGeo4W64\bin\gdalwarp.exe" -q -overwrite -te -916531 4303769 320469 5042769 -te_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c4999166f.wkt" -tr 1000 1000 -s_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c435b46d2.wkt" -t_srs "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c4999166f.wkt" -r "bilinear" -of "GTiff" -wo "NUM_THREADS=1" -co "COMPRESS=LZW" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c20f2465f.tif" "C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c6e577be3\file403c1383685b.tif"' had status 1
Backtrace:
1. aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:96:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
11. base::system(cmd, intern = TRUE)
-- Warning (test_plot_spp_aoh_data.R:96:3): customized -------------------------
C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c6e577be3\file403c1383685b.tif: No such file or directory (GDAL error 4)
Backtrace:
1. aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:96:2
2. aoh:::project_habitat_data(...)
4. plyr::llply(...)
6. base::lapply(pieces, .fun, ...)
7. aoh:::FUN(X[[i]], ...)
8. aoh::terra_gdal_project(...)
10. terra::rast(filename)
11. terra:::.local(x, ...)
12. SpatRaster$new(f, subds - 1, "", FALSE, opts, 0[])
13. methods::new(def, ...)
15. methods::initialize(value, ...)
16. .Object$initialize(...)
17. Rcpp::cpp_object_initializer(.self, .refClassDef, ...)
18. Rcpp:::new_CppObject_xp(fields$.module, fields$.pointer, ...)
-- Warning (test_simulate_spp_data.R:74:3): global elevation and habitat data --
file(s) 10-5281_zenodo-3816946.zip not found in repo prioritizr/aoh
Backtrace:
1. aoh::simulate_spp_data(...) test_simulate_spp_data.R:74:2
2. aoh::get_global_habitat_data(...)
3. aoh:::get_prep_global_habitat_data(...)
4. aoh:::download_prep_habitat_data(...)
5. piggyback::pb_download(...)
== Failed tests ================================================================
-- Error (test_create_spp_aoh_data.R:25:3): simulated data ---------------------
Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': [rast] cannot open file: C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c7e1155be\file403c3aed4966.tif
Backtrace:
x
1. +-aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:25:2
2. | \-aoh:::project_habitat_data(...)
3. | +-terra::rast(...)
4. | \-plyr::llply(...)
5. | +-base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
6. | \-base::lapply(pieces, .fun, ...)
7. | \-aoh:::FUN(X[[i]], ...)
8. | \-aoh::terra_gdal_project(...)
9. | +-terra::rast(filename)
10. | \-terra::rast(filename)
11. | \-terra:::.local(x, ...)
12. | \-terra:::messages(r, "rast")
13. | \-terra:::error(f, x@ptr$getError())
14. | \-base::stop("[", f, "] ", emsg, ..., call. = FALSE)
15. \-base::.handleSimpleError(...)
16. \-base:::h(simpleError(msg, call))
-- Error (test_create_spp_aoh_data.R:95:3): some species missing habitat data --
Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': [rast] cannot open file: C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c3a4e24f7\file403c664b222f.tif
Backtrace:
x
1. +-aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:95:2
2. | \-aoh:::project_habitat_data(...)
3. | +-terra::rast(...)
4. | \-plyr::llply(...)
5. | +-base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
6. | \-base::lapply(pieces, .fun, ...)
7. | \-aoh:::FUN(X[[i]], ...)
8. | \-aoh::terra_gdal_project(...)
9. | +-terra::rast(filename)
10. | \-terra::rast(filename)
11. | \-terra:::.local(x, ...)
12. | \-terra:::messages(r, "rast")
13. | \-terra:::error(f, x@ptr$getError())
14. | \-base::stop("[", f, "] ", emsg, ..., call. = FALSE)
15. \-base::.handleSimpleError(...)
16. \-base:::h(simpleError(msg, call))
-- Error (test_create_spp_aoh_data.R:168:3): species with reversed elevation limits --
Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': [rast] cannot open file: C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c11e81248\file403c6938c01.tif
Backtrace:
x
1. +-aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:168:2
2. | \-aoh:::project_habitat_data(...)
3. | +-terra::rast(...)
4. | \-plyr::llply(...)
5. | +-base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
6. | \-base::lapply(pieces, .fun, ...)
7. | \-aoh:::FUN(X[[i]], ...)
8. | \-aoh::terra_gdal_project(...)
9. | +-terra::rast(filename)
10. | \-terra::rast(filename)
11. | \-terra:::.local(x, ...)
12. | \-terra:::messages(r, "rast")
13. | \-terra:::error(f, x@ptr$getError())
14. | \-base::stop("[", f, "] ", emsg, ..., call. = FALSE)
15. \-base::.handleSimpleError(...)
16. \-base:::h(simpleError(msg, call))
-- Error (test_create_spp_aoh_data.R:241:3): GDAL processing -------------------
Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': [rast] cannot open file: C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c11de49cd\file403c6a8f1e4c.tif
Backtrace:
x
1. +-aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:241:2
2. | \-aoh:::project_habitat_data(...)
3. | +-terra::rast(...)
4. | \-plyr::llply(...)
5. | +-base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
6. | \-base::lapply(pieces, .fun, ...)
7. | \-aoh:::FUN(X[[i]], ...)
8. | \-aoh::terra_gdal_project(...)
9. | +-terra::rast(filename)
10. | \-terra::rast(filename)
11. | \-terra:::.local(x, ...)
12. | \-terra:::messages(r, "rast")
13. | \-terra:::error(f, x@ptr$getError())
14. | \-base::stop("[", f, "] ", emsg, ..., call. = FALSE)
15. \-base::.handleSimpleError(...)
16. \-base:::h(simpleError(msg, call))
-- Error (test_create_spp_aoh_data.R:326:3): PSOCK parallel processing ---------
Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': [rast] cannot open file: C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c20c1a76\file403c43db94b.tif
Backtrace:
x
1. +-aoh::create_spp_aoh_data(...) test_create_spp_aoh_data.R:326:2
2. | \-aoh:::project_habitat_data(...)
3. | +-terra::rast(...)
4. | \-plyr::llply(...)
5. | +-base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
6. | \-base::lapply(pieces, .fun, ...)
7. | \-aoh:::FUN(X[[i]], ...)
8. | \-aoh::terra_gdal_project(...)
9. | +-terra::rast(filename)
10. | \-terra::rast(filename)
11. | \-terra:::.local(x, ...)
12. | \-terra:::messages(r, "rast")
13. | \-terra:::error(f, x@ptr$getError())
14. | \-base::stop("[", f, "] ", emsg, ..., call. = FALSE)
15. \-base::.handleSimpleError(...)
16. \-base:::h(simpleError(msg, call))
-- Error (test_plot_spp_aoh_data.R:23:3): no base map --------------------------
Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': [rast] cannot open file: C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c2666337d\file403c2c56387f.tif
Backtrace:
x
1. +-aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:23:2
2. | \-aoh:::project_habitat_data(...)
3. | +-terra::rast(...)
4. | \-plyr::llply(...)
5. | +-base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
6. | \-base::lapply(pieces, .fun, ...)
7. | \-aoh:::FUN(X[[i]], ...)
8. | \-aoh::terra_gdal_project(...)
9. | +-terra::rast(filename)
10. | \-terra::rast(filename)
11. | \-terra:::.local(x, ...)
12. | \-terra:::messages(r, "rast")
13. | \-terra:::error(f, x@ptr$getError())
14. | \-base::stop("[", f, "] ", emsg, ..., call. = FALSE)
15. \-base::.handleSimpleError(...)
16. \-base:::h(simpleError(msg, call))
-- Error (test_plot_spp_aoh_data.R:60:3): base map -----------------------------
Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': [rast] cannot open file: C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c3fddc81\file403c962ff5.tif
Backtrace:
x
1. +-aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:60:2
2. | \-aoh:::project_habitat_data(...)
3. | +-terra::rast(...)
4. | \-plyr::llply(...)
5. | +-base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
6. | \-base::lapply(pieces, .fun, ...)
7. | \-aoh:::FUN(X[[i]], ...)
8. | \-aoh::terra_gdal_project(...)
9. | +-terra::rast(filename)
10. | \-terra::rast(filename)
11. | \-terra:::.local(x, ...)
12. | \-terra:::messages(r, "rast")
13. | \-terra:::error(f, x@ptr$getError())
14. | \-base::stop("[", f, "] ", emsg, ..., call. = FALSE)
15. \-base::.handleSimpleError(...)
16. \-base:::h(simpleError(msg, call))
-- Error (test_plot_spp_aoh_data.R:96:3): customized ---------------------------
Error in `h(simpleError(msg, call))`: error in evaluating the argument 'x' in selecting a method for function 'rast': [rast] cannot open file: C:\Users\richard\AppData\Local\Temp\RtmpYtJIqf/working_dir\RtmpoVBe6z\file403c6e577be3\file403c1383685b.tif
Backtrace:
x
1. +-aoh::create_spp_aoh_data(...) test_plot_spp_aoh_data.R:96:2
2. | \-aoh:::project_habitat_data(...)
3. | +-terra::rast(...)
4. | \-plyr::llply(...)
5. | +-base::structure(lapply(pieces, .fun, ...), dim = dim(pieces))
6. | \-base::lapply(pieces, .fun, ...)
7. | \-aoh:::FUN(X[[i]], ...)
8. | \-aoh::terra_gdal_project(...)
9. | +-terra::rast(filename)
10. | \-terra::rast(filename)
11. | \-terra:::.local(x, ...)
12. | \-terra:::messages(r, "rast")
13. | \-terra:::error(f, x@ptr$getError())
14. | \-base::stop("[", f, "] ", emsg, ..., call. = FALSE)
15. \-base::.handleSimpleError(...)
16. \-base:::h(simpleError(msg, call))
-- Error (test_simulate_spp_data.R:74:3): global elevation and habitat data ----
<assertError/simpleError/error/condition>
Error: length(path) not equal to 1
Backtrace:
x
1. \-aoh::simulate_spp_data(...) test_simulate_spp_data.R:74:2
2. \-aoh::get_global_habitat_data(...)
3. \-aoh:::get_prep_global_habitat_data(...)
4. \-aoh:::import_prep_habitat_data(record_dir)
5. \-assertthat::assert_that(length(path) == 1)
[ FAIL 9 | WARN 17 | SKIP 10 | PASS 281 ]
Error: Test failures
Execution halted
Running the example code from the readme also generates an error for me (which is why I ran the check using the latest commit)
Thanks for the heads up - I'll look into it. If you're not using the dev version of terra, could you please install it and see if that fixes it?
Ah - looking at the error messages it seems that file paths are once again an issue (i.e. containing both "/
and "\"
slashes).
Good old Windows!
Also, just FYI, if you see this error message:
Error in value[[3L]](cond) :
Cannot access release data for repository prioritizr/aoh. Check that you have provided a .token and that at least one release on your GitHub repository page.
This means that you need to create a Personal Access Token for Github, and add it to your .Renviron file (see here for instructions: https://docs.ropensci.org/piggyback/articles/intro.html#authentication-1). This authentication stuff is only needed because the repo is still private -- once it's public users won't need to do this.
@ricschuster, just looking through the error messages you posted, I haven't seen this one before and can't reproduce it on my Windows computer:
ERROR 1: PROJ: proj_create_from_database: SQLite error on SELECT name, type, coordinate_system_auth_name, coordinate_system_code, datum_auth_name, datum_code, area_of_use_auth_name, area_of_use_code, text_definition, deprecated FROM geodetic_crs WHERE auth_name = ? AND code = ?: no such column: area_of_use_auth_name
Could you please try re-installing sf or check which version of GDAL is installed (i.e. via gdalinfo --version
in the command prompt)?
@ricschuster, I've got it working on my Windows computer - could you please try it again?
I'm still getting the PROJ error.
I've re-installed sf and here my GDAL version:
gdalinfo --version
GDAL 3.1.4, released 2020/10/20
Do I need a newer one?
Just updated gdal to 3.3.3 and now the checks work. Is the example from the readme working for you on Windows?
When I try to run the example code, I still get an error:
spp_aoh_data <- create_spp_aoh_data(
+ spp_range_data, output_dir = output_dir, cache_dir = cache_dir
+ )
Loading required namespace: gdalUtils
√ initializing [643ms]
√ importing global elevation data [37ms]
√ importing global habitat data [15.9s]
√ importing species summary data [851ms]
√ importing species habitat data [294ms]
√ cleaning species range data [308ms]
! argument to "habitat_data" is missing layers for the following 2 habitat classification codes: "7.1", "7.2"
√ collating species data [152ms]
√ preliminary geoprocessing [277ms]
√ preparing habitat data [829ms]
√ preparing elevation data [21.2s]
Error in x$.self$finalize() : attempt to apply non-function
17.
(function (x)
x$.self$finalize())(<environment>)
16.
environment(fdef)
15.
get(".MTable", envir = environment(fdef))
14.
.findInheritedMethods(classes, fdef, mtable)
13.
(function (classes, fdef, mtable)
{
methods <- .findInheritedMethods(classes, fdef, mtable)
if (length(methods) == 1L) ...
12.
writeValues(out, r, b$row[i], b$nrows[i])
11.
.local(x, ...)
10.
terra::app(x = curr_spp_habitat_data, function(x) x/(1000 * terra::nlyr(habitat_data2)))
9.
terra::app(x = curr_spp_habitat_data, function(x) x/(1000 * terra::nlyr(habitat_data2))) at process_spp_aoh_data_on_local.R#261
8.
FUN(X[[i]], ...)
7.
lapply(pieces, .fun, ...)
6.
structure(lapply(pieces, .fun, ...), dim = dim(pieces))
5.
plyr::llply(.data = idx, .parallel = isTRUE(parallel_n_threads >
1), .fun = function(i) {
if (identical(parallel_cluster, "FORK") && isTRUE(parallel_n_threads >
1)) { ...
4.
withCallingHandlers(expr, warning = function(w) if (inherits(w,
classes)) tryInvokeRestart("muffleWarning"))
3.
suppressWarnings(plyr::llply(.data = idx, .parallel = isTRUE(parallel_n_threads >
1), .fun = function(i) {
if (identical(parallel_cluster, "FORK") && isTRUE(parallel_n_threads >
1)) { ... at process_spp_aoh_data_on_local.R#187
2.
process_spp_aoh_data_on_local(x = x, habitat_data = habitat_data,
elevation_data = elevation_data, cache_dir = cache_dir, force = force,
parallel_n_threads = parallel_n_threads, parallel_cluster = parallel_cluster,
verbose = verbose, datatype = "INT2U") at create_spp_aoh_data.R#739
1.
create_spp_aoh_data(spp_range_data, output_dir = output_dir,
cache_dir = cache_dir)
Ah - that's strange. Sorry, I'll look into this and get back to you.
The error for the importing global elevation data
or right after still persists, but I've tried the rest of the code in the readme and that works and I can produce the example maps.
Not sure what's going on with the error, but its very encouraging that this is working and I will play around with the package some more.
At first glance this looks awesome and super useful!
Thanks so much!
Just to clarify, is this the error you see after importing global elevation data?
Error in x$.self$finalize() : attempt to apply non-function
If so, the code should continue running after that and still produce the AOH maps. It sounds like that's happening - but I just wanted to double check that's correct? Or does it stop evaluating the code and not produce AOH maps? I've included some details in the FAQ section of the vignette that tries to explain what this error means - let me know what you think?
Also, just FYI, I'm updating the package to use pre-processed habitat + elevation data at the 1km resolution so that users won't need to waste time reprojecting data if they're happy with World Behrmann. So, at some point in the future, you'll want to clear out your cache directory so that the aoh package uses the correct version of the pre-processed data (I plan on updating it in a couple of days) - but I'll let you know when to do that.
@josephrbennett, I've added you to the repo now. If you download a copy of the repo and unzip it, you can view the doucmentation by going to the
docs
folder and then double clickingindex.html
to open it in your web browser. Let me know if you have any questions?To download the repo, click on the "Code" button and then "Download ZIP" buttons:
Sorry, getting used to this. Hopefully I used a convenient way to suggest edits.
@josephrbennett, just as a heads up, I've updated the documentation a bit from yesterday (mostly just adding a new tutotrial/vignette). I don't plan on making any further changes documentation. If you could take a look through it and let me know if you have any suggestions that would be really helpful?
@ricschuster, any updates on the API token?
I edited a bunch of small things in both readme and vignette. They both look great to me. Just small stuff. I used pull requests (hopefully that wasn't stupid).
No worries at all! Thanks so much for submitting these as PRs - that's extremely helpful! I'll merge the PRs and then rerun the code to update the website files with those changes.
Also, I'll add you as an author of the package too Joe?
@ricschuster, this is the package I've been working on to create the global AOH data (1 x 1 km resolution). I haven't tested it with bird data yet (it will definitely need updating to handle BOTW in gdb format). If you get a chance to check it out, it would great to see what you think? Also, I also need to run this by a few people before/if we make it public.