sim_sits_tibble: Simulate a sits_tibble made of random observations

Description Usage Arguments Value Author(s) Examples

View source: R/simulate_samples.R

Description

This function simulates a sits_tibble using random data. The time series are simulated using a cosine function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sim_sits_tibble(
  n_samples,
  label = "label_A",
  lon_mean = -65,
  lon_sd = 1,
  lat_mean = -5,
  lat_sd = 1,
  date_start = "2000/01/01",
  date_end = "2000/12/31",
  obs_freq = 23,
  n_vi = 1
)

Arguments

n_samples

A length-one numeric. The number of samples per label.

label

A character. The labels for returned tibble. The default is "label_A".

lon_mean

A length-one numeric. The central longitude of the random samples. The default is 65 degrees est.

lon_sd

A length-one numeric. The standard deviation of the longitude of the random samples. The default is 1.

lat_mean

A length-one numeric. The central latitude of the random samples. The default is 5 degrees south.

lat_sd

A length-one numeric. The standard deviation of the latitude of the random samples. The default is 1.

date_start

A length-one character.The start date. The default is "2000/01/01".

date_end

A length-one character.The start date. The default is "2000/12/31".

obs_freq

A length-one numeric. The number of observations in the period. The default are 23.

n_vi

A length-one numeric. The number of vegetation indexes on each sample. The default is 1.

Value

random_st A sits_tibble

Author(s)

Alber Sanchez, alber.ipia@inpe.br

Examples

1
2
3
4
library(sits.prodes)
library(sits)
my_st <- sim_sits_tibble(10, label = c("A", "B"))
sits_plot(my_st)

albhasan/sits.prodes documentation built on Sept. 3, 2020, 2:03 p.m.