Help extract geographic coordinates from an ENVI image file
조회 수: 3 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!