Preparation

library(gammaSpec)

Importing a measured spectrum

spec <- read_SPE(file = "path/to/my/file.Spe")
str(spec, max.level = 2)
file <- system.file("extdata", "Nievenheim_DORNIE_1.spe", package = "gammaSpec")
spec <- read_SPE(file)
str(spec, max.level = 2)

Estimating the gamma dose rate

res <- calc_DoseRate(data = spec,
                     energy.min = 500,
                     energy.max = 2600,
                     background.correction = TRUE,
                     plot = TRUE,
                     plot.combine = FALSE,
                     app = FALSE,
                     cex = 0.8)


tzerk/gammaSpec documentation built on May 3, 2019, 2:04 p.m.