フィルターのクリア

Why projinv() function shows this error? How to solve it?

3 ビュー (過去 30 日間)
Tejas Turakhia
Tejas Turakhia 2017 年 7 月 17 日
編集済み: Tejas Turakhia 2017 年 7 月 23 日
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by