Help extract geographic coordinates from an ENVI image file
3 views (last 30 days)
Show older comments
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 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!