Why projinv() function shows this error? How to solve it?
3 次查看(过去 30 天)
显示 更早的评论
I want to add shapefile behind .tiff image and have came across this code: https://in.mathworks.com/matlabcentral/answers/8865-geotiffread-getting-latlon-info. I have run this code but it shows the following error (attached image). I don't understand why this error comes.... I have attached the .tif file as zip
)
clear
clc
[data, R] = geotiffread('trial_PM25_case6_.tif');
info = geotiffinfo('trial_PM25_case6_.tif');
[AY, AX]= size (data);
for i= 1:AY
for j=1:AX
[y(i),x(j)] = pix2map(info.RefMatrix, i, j);
[lat(i,j),lon(i,j)] = projinv(info, y(i),x(j));
end
end
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!