赞
踩
% Global scale
for k = 1:length(data)
x = data(k).X + 360;
y = data(k).Y;
for i = 1:360
for j = 1:180
if LON(i,j) == x && LAT(i,j) == y
maskorig(i,j) = 1;
end
end
end
end
% China scale data = shaperead('SemiArid_Points.shp'); rlon = [70.25 : 0.5 : 139.75]; rlat = [15.25 : 0.5 : 54.75]; [lat, lon] = meshgrid(rlat, rlon); maskorig = nan(140, 80); for k = 1:length(data) x = data(k).X; y = data(k).Y; for i = 1:140 for j = 1:80 if lon(i,j) == x && lat(i,j) == y maskorig(i,j) = 1; end end end end h = pcolor(maskorig'); h.LineStyle = 'none';
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。