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>.
load_signature_files(path, header, wavelength_start, wavelength_end)
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. |
A spectral object. Contains the information of the signatures, the processed files and the wavelength ranges.
# 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) # }