%% Search ECOSTRESS Spectrum Files Using Keyword
% Specify full path of the directory that contains the ECOSTRESS spectrum files.

fileroot = matlabshared.supportpkg.getSupportPackageRoot();
dirname = fullfile(fileroot,'toolbox','images','supportpackages','hyperspectral','hyperdata','ECOSTRESSSpectraFiles');

% Read and display the spectral data of the ECOSTRESS spectrum files with a specific keyword in their file names. The function returns a structure array with a row for each spectrum file in the specified directory with the keyword in their file names.

keyword = 'water';
libData = readEcostressSig(dirname,keyword)

% Copyright 2020 The MathWorks, Inc.