tests/testthat/test-smoothing_IMA.R

test_that("smoothing IMA", {

  # load an example of NDVI time series in Navarre
  data(ex.ndvi.navarre)

  # smoothin and fill all the time series
  tiles.mod.ndvi.filled <- rsat_smoothing_images(rast(ex.ndvi.navarre),
                                            method = "IMA",
                                            only.na = TRUE,
                                            Img2Fill =c(1),
                                            predictSE = FALSE
  )


  tiles.mod.ndvi.filled <- suppressWarnings(rsat_smoothing_images(rast(ex.ndvi.navarre),
                                                             method = "IMA",
                                                             Img2Fill =c(1),
                                                             only.na = TRUE,
                                                             predictSE = TRUE
  ))


})

Try the rsat package in your browser

Any scripts or data that you put into this service are public.

rsat documentation built on March 18, 2022, 5:40 p.m.