"RLum.Data.Spectrum"
Class for representing luminescence spectra data (TL/OSL/RF).
# S4 method for RLum.Data.Spectrum
show(object)# S4 method for RLum.Data.Spectrum
set_RLum(
class,
originator,
.uid,
.pid,
recordType = "Spectrum",
curveType = NA_character_,
data = matrix(),
info = list()
)
# S4 method for RLum.Data.Spectrum
get_RLum(object, info.object)
# S4 method for RLum.Data.Spectrum
names_RLum(object)
# S4 method for RLum.Data.Spectrum
bin_RLum.Data(object, bin_size.col = 1, bin_size.row = 1)
[set_RLum]
An object from the class RLum.Data.Spectrum
[get_RLum]
A matrix with the spectrum values or
only the info object if info.object
was set.
[names_RLum]
The names of the info objects
[bin_RLum.Data]
Same object as input, after applying the binning.
get_RLum
, names_RLum
(required):
an object of class RLum.Data.Spectrum
set_RLum
; character (automatic):
name of the RLum
class to create.
character (automatic): contains the name of the calling function (the function that produces this object); can be set manually.
set_RLum
; character (automatic):
sets an unique ID for this object using the internal C++ function create_UID
.
set_RLum
; character (with default):
option to provide a parent id for nesting at will.
set_RLum
; character:
record type (e.g. "OSL")
set_RLum
; character:
curve type (e.g. "predefined" or "measured")
set_RLum
; matrix:
raw curve data. If data is of type RLum.Data.Spectrum
, this can be used
to re-construct the object. If the object is reconstructed, .uid
, .pid
and orginator
are always taken from the input object
set_RLum
list:
info elements
get_RLum
; character (optional):
the name of the info object to be called
integer (with default):
set number of channels used for each bin, e.g. bin_size.col = 2
means that
two channels are binned. Note: The function does not check the input, very large values
mean a full column binning (a single sum)
integer (with default):
set number of channels used for each bin, e.g. bin_size.row = 2
means that
two channels are binned. Note: The function does not check the input, very large values
mean a full row binning (a single sum)
show(RLum.Data.Spectrum)
: Show structure of RLum.Data.Spectrum
object
set_RLum(RLum.Data.Spectrum)
: Construction method for RLum.Data.Spectrum object. The slot info is optional
and predefined as empty list by default
get_RLum(RLum.Data.Spectrum)
: Accessor method for RLum.Data.Spectrum object. The argument info.object
is optional to directly access the info elements. If no info element name
is provided, the raw curve data (matrix) will be returned
names_RLum(RLum.Data.Spectrum)
: Returns the names info elements coming along with this curve object
bin_RLum.Data(RLum.Data.Spectrum)
: Allows binning of RLum.Data.Spectrum data. Count values and values on the x-axis are summed-up;
for wavelength/energy values the mean is calculated.
recordType
Object of class character containing the type of the curve (e.g. "TL" or "OSL")
curveType
Object of class character containing curve type, allowed values are measured or predefined
data
Object of class matrix containing spectrum (count) values. Row labels indicate wavelength/pixel values, column labels are temperature or time values.
info
Object of class list containing further meta information objects
Objects can be created by calls of the form set_RLum("RLum.Data.Spectrum", ...)
.
0.5.2
Sebastian Kreutzer, Institute of Geography, Heidelberg University (Germany) , RLum Developer Team
Kreutzer, S., 2024. RLum.Data.Spectrum-class(): Class 'RLum.Data.Spectrum'. In: Kreutzer, S., Burow, C., Dietze, M., Fuchs, M.C., Schmidt, C., Fischer, M., Friedrich, J., Mercier, N., Philippe, A., Riedesel, S., Autzen, M., Mittelstrass, D., Gray, H.J., Galharret, J., Colombo, M., 2024. Luminescence: Comprehensive Luminescence Dating Data Analysis. R package version 0.9.25. https://r-lum.github.io/Luminescence/
RLum, RLum.Data, plot_RLum
showClass("RLum.Data.Spectrum")
##show example data
data(ExampleData.XSYG, envir = environment())
TL.Spectrum
##show data matrix
get_RLum(TL.Spectrum)
##plot spectrum
if (FALSE) {
plot_RLum(TL.Spectrum)
}
Run the code above in your browser using DataLab