how to read AVIRIS hyperspectral image???

조회 수: 19 (최근 30일)
UNNATI THACKER
UNNATI THACKER 2015년 9월 11일
댓글: harrynecek 2018년 10월 31일
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.

답변 (1개)

Ajaykumar Zalavadia
Ajaykumar Zalavadia 2017년 10월 28일
\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
harrynecek
harrynecek 2018년 10월 31일
You are a lifesaver sir! Thank you very much!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Hyperspectral Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by