How to access wavelength using hyperReadAvirisRfl function?

1 view (last 30 days)
Dear Sir,
I could able to access the reflectance value by executing the following coding: a=hyperReadAvirisRfl('f970619t01p02_r02_sc02.a.rfl', [1 100], [1 614], [1 224]); The above line executed successfully and returned the reflectance values.
But i need the corresponding wavelength for these reflectance value. According to my knowledge, the function "hyperReadAvirisRfl",should return both reflectance and wavelength. So, i tried by adding one more variable to receive the wavelength values as follows: [a b]=hyperReadAvirisRfl('f970619t01p02_r02_sc02.a.rfl', [1 100], [1 614], [1 224]);
But it gives error as follows: ??? Error using ==> fgetl at 44 Invalid file identifier. Use fopen to generate a valid file identifier. Error in ==> hyperReadAvirisSpc at 19 txt = fgetl(fid); Error in ==> hyperReadAvirisRfl at 56 wavelengths_nm = hyperReadAvirisSpc('f970619t01p02_r02.a.spc');
Kindly help me out Sir.

Answers (0)

Categories

Find more on Data Type Conversion in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!