how to read AVIRIS hyperspectral image???

9 views (last 30 days)
UNNATI THACKER
UNNATI THACKER on 11 Sep 2015
Commented: harrynecek on 31 Oct 2018
i have downloaded AVIRIS hyperspectral free database but extension of that file is .rcc .geo .obc and .spc. i don't know how to read it in MATLAB.

Answers (1)

Ajaykumar Zalavadia
Ajaykumar Zalavadia on 28 Oct 2017
\f080709t01p00r13\f080709t01p00r13.info
\f080709t01p00r13\f080709t01p00r13rdn_c.gain
\f080709t01p00r13\f080709t01p00r13rdn_c.geo
\f080709t01p00r13\f080709t01p00r13rdn_c.rcc
\f080709t01p00r13\f080709t01p00r13rdn_c.spc
\f080709t01p00r13\f080709t01p00r13rdn_c_eph
\f080709t01p00r13\f080709t01p00r13rdn_c_geo.readme
\f080709t01p00r13\f080709t01p00r13rdn_c_lonlat_eph
\f080709t01p00r13\f080709t01p00r13rdn_c_obs
\f080709t01p00r13\f080709t01p00r13rdn_c_obs.hdr
\f080709t01p00r13\f080709t01p00r13rdn_c_obs_ort
\f080709t01p00r13\f080709t01p00r13rdn_c_obs_ort.hdr
\f080709t01p00r13\f080709t01p00r13rdn_c_ort.plog
\f080709t01p00r13\f080709t01p00r13rdn_c_ort_glt
\f080709t01p00r13\f080709t01p00r13rdn_c_ort_glt.hdr
\f080709t01p00r13\f080709t01p00r13rdn_c_ort_igm
\f080709t01p00r13\f080709t01p00r13rdn_c_ort_igm.hdr
\f080709t01p00r13\f080709t01p00r13rdn_c_sc01_ort_img
\f080709t01p00r13\f080709t01p00r13rdn_c_sc01_ort_img.hdr
This is what it will look like once you extract the tar.gz and .tar of the perticular AVIRIS flight. open the last file with .hdr extension with a notepad, take note of the following info: samples (ie 983), lines (ie 3350), bands (ie 224), header_offset (ie 0), data type (ie 2), interleave (ie bip), and byte order (ie 1).
You will need this info for matlab multiBandread function, in the bracket are the examples of the flight data I worked on , yours might be different.
Filename ending with " sc01_ort_img " may not have any extension (second to last in the list above) , and very likely it will be the largest file in terms of size among all other files extracted from the .tar flight data.
here is the sample code using multibandread.
fileName = 'YOUR PATH FOR THE EXTRACTED FILES\f080709t01p00r13\f080709t01p00r13rdn_c_sc01_ort_img';
dataDim = [3350,983,224]; % lines, samples, bands
dType = 'int16'; % for data type 2
hOffset = 0;
intlve = 'bip';
bOrder = 'ieee-be'; % For byte order 1
X = multibandread(fileName,dataDim,dType,hOffset,intlve,bOrder);
figure; imshow(X(:,:,1),[]) % To show the first frame
It might be too late to answer this question , info is for anyone stumbles on the same issue.

Community Treasure Hunt

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

Start Hunting!