A profile states everything needed to decode a bare *_SpecCube.dat file;
annotatR never infers these from a file name. The default arguments describe
the documented 640 x 480 x 100-band layout (500-995 nm), which is a profile
like any other and can be replaced for a different device.
Usage
at_tivita_profile(
name = .TIVITA_DEFAULT_PROFILE,
width = 640L,
height = 480L,
bands = 100L,
header_values = 3L,
value_bytes = 4L,
endian = c("big", "little"),
axis_order = "x,y,band",
wavelengths = seq(500, 995, by = 5),
wavelength_unit = "nm",
value_unit = "reflectance",
call = rlang::caller_env()
)Arguments
- name
Profile identifier recorded in the image metadata.
- width, height, bands
Cube dimensions (columns x, rows y, bands).
- header_values
Number of leading values before the payload.
- value_bytes
Bytes per value (
4for float32,8for float64).- endian
"big"or"little".- axis_order
Storage order from slowest to fastest varying axis; only
"x,y,band"(the numpy C-order TIVITA layout) is supported.- wavelengths
Numeric band-centre wavelengths (length
bands) orNULLwhen unknown.- wavelength_unit
Wavelength unit, default
"nm".- value_unit
What the values mean: one of
"raw","reflectance","radiance","intensity","absorbance","unknown".- call
The calling environment, for error reporting.
Examples
at_tivita_profile()$bands
#> [1] 100
small <- at_tivita_profile("bench_4x3x2", width = 4, height = 3, bands = 2,
wavelengths = c(600, 700))