how to read AVIRIS hyperspectral image???

3 visualizaciones (últimos 30 días)
UNNATI THACKER
UNNATI THACKER el 11 de Sept. de 2015
Comentada: harrynecek el 31 de Oct. de 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.

Respuestas (1)

Ajaykumar Zalavadia
Ajaykumar Zalavadia el 28 de Oct. de 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.
  1 comentario
harrynecek
harrynecek el 31 de Oct. de 2018
You are a lifesaver sir! Thank you very much!

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by