Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raster.kendall function in spatialEco package #43

Closed
Kafash68 opened this issue May 30, 2022 · 3 comments
Closed

raster.kendall function in spatialEco package #43

Kafash68 opened this issue May 30, 2022 · 3 comments

Comments

@Kafash68
Copy link

I have 6 climate layer and stack them as a file. when I run "raster.kendall" function, I get an Error:
"Error in raster.kendall(x, p.value = TRUE, z.value = TRUE, intercept = TRUE, :
please install EnvStats package before running this function"

When I install "EnvStat" package, and run again "raster. kendall" function, I get another error:
"Error in (function (y, x = seq(along = y), alternative = "two.sided", : When ci.slope=TRUE, there must be at least 3 non-missing, finite observations"

@jeffreyevans
Copy link
Owner

jeffreyevans commented May 31, 2022 via email

@jeffreyevans
Copy link
Owner

I am closing this ticket as it is related to too few observations and missing data in your timeseries, which are not allowed.

@ryanreisinger
Copy link

I have the same error, because I am computing sea surface temperature trend over a stack where on-land values are all NaN. I feel that the behaviour in this case (all NaN values in a pixel/cell) should be to return NA for that calculation, rather than fail with an error. If you disagree, how would you treat this in my example?
Thanks,
Ryan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants