[英]R terra package warp function missing
I want to use warp
function from terra
package, but it seems the function is not available in my terra library.我想使用来自
terra
package 的warp
function,但似乎 function 在我的 terra 库中不可用。 Is this a bug?这是一个错误吗? Or could it relate to system gdal installation?
或者它可能与系统 gdal 安装有关? I have not installed gdal outside R.
我没有在R外安装gdal。
Edit: After more workaround I guess function terra::warp
was in newer version renamed to terra::resample
.编辑:经过更多解决方法后,我猜 function
terra::warp
在较新的版本中重命名为terra::resample
。 So, there is maybe just inconsistency in help.因此,可能只是帮助不一致。
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=Czech_Czechia.1250 LC_CTYPE=Czech_Czechia.1250 LC_MONETARY=Czech_Czechia.1250
[4] LC_NUMERIC=C LC_TIME=Czech_Czechia.1250
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] terra_0.8-8 rgdal_1.5-16 landmap_0.0.3 raster_3.3-13 sp_1.4-2
loaded via a namespace (and not attached):
[1] compiler_4.0.2 tools_4.0.2 yaml_2.2.1 Rcpp_1.0.5 codetools_0.2-16 grid_4.0.2
[7] lattice_0.20-41
Instead of a single warp
method, terra has resample
and project
. terra 有
resample
和project
,而不是单一的warp
方法。 With resample
primarily to transform raster data to another resolution. resample
主要用于将栅格数据转换为另一种分辨率。 This is for cases where this cannot be done with (dis)-aggregate --- which would otherwise be preferred.这是针对无法使用 (dis)-aggregate --- 否则会更受欢迎的情况。 And with
project
primarily for transforming the data to another coordinate reference system.与
project
主要用于将数据转换到另一个坐标参考系统。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.