Find a full documentation of the package on the project page

Overview

The R package ‘gammaSpec’ provides a small collection of functions to analyse gamma spectra of NaI(Tl) scintillation radiation detectors.

Installation

The ‘gammaSpec’ package is not available on the official CRAN servers.

However, the latest development builds can directly be installed from GitHub. Simply run the following from an R console

if(!require("devtools"))
  install.packages("devtools")
devtools::install_github("tzerk/gammaSpec")

Features

Plotting

The package contains a custom S3 method for plot() to quickly visualise the imported spectrum. It further offers to re-calculate the absolute counts per channel to a count rate per energy (keV).

plot(spectrum, 
     type = c("bar", "line", "point")[2],
     xval = c("energy", "channel")[1], 
     yval = c("rate", "count")[1],
     info = TRUE, fill = FALSE)

Estimating the gamma dose rate

The function calc_DoseRate() estimates the in-situ gamma dose rate of the provided gamma spectrum based on the recorded count rate and comparing the integrated sum within a user specified energy range to that of an internal calibration spectrum.

Shiny application

Finally, the package includes a simple shiny application.

calc_DoseRate(app = TRUE)
app

app

Note

This version is a development version and it comes without any guarentee!

License

The gammaSpec package is licensed under the GPLv3. See these files in the main directory for additional details:

  • LICENSE - ESR package license (GPLv3)