penepma_to_msa: Convert a PENEPMA spectrum file to MSA format

Description Usage Arguments Value Examples

Description

Convert a spectrum simulated by PENEPMA into MSA format to be read into DTSA-II (where we have markers...) The data is scaled for DTSA-II.

Usage

1
2
penepma_to_msa(datFile, msaFile, e0, title, scale_fact = 1,
  owner = "Penepma", bDebug = FALSE)

Arguments

datFile

string - the path to the 'pe-spect-##.dat' file

msaFile

string - path fpr the output 'my-spec.msa' file.

e0

number - the voltage in kV for the simulation

title

string - label for the spectrum (default "Penepma")

scale_fact

number - number of counts to set for minimum value. Adjust if needed to be sure the Duane–Hunt limit is displayed. Default = 1.0.

owner

string - label for the scientist

bDebug

boolean - default FALSE. If TRUE, it prints headers for diagnostics. Otherwise the function is silent.

Value

None

It silently writes the .msa file

Examples

1
2
3
4
# Not run
# inF <- system.file("extdata", "pe-spect-01.dat", package = "rEDS")
# ouF <- './penepma/k411-15kV.msa'
# penepma_to_msa(inF, ouF, 15, 'simulation')

jrminter/rpemepma documentation built on May 29, 2019, 11:43 a.m.