Skip to content

Commit 16b30ad

Browse files
committed
version update
1 parent 7bcfe23 commit 16b30ad

File tree

8 files changed

+78
-10
lines changed

8 files changed

+78
-10
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: spatialEco
22
Type: Package
33
Title: Spatial Analysis and Modelling Utilities
4-
Version: 2.0-3
4+
Version: 2.0-4
55
Date: 2025-09-29
66
Authors@R: c(
77
person(family="Evans", given="Jeffrey S.", email = "jeffrey_evans@tnc.org",
@@ -54,4 +54,4 @@ NeedsCompilation: no
5454
Repository: CRAN
5555
LazyData: true
5656
Encoding: UTF-8
57-
RoxygenNote: 7.3.2
57+
RoxygenNote: 7.3.3

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,5 @@ export(tri)
137137
export(vrm)
138138
export(winsorize)
139139
export(wt.centroid)
140+
export(z_normalization)
140141
import(terra)

R/elev-data.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@
1818
#' \item{proj4string}{+proj=longlat +ellps=WGS84}
1919
#' }
2020
#'
21-
#' @source \url{http://www.diva-gis.org/Data}
21+
#' @source \url{https://diva-gis.org/data.html}
2222
NULL

R/raster.kendall.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,17 @@ raster.kendall <- function(x, intercept = TRUE, p.value = TRUE,
6969
stop("please install zyp package before running this function")
7070
if (!inherits(x, "SpatRaster"))
7171
stop(deparse(substitute(x)), " must be a terra SpatRaster object")
72+
if(terra::nlyr(x) > 150)
73+
warning("The Kendall Tau can become numerically unstable with large numbers of observations")
7274
if(min.obs < 6)
7375
warning("Setting the time-series threshold (n) to fewer than 6 obs may invalidate
7476
the statistic and <= 4 will result in NA's")
7577
if( terra::nlyr(x) < min.obs)
7678
stop("Too few layers to calculate a trend")
7779
idx <- which(c(TRUE, tau, intercept, p.value, rep(confidence,2)))
7880
out.names <- c("slope", "tau", "intercept", "p-value", "limits.LCL", "limits.UCL")[idx]
79-
trend.slope <- function(y, metrics=idx, m=method[1]) {
80-
kendall(y, method = m, threshold = min.obs)[metrics]
81+
trend.slope <- function(y, metrics=idx, method=method[1]) {
82+
kendall(y)[metrics]
8183
}
8284
k <- terra::app(x, fun=trend.slope, ...)
8385
names(k) <- out.names

man/elev.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/raster.gaussian.smooth.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/sf.kde.Rd

Lines changed: 7 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/z_normalization.Rd

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)