Description Usage Arguments Value Examples
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.
1 2 | penepma_to_msa(datFile, msaFile, e0, title, scale_fact = 1,
owner = "Penepma", bDebug = FALSE)
|
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. |
None
It silently writes the .msa file
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.