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

Using simulation with krigeTg #142

Open
wschwanghart opened this issue Jul 16, 2024 · 1 comment
Open

Using simulation with krigeTg #142

wschwanghart opened this issue Jul 16, 2024 · 1 comment
Labels

Comments

@wschwanghart
Copy link

I just tried to run a simulation using krigeTg. I called the function like this:

k <- krigeTg(As ~ 1, locations = dfs, newdata = newdata, model = vmf, 
             nmax = 30, nsim = 100, lambda = 0)

where dfs is a sf-object, and newdata is a stars object. The function returned following error

Error in OK@data : 
  no applicable method for `@` applied to an object of class "stars"

Best regards,
Wolfgang

@edzer
Copy link
Member

edzer commented Jul 16, 2024

This implies that sf and/or stars are not yet supported there; use (for now) as(..., "Spatial") before, and st_as_sf() or st_as_stars() afterwards.

@edzer edzer added the bug label Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants