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

Inherited method error for rsat_smoothing_images #6

Open
Bartesto opened this issue Dec 9, 2021 · 2 comments
Open

Inherited method error for rsat_smoothing_images #6

Bartesto opened this issue Dec 9, 2021 · 2 comments

Comments

@Bartesto
Copy link

Bartesto commented Dec 9, 2021

Hi,

I'm getting the following error when trying to run rsat_smoothing_images() in the last vignette.

Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘rsat_smoothing_images’ for signature ‘"RasterBrick", "character"’

Cheers
Bart

@unai-perez
Copy link
Member

Dear @Bartesto ,
the rsat_smoothing_images function only accepts rtoi (from rsat) or SpatRaster (from terra) objects. If you are using a RasterBrick you can simply induce the data using rast(your_RasterBrick).
Try it and let me know.
Regards,
Unai

@Bartesto
Copy link
Author

Hi @unai-perez,
Interesting. I was following the vignette (not using my own data) when this occurred but it appears fine now so all good :)

On another note I notice that tm_shape(c(before,after)) + tm_raster(title = "NDVI", style = "cont") from the ropensci documentation doesn't actually show the before and after scenes. Plotted separately they are fine and demonstrate the fill.

In the actual package vignette documentation this line is different tm_shape(stack(before,after)) + tm_raster(title = "NDVI", style = "cont") which doesn't work at all.

The package is great, thanks for all the hard work!
Bart

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

2 participants