load_signature_files: Load the samples from a folder path

Description Usage Arguments Value Examples

Description

It opens every file wich .asd.txt extension and process them: 1) Search for a line with the header format. 2) Every line after that is supposed to be <wavelength><tab><value>.

Usage

1
load_signature_files(path, header, wavelength_start, wavelength_end)

Arguments

path

Folder path which contains the .asd files. The files might be in subfolders as well.

header

The line format of the head of the data (the line before the data measurements).

wavelength_start

The shorter measured wavelength in nm.

wavelength_end

The longer measured wavelength in nm.

Value

A spectral object. Contains the information of the signatures, the processed files and the wavelength ranges.

Examples

1
2
3
4
5
## Not run: 
# Do not escape special characters for header parameter, like \t
load_signature_files(path = "/path/mydata", header="Wavelength\t%s", wavelength_start=350, wavelength_end=2500)

## End(Not run)

demosense/archeospec documentation built on May 28, 2019, 8:39 a.m.