Help extract geographic coordinates from an ENVI image file
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Map Display dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!