diff --git a/NEWS.md b/NEWS.md index 9bb6eece6..c7cdfd575 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,17 @@ We are preparing to release the package on CRAN and are making relevant changes in the development version. +# What's new in SITS version 0.16.0 + +### New features in SITS version 0.16.0 +* Include `sits_apply()` function to generate new bands from existing ones; +* Improve `sits_accuracy()` function to work with multiple cubes; +* Add band parameter to `sits_view()` +* Introduce `sits_uncertainty()` function to provide uncertainty measure to probability maps; +* Improve `sits_regularize()` by taking least cloud cover by default method to compose images +* Bug fixes; + + # What's new in SITS version 0.15.1 ### New features in SITS version 0.15.1-1 diff --git a/R/data.R b/R/data.R index d62e1c4de..1140c1fca 100644 --- a/R/data.R +++ b/R/data.R @@ -62,7 +62,7 @@ NULL #' #' #' @docType data -#' @name samples_l8_rondonia_2bands.rda +#' @name samples_l8_rondonia_2bands #' @keywords datasets #' #' @description diff --git a/README.Rmd b/README.Rmd index e5f7d9718..902c56405 100644 --- a/README.Rmd +++ b/README.Rmd @@ -22,7 +22,7 @@ knitr::opts_chunk$set( [![Build Status](https://cloud.drone.io/api/badges/e-sensing/sits/status.svg)](https://cloud.drone.io/e-sensing/sits) -[![codecov](https://codecov.io/gh/e-sensing/sits/branch/master/graph/badge.svg?token=hZxdJgKGcE)](https://codecov.io/gh/e-sensing/sits) +[![codecov](https://codecov.io/gh/e-sensing/sits/branch/dev/graph/badge.svg?token=hZxdJgKGcE)](https://codecov.io/gh/e-sensing/sits) [![Documentation](https://img.shields.io/badge/docs-online-blueviolet)](https://e-sensing.github.io/sitsbook/) [![Software Life Cycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing) [![Software License](https://img.shields.io/badge/license-GPL--2-green)](https://github.com/e-sensing/sits/blob/master/LICENSE) diff --git a/README.md b/README.md index 286e81090..1353dee3c 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Cubes [![Build Status](https://cloud.drone.io/api/badges/e-sensing/sits/status.svg)](https://cloud.drone.io/e-sensing/sits) -[![codecov](https://codecov.io/gh/e-sensing/sits/branch/master/graph/badge.svg?token=hZxdJgKGcE)](https://codecov.io/gh/e-sensing/sits) +[![codecov](https://codecov.io/gh/e-sensing/sits/branch/dev/graph/badge.svg?token=hZxdJgKGcE)](https://codecov.io/gh/e-sensing/sits) [![Documentation](https://img.shields.io/badge/docs-online-blueviolet)](https://e-sensing.github.io/sitsbook/) [![Software Life Cycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing) @@ -87,10 +87,6 @@ devtools::install_github("e-sensing/sits", dependencies = TRUE) ``` r # load the sits library library(sits) -#> Using configuration file: /home/sits/R/x86_64-pc-linux-gnu-library/4.1/sits/extdata/config.yml -#> Color configurations found in /home/sits/R/x86_64-pc-linux-gnu-library/4.1/sits/extdata/config_colors.yml -#> To provide additional configurations, create an YAML file and inform its path to environment variable 'SITS_CONFIG_USER_FILE'. -#> Using raster package: terra #> SITS - satellite image time series analysis. #> Loaded sits v0.16.0. #> See ?sits for help, citation("sits") for use in publication. @@ -222,12 +218,12 @@ points <- sits_get_data(raster_cube, file = csv_file) #> All points have been retrieved # show the time series points[1:3,] -#> # A tibble: 3 × 7 +#> # A tibble: 3 x 7 #> longitude latitude start_date end_date label cube time_series #> -#> 1 -55.7 -11.8 2013-09-14 2014-08-29 Pasture MOD13Q1-6 -#> 2 -55.6 -11.8 2013-09-14 2014-08-29 Pasture MOD13Q1-6 -#> 3 -55.7 -11.8 2013-09-14 2014-08-29 Forest MOD13Q1-6 +#> 1 -55.7 -11.8 2013-09-14 2014-08-29 Pasture MOD13Q1-6 +#> 2 -55.6 -11.8 2013-09-14 2014-08-29 Pasture MOD13Q1-6 +#> 3 -55.7 -11.8 2013-09-14 2014-08-29 Forest MOD13Q1-6 ``` After a time series has been obtained, it is loaded in a tibble. The diff --git a/man/dot-sits_raster_block_list.Rd b/man/dot-sits_raster_block_list.Rd index 1fa21527b..98602b9f2 100644 --- a/man/dot-sits_raster_block_list.Rd +++ b/man/dot-sits_raster_block_list.Rd @@ -9,7 +9,7 @@ \arguments{ \item{nblocks}{number of blocks to read from each image} -\item{sub_image}{nrea of interest in the image} +\item{sub_image}{area of interest in the image} } \value{ a list with named vectors ("first_row", "nrows", "first_col", "ncols") diff --git a/man/figures/README-unnamed-chunk-10-1.png b/man/figures/README-unnamed-chunk-10-1.png index 7cf7260a1..c41447d8e 100644 Binary files a/man/figures/README-unnamed-chunk-10-1.png and b/man/figures/README-unnamed-chunk-10-1.png differ diff --git a/man/figures/README-unnamed-chunk-12-1.png b/man/figures/README-unnamed-chunk-12-1.png index 5e47885df..ec02dc12b 100644 Binary files a/man/figures/README-unnamed-chunk-12-1.png and b/man/figures/README-unnamed-chunk-12-1.png differ diff --git a/man/figures/README-unnamed-chunk-13-1.png b/man/figures/README-unnamed-chunk-13-1.png index 55607b81a..16cce22b6 100644 Binary files a/man/figures/README-unnamed-chunk-13-1.png and b/man/figures/README-unnamed-chunk-13-1.png differ diff --git a/man/figures/README-unnamed-chunk-14-1.png b/man/figures/README-unnamed-chunk-14-1.png index 2df4bf803..e1229f20d 100644 Binary files a/man/figures/README-unnamed-chunk-14-1.png and b/man/figures/README-unnamed-chunk-14-1.png differ diff --git a/man/figures/README-unnamed-chunk-8-1.png b/man/figures/README-unnamed-chunk-8-1.png index da1a274ea..ab9fb0107 100644 Binary files a/man/figures/README-unnamed-chunk-8-1.png and b/man/figures/README-unnamed-chunk-8-1.png differ diff --git a/man/figures/README-unnamed-chunk-9-1.png b/man/figures/README-unnamed-chunk-9-1.png index d3703381b..1142b3a0d 100644 Binary files a/man/figures/README-unnamed-chunk-9-1.png and b/man/figures/README-unnamed-chunk-9-1.png differ diff --git a/man/samples_l8_rondonia_2bands.Rd b/man/samples_l8_rondonia_2bands.Rd new file mode 100644 index 000000000..b56c6af35 --- /dev/null +++ b/man/samples_l8_rondonia_2bands.Rd @@ -0,0 +1,25 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/data.R +\docType{data} +\name{samples_l8_rondonia_2bands} +\alias{samples_l8_rondonia_2bands} +\title{Samples of Amazon tropical forest biome for deforestation analysis} +\format{ +A \code{sits} tibble with 160 samples. +} +\usage{ +data("samples_l8_rondonia_2bands") +} +\description{ +A sits tibble with time series samples from Brazilian Amazonia rain forest. + +The labels are: "Deforestation", "Forest", "NatNonForest" and "Pasture". + +The time series were extracted from the Landsat-8 BDC data cube +(collection = "LC8_30_16D_STK-1", tiles = "038047"). +These time series comprehends a period of 12 months +(25 observations) from "2018-07-12" to "2019-07-28". +The extracted bands are NDVI and EVI. +Cloudy values were removed and interpolated. +} +\keyword{datasets} diff --git a/tests/testthat/test-parallel.R b/tests/testthat/test-parallel.R index dab88c84c..09328ea9b 100644 --- a/tests/testthat/test-parallel.R +++ b/tests/testthat/test-parallel.R @@ -6,7 +6,7 @@ test_that("One-year, multi-core classification in parallel", { source = "BDC", collection = "LC8_30_16D_STK-1", tiles = c("038047"), - bands = c("NDVI", "EVI", "CLOUD"), + bands = c("NDVI", "EVI"), start_date = "2018-07-12", end_date = "2019-07-28" ) @@ -30,7 +30,7 @@ test_that("One-year, multi-core classification in parallel", { l8_probs <- sits_classify(l8_cube, rfor_model, roi = roi, - memsize = 24, + memsize = 8, multicores = 2, output_dir = dir_images)