Help extract geographic coordinates from an ENVI image file

조회 수: 3 (최근 30일)
Richard Fiifi Annan
Richard Fiifi Annan 2021년 9월 5일
I have opened an ENVI single band image, and extracted the grid. I now need help with how to get the geographic coordinates (lats and lons). Thanks
xxx1 = gunzip('S30E030_15_FNF_F02DAR.tar.gz');
xxx2 = untar(xxx1{1});
xxx2 = xxx2';
headerFiles = xxx2(2:2:end);
imageFiles = xxx2(1:2:end);
Info = enviinfo(headerFiles{1,1});
Data = multibandread(imageFiles{1,1}, [Info.Height, Info.Width, Info.Bands],...
Info.DataType, Info.HeaderOffset, Info.Interleave, Info.ByteOrder);
classes = unique(Data);
classNames = Info.ClassNames;
Datum = Info.MapInfo.Datum;
Projection = Info.MapInfo.ProjType;
[lats, lons] = ????? % Kindly help a friend

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by