How can I find the exact value of the corresponding point in specific longitude and latitude?

1 次查看(过去 30 天)
I have problem to extract exact value in projection coordinate, I actually want to extract the exact value of the point with a specific latitude and longitude (e.g., lat=45.2 and lon=28.7) from the attached data. I really appreciate anybody can help.

回答(1 个)

Andrei Bobrov
Andrei Bobrov 2019-10-18
编辑:Andrei Bobrov 2019-10-18
load('data.mat');load('lat.mat');load('lon.mat');load('xy.mat');
F1 = scatteredInterpolant(LAT,LON,data)
F2 = scatteredInterpolant(LAT,LON,xx);
F3 = scatteredInterpolant(LAT,LON,yy);
lat=45.2;
lon=28.7;
out = [F1(lat,lon),F2(lat,lon),F3(lat,lon)];
  3 个评论
Farshid Daryabor
Farshid Daryabor 2019-10-21
Dear Andrei,
it's weird for me, the power of values derived from "out = [F1(lat,lon),F2(lat,lon),F3(lat,lon)]" is compeltly different from the expected power from "var = F1.Values". For instance,
>>max(var)
5.9794e+03
While
>>max(out)
5.9794e+06
?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by