필터 지우기
필터 지우기

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개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by