File Exchange

image thumbnail

Field Spectroscopy Facility Post Processing Toolbox

version 1.16 (1.71 MB) by

A toolbox for importing and processing optical spectra acquired with portable spectroradiometers.

4.66667
3 Ratings

23 Downloads

Updated

View License

The toolbox can import spectra acquired on spectroradiometers manufactured by Analytical Spectral Devices (ASD), Spectra Vista Corporation (SVC), Ocean Optics and the Field Spectroscopy Facility (FSF). It can post process spectra to calculate spectral reflectance, radiance and irradiance. It also provides functions for spectral smoothing with a Savitzky-Golay filter and the removal of the spectral regions dominated by water absorption. Field spectra may be compared with measurements made by satellite or airborne instruments by convolving the field spectra with the relative spectral response functions (bands) of these instruments.
The toolbox was developed by Iain Robinson and Alasdair MacArthur at the Field Spectroscopy Facility in Edinburgh. This work is supported by the Natural Environment Research Council.
The User Guide is available from this page: http://www.research.ed.ac.uk/portal/en/publications/the-field-spectroscopy-facility-post-processing-toolbox-user-guide%28b3f7f53d-c0e1-4cfa-a650-a842c8cade9e%29.html

Comments and Ratings (3)

Great script!

Just want to share one bug:
I used the script to import some Ocean Optics files (ProcSpec), but often got an error because it could not find the ps_0.xml file in the "zip" archive.
I use Spectra Suite (not the new OceanView) in scope mode.

When looking in the .Procspec files, I found that the number of the ps_*.xml file kept increasing each time i saved a new spectrum.

Changing the line from
strfind(unzippedFileNames{n}, 'ps_0.xml')
to
strfind(unzippedFileNames{n}, 'ps_')
solved the error.

Just to let you know.

jean mensa

it reads,

SWIR1Gain: 0 SWIR2Gain: 0
SWIR1Offset: 0
SWIR2Offset: 0
Join1Wavelength: 0
Join2Wavelength: 0

resulting in data = 0 due to the normalization of the spectrum. The model is a FieldSpec Hand Held 2.

zhaoowen

Updates

1.16

This update (version 1.3.9) fixes a bug which caused the function importoceanoptics to fail to import some Ocean Optics' ProcSpec files. This bug was identified in a comment on MATLABCentral by Nikolaj Agentoft Feidenhans'l.

1.15

The toolbox is now available as a MATLAB Toolbox (.mltbx) file for users of MATLAB version R2014b and later.

1.14

Added link to documentation.

1.13

The toolbox can now import files recorded on a Spectra Vista Corporation HR-1024i spectroradiometer. There is however an issue with 'Scan Settings'.

1.12

Modified the importoceanoptics function to better handle files created by Ocean Optics' SpectraSuite spectroscopy operating software. These 'processed spectrum' files contain invalid characters which must be removed from the file before parsing.

1.11

Fixed an error that occurred in MATLAB 2012a when importing spectrum files.

1.10

Improved the reliability of the 'importoceanoptics' function. This function imports files created by Ocean Optics Spectrometers in the binary (OOI) format. It now works on all platforms including Windows.

1.9

Fixed a bug which prevented the import of the Field Spectroscopy Facility's panel calibration data on some platforms. Thanks to Anna Hughes from Swansea University for identifying this bug.

1.8

Modified the 'convolve' function to allow convolving multiple spectra to a set of spectral response functions (bands). (Previous versions could only convolve a single spectrum.)

1.7

Added support for importing binary files acquired by Analytical Spectral Devices' (ASD) spectroradiometers.

1.6

Spectra from ASD and SVC spectroradiometers are now imported with the 'importasd' and 'importsvc' functions respectively. Added partial support for Ocean Optics files. Added functions for radiometric calibration. Tidied up the User Guide.

MATLAB Release
MATLAB 7.8 (R2009a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video