フィルターのクリア

Help extract geographic coordinates from an ENVI image file

2 ビュー (過去 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 Center および File ExchangeMap Display についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by