Read single or multiple binary and ASCII files acquired with an ASD FieldSpec Pro (ASDi, Boulder, CO) spectroradiometer
readASD(fnames, in_format, out_format)if out_format = 'matrix', reflectance values of the input file(s) in a single matrix.
if out_format = 'list', a list of the input file(s) data consisting of a list with components:
Name: name of the file imported
datetime: date and time of acquisition in POSIXct format
header: list with information from the header file
radiance: if applicable, a numeric vector of radiance values
reference: if applicable, a numeric vector of radiance values of the white reference
reflectance: numeric vector of reflectance values
wavelength: numeric vector of the band positions
a character vector of the name(s) (with absolute path) of the file(s) to read.
the format of the input file: 'binary' or 'txt'.
the format of the output: 'matrix' (default) or 'list' (see below).
Antoine Stevens (R port), Iain Robinson (matlab function) & Leonardo Ramirez-Lopez (R port)
Robinson, I., and A. MacArthur. 2011. The Field Spectroscopy Facility Post Processing Toolbox User Guide. Post processing spectral data in MATLAB, University of Edinburgh, Edinburgh, UK.