Skip to contents

Generates a small, deterministic PedonRecord with n_horizons horizons and a Vis-NIR spectral matrix (350:2500 nm). Useful for exercising fill_from_spectra in tests and vignettes.

Usage

make_synthetic_pedon_with_spectra(
  n_horizons = 5L,
  wavelengths = 350:2500,
  seed = 1L
)

Arguments

n_horizons

Integer number of horizons (default 5).

wavelengths

Integer vector of wavelengths (default 350:2500).

seed

Integer seed for the RNG used to generate the spectra.

Value

A PedonRecord with a $spectra$vnir matrix attached.