How to extract data for some particular region from 1 dimenational satellite data (spatial)
1 次查看(过去 30 天)
显示 更早的评论
I have level 2 satellite data. There are 3 variables, two of them are latitude and longitude and the other one is the physical variable (methane concentration). I have to extract the data from this global set of data for Delhi region. But the problem is that concentration has only one dimension, so I could not extract the data for my desired region. I have attahed the lat, lon, var and the shapefile for which I need to extract the data. It will be really helpful if anyone could please help me in this problem that will be really nice. Thank you.
0 个评论
采纳的回答
Voss
2022-1-23
load('sat_data.mat')
whos()
w
idx = inpolygon(lon,lat,w.X,w.Y);
scatter3(lon(idx),lat(idx),xch4(idx))
3 个评论
Voss
2022-1-23
load('sat_data.mat')
idx = inpolygon(lon,lat,w.X,w.Y);
lon = double(lon);
lat = double(lat);
xch4 = double(xch4);
I = scatteredInterpolant(lon(idx),lat(idx),xch4(idx),'linear','none');
ulon = unique(lon(idx));
ulat = unique(lat(idx));
[x,y] = meshgrid(ulon,ulat);
p = pcolor(ulon,ulat,I(x,y));
set(p,'EdgeColor','none');
colorbar()
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 CubeSat and Satellites 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!