美文网首页
matlab中地理坐标转像元行列号

matlab中地理坐标转像元行列号

作者: 废柴随笔 | 来源:发表于2021-03-14 13:49 被阅读0次

[a,R]=geotiffread('NDVI.tif');%读取投影信息

info=geotiffinfo('NDVI.tif');

excel=xlsread('randommap.xlsx');

lon=excel(:,2);

lat=excel(:,3);

[x1,y1] =projfwd(info,lat,lon);

[row, col] =map2pix(info.RefMatrix,x1,y1);

s=zeros(400,2);

s(:,1)=round(row);

s(:,2)=round(col);

相关文章

网友评论

      本文标题:matlab中地理坐标转像元行列号

      本文链接:https://www.haomeiwen.com/subject/rvpqcltx.html